:root {
  --brand-cyan: #00E5FF;
  --brand-orange: #FF6B35;
  --brand-navy: #0A0F1F;
  --text-primary: #E0E0E0;
  --text-secondary: #A0A0A0;
  --bg-glass: rgba(20, 25, 45, 0.6);
  --border-glass: rgba(0, 229, 255, 0.2);
  --font-family: 'Inter', sans-serif;
}

body {
  font-family: var(--font-family);
  background-color: var(--brand-navy);
  color: var(--text-primary);
}

/* 1. Google Sign-In Button */
.google-signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  background-color: var(--brand-navy);
  color: var(--text-primary);
  border: 1px solid var(--brand-cyan);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.1s ease;
  text-decoration: none;
}

.google-signin-btn:hover {
  background-color: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.google-signin-btn:active {
  transform: scale(0.98);
}

.google-signin-btn svg {
  width: 20px;
  height: 20px;
}

/* 2. User Profile Display */
.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--brand-cyan);
  object-fit: cover;
}

.user-profile-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.user-profile-signout {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-orange);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.user-profile-signout:hover {
  color: #FF8A5C;
  text-shadow: 0 0 8px rgba(255, 107, 53, 0.5);
}

/* 3. Auth Modal */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 15, 31, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.auth-modal {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 32px 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.auth-modal-overlay.visible .auth-modal {
  transform: scale(1);
}

.auth-modal h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 24px;
  color: var(--text-primary);
}

.auth-modal p {
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 4. Loading Spinner */
.auth-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0, 229, 255, 0.2);
  border-top-color: var(--brand-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 5. Toast Notifications */
.auth-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background-color: #1C2135;
  color: var(--text-primary);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border-left: 5px solid;
  z-index: 1001;
  animation: slideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  min-width: 250px;
}

.auth-toast.success {
  border-left-color: var(--brand-cyan);
}

.auth-toast.error {
  border-left-color: var(--brand-orange);
}

.auth-toast-message {
  margin-left: 12px;
  font-weight: 500;
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}