@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-1: #0f0a1f;
  --bg-2: #1a1230;
  --surface: #1e1635;
  --surface-2: #281f45;
  --surface-hover: #322854;
  --accent: #7c5cff;
  --accent-light: #9b7fff;
  --accent-2: #6d8cff;
  --ink: #f8f7ff;
  --ink-secondary: #e0dced;
  --muted: #9d93c0;
  --border: rgba(124, 92, 255, 0.2);
  --border-hover: rgba(124, 92, 255, 0.4);
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.1);
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.1);
  --shadow-sm: 0 4px 12px rgba(7, 5, 18, 0.3);
  --shadow-md: 0 12px 32px rgba(7, 5, 18, 0.4);
  --shadow-lg: 0 24px 64px rgba(7, 5, 18, 0.5);
  --shadow-glow: 0 0 40px rgba(124, 92, 255, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 1000px 500px at 20% 0%, rgba(124, 92, 255, 0.2), transparent),
    radial-gradient(ellipse 800px 400px at 80% 100%, rgba(109, 140, 255, 0.15), transparent),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow:
    var(--shadow-lg),
    0 0 60px rgba(124, 92, 255, 0.25),
    0 0 100px rgba(124, 92, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: card-glow 4s ease-in-out infinite;
}

@keyframes card-glow {
  0%, 100% {
    box-shadow:
      var(--shadow-lg),
      0 0 60px rgba(124, 92, 255, 0.2),
      0 0 100px rgba(124, 92, 255, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  50% {
    box-shadow:
      var(--shadow-lg),
      0 0 80px rgba(124, 92, 255, 0.35),
      0 0 120px rgba(124, 92, 255, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
}

/* Brand Section */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  object-fit: contain;
  animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 12px rgba(124, 92, 255, 0.6))
      drop-shadow(0 0 24px rgba(124, 92, 255, 0.4));
    transform: scale(1);
  }
  50% {
    filter:
      drop-shadow(0 0 20px rgba(124, 92, 255, 0.9))
      drop-shadow(0 0 40px rgba(124, 92, 255, 0.6))
      drop-shadow(0 0 60px rgba(155, 127, 255, 0.4));
    transform: scale(1.04);
  }
}

.brand h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Hero Section */
.hero-section {
  margin-bottom: 28px;
}

.hero-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.hero-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* Auth Section */
.auth-section {
  margin-bottom: 20px;
}

/* Google Sign-In Button - Following Google Brand Guidelines */
.google-btn {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid #dadce0;
  background: #ffffff;
  color: #3c4043;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.google-btn:hover {
  background: #f8f9fa;
  border-color: #c6c9cc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.google-btn:active {
  background: #f1f3f4;
}

.google-btn:focus {
  outline: none;
  border-color: #4285f4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

.google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  gap: 16px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
}

.label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  margin-bottom: 8px;
}

.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.input:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-hover);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}

/* Buttons */
.button {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: none;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.3);
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124, 92, 255, 0.4);
}

.button-primary:active {
  transform: translateY(0);
}

.button-secondary {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--ink-secondary);
  margin-top: 12px;
}

.button-secondary:hover {
  background: rgba(124, 92, 255, 0.08);
  border-color: var(--accent);
  color: var(--ink);
}

/* Status Messages */
.status {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: center;
}

.status.success {
  border-color: rgba(52, 211, 153, 0.3);
  color: #86efac;
  background: var(--success-bg);
}

.status.error {
  border-color: rgba(248, 113, 113, 0.3);
  color: #fca5a5;
  background: var(--danger-bg);
}

.status.info {
  border-color: rgba(109, 140, 255, 0.3);
  color: var(--accent-light);
  background: rgba(109, 140, 255, 0.1);
}

/* Links */
.links {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 20px;
}

.links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.links a:hover {
  color: var(--accent-light);
}

/* Footer */
.footer {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.footer a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--ink);
}

.footer-help {
  font-size: 12px !important;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
}

/* Feature List for other pages */
.feature-list {
  list-style: none;
  margin: 16px 0 24px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-secondary);
  margin-bottom: 10px;
}

.feature-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Info Box */
.info-box {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(109, 140, 255, 0.08);
  border: 1px solid rgba(109, 140, 255, 0.2);
  margin-bottom: 24px;
}

.info-box p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Utilities */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

/* Success Info Box */
.success-info {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--success-bg);
  border: 1px solid rgba(52, 211, 153, 0.3);
  margin-bottom: 24px;
}

.success-info p {
  font-size: 14px;
  color: var(--ink-secondary);
  margin-bottom: 12px;
  font-weight: 500;
}

.success-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.success-info ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.success-info ul li:last-child {
  margin-bottom: 0;
}

.success-info ul li::before {
  content: '\2713';
  color: var(--success);
  font-weight: bold;
}

/* Responsive */
@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  .card {
    padding: 24px;
    border-radius: var(--radius-lg);
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand h1 {
    font-size: 20px;
  }

  .hero-title {
    font-size: 20px;
  }
}
