/* ============================================================
   EXAMZO — Design System & Global Styles
   ============================================================ */

/* ----- CSS Custom Properties (Design Tokens) ----- */
:root {
  /* Primary — Trust / Education Blue */
  --primary-base: #1A56DB;
  --primary-light: #E8F0FE;
  --primary-dark: #0F3C9E;

  /* Accent — Energy / Achievement Gold */
  --accent-base: #F59E0B;
  --accent-light: #FEF3C7;

  /* Neutrals */
  --white: #FFFFFF;
  --bg-base: #FAFBFC;
  --bg-card: #FFFFFF;
  --border: #E5E7EB;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;

  /* Semantic */
  --success: #059669;
  --error: #DC2626;

  /* Spacing */
  --section-pad: 5rem;
  --content-max: 1200px;

  /* Radii */
  --radius-card: 12px;
  --radius-btn: 8px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-header: 0 1px 4px rgba(0,0,0,0.06);
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary-base);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

/* ----- Typography ----- */
h1, h2, h3, h4 {
  line-height: 1.15;
  color: var(--text-primary);
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  max-width: 600px;
}

@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

/* ----- Layout ----- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  section {
    padding: var(--section-pad) 0;
  }
}

/* ----- Header / Navigation ----- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--primary-base);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 150ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--primary-base);
}

.nav-cta {
  display: none;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  cursor: pointer;
  color: var(--text-primary);
}

.menu-toggle .icon-close { display: none; }
.menu-toggle.open .icon-menu { display: none; }
.menu-toggle.open .icon-close { display: inline; }

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .nav-cta { display: inline-flex; }
}

/* Mobile nav dropdown */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.938rem;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: var(--primary-base);
  color: var(--white);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,86,219,0.25);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-base);
  border-color: var(--primary-base);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: none;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

/* ----- Cards ----- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.card-icon.blue  { background: var(--primary-light); color: var(--primary-base); }
.card-icon.amber { background: var(--accent-light); color: var(--accent-base); }
.card-icon.green { background: #D1FAE5; color: var(--success); }

.card h3 { margin-bottom: 0.5rem; }
.card p  { color: var(--text-secondary); font-size: 0.938rem; }

/* ----- Badge ----- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

.badge-blue {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.badge-amber {
  background: var(--accent-light);
  color: #92400E;
}

.badge-green {
  background: #D1FAE5;
  color: #065F46;
}

/* ----- Hero ----- */
.hero {
  padding: 4rem 0;
  text-align: center;
}

.hero .badge {
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero .hero-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-trust {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0;
  }
}

/* ----- Demo Section (Interactive Prompt) ----- */
.demo-section {
  background: var(--white);
}

.demo-card {
  position: relative;
  z-index: 0;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.demo-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-base), var(--accent-base));
}

.prompt-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prompt-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.prompt-input::placeholder {
  color: var(--text-muted);
}

.prompt-input:focus {
  border-color: var(--primary-base);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.prompt-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.examples-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.chip {
  display: inline-flex;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-family: inherit;
  color: var(--text-secondary);
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 150ms ease;
}

.chip:hover {
  background: var(--primary-light);
  border-color: var(--primary-base);
  color: var(--primary-dark);
}

@media (min-width: 768px) {
  .demo-card {
    padding: 2.5rem;
  }

  .prompt-row {
    flex-direction: row;
  }
}

/* ----- Results Area ----- */
.results-area {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.results-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.results-header .badge {
  font-size: 0.6875rem;
}

.results-actions {
  margin-left: auto;
  display: flex;
  gap: 0.75rem;
}

/* Question list */
.question-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.question-item {
  padding: 1.25rem;
  background: var(--bg-base);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
}

.question-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.question-text {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.question-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.938rem;
}

.question-options span {
  padding: 0.5rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
}

@media (min-width: 640px) {
  .question-options {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Loading & Error states */
.demo-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.938rem;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary-base);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.demo-error {
  padding: 1rem;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-btn);
  color: var(--error);
  font-size: 0.938rem;
}

.demo-error a {
  color: var(--error);
  text-decoration: underline;
  cursor: pointer;
}

.demo-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
}

/* ----- Value Props ----- */
.value-props {
  background: var(--white);
}

.value-props .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ----- How It Works ----- */
.how-it-works .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: step;
}

.step-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.step-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 12px;
}

.step-body h3 {
  margin-bottom: 0.25rem;
}

.step-body p {
  color: var(--text-secondary);
  font-size: 0.938rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ----- Subjects Showcase ----- */
.subjects {
  background: var(--white);
}

.subjects .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.subject-card {
  text-align: center;
  padding: 2rem;
}

.subject-card .card-icon {
  margin: 0 auto 1rem;
  font-size: 2rem;
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.subject-card .subject-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ----- Social Proof ----- */
.social-proof {
  text-align: center;
}

.testimonial {
  max-width: 700px;
  margin: 0 auto 2rem;
}

.testimonial blockquote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.testimonial blockquote::before {
  content: '"';
  font-size: 2.5rem;
  color: var(--primary-base);
  font-weight: 700;
  line-height: 0;
  vertical-align: -0.25em;
}

.testimonial cite {
  font-size: 0.938rem;
  color: var(--text-secondary);
  font-style: normal;
  font-weight: 500;
}

.trust-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.trust-logo {
  height: 40px;
  opacity: 0.4;
  filter: grayscale(1);
}

/* ----- Pricing Preview ----- */
.pricing-preview .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .pricing-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  position: relative;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--primary-base);
  box-shadow: 0 0 0 1px var(--primary-base), var(--shadow-card);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-card .popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  background: var(--primary-base);
  border-radius: 999px;
}

.pricing-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-features {
  text-align: left;
  margin-bottom: 1.5rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.938rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.pricing-features li::before {
  content: '\2713';
  color: var(--success);
  font-weight: 700;
  margin-right: 0.5rem;
}

.pricing-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.pricing-link a {
  font-weight: 500;
}

/* ----- Pricing page: Toggle ----- */
.pricing-toggle {
  display: inline-flex;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 4px;
  margin-bottom: 2.5rem;
}

.toggle-option {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  border: none;
  background: none;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 150ms ease;
}

.toggle-option.active {
  background: var(--primary-base);
  color: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* ----- Feature Comparison Table ----- */
.comparison-section {
  background: var(--white);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.938rem;
}

.comparison-table thead th {
  text-align: left;
  padding: 1rem;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

.comparison-table thead th:not(:first-child) {
  text-align: center;
}

.comparison-table tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.comparison-table tbody td:not(:first-child) {
  text-align: center;
}

.comparison-table .check {
  color: var(--success);
  font-weight: 700;
}

.comparison-table .dash {
  color: var(--text-muted);
}

/* ----- FAQ Accordion ----- */
.faq-section {
  background: var(--white);
}

.faq-list {
  max-width: 768px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  content: '\2013';
  color: var(--primary-base);
}

.faq-item .faq-answer {
  padding: 0 0 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ----- CTA Section ----- */
.cta-section {
  text-align: center;
  background: var(--primary-base);
  color: var(--white);
  padding: 4rem 0;
}

.cta-section h2 {
  color: var(--white);
}

.cta-section .section-sub {
  color: rgba(255,255,255,0.85);
}

.cta-section .btn-primary {
  margin-top: 1.5rem;
  background: var(--white);
  color: var(--primary-base);
}

.cta-section .btn-primary:hover {
  background: var(--primary-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ----- About Page ----- */
.about-hero {
  text-align: center;
  padding-top: 4rem;
}

.about-story {
  background: var(--white);
}

.about-story .story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-story .story-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.story-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.0625rem;
}

.story-text p:last-child {
  margin-bottom: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-base);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-base);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.process-section {
  background: var(--white);
}

.process-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .process-flow {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  text-align: center;
  position: relative;
}

.process-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--primary-light);
  color: var(--primary-base);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
}

.process-arrow {
  display: none;
}

@media (min-width: 768px) {
  .process-arrow {
    display: block;
    position: absolute;
    top: 28px;
    right: -12px;
    font-size: 1.25rem;
    color: var(--text-muted);
  }
}

.process-step h4 {
  font-size: 0.938rem;
  margin-bottom: 0.25rem;
}

.process-step p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ----- Footer ----- */
.footer {
  background: var(--text-primary);
  color: var(--text-muted);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
}

.footer h4 {
  color: var(--white);
  font-size: 0.938rem;
  margin-bottom: 0.75rem;
}

.footer a {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 0.25rem 0;
  transition: color 150ms ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  text-align: center;
}

/* ----- Login Page ----- */
.login-page {
  background: var(--white);
}

.login-section {
  padding: 0;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: stretch;
}

.login-grid {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1.5rem;
}

/* Left panel — branding */
.login-left {
  background: var(--primary-base);
  color: var(--white);
}

.login-logo {
  display: inline-block;
  color: var(--white) !important;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.login-logo span {
  color: var(--accent-base) !important;
}

.login-left h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.login-tagline {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 420px;
}

.login-perks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.938rem;
  color: rgba(255,255,255,0.9);
}

/* Right panel — form */
.login-right {
  background: var(--white);
}

.login-form-wrapper {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

/* Google Sign-In Button */
.google-auth-section {
  margin-bottom: 1.5rem;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all 150ms ease;
}

.google-btn:hover {
  background: var(--bg-base);
  border-color: #c4c7cc;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.google-btn:focus-visible {
  outline: 2px solid var(--primary-base);
  outline-offset: 2px;
}

.google-icon {
  flex-shrink: 0;
}

.google-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.625rem;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

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

.divider span {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Email Login Form */
.email-login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="text"] {
  padding: 0.75rem 1rem;
  font-size: 0.938rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-field input::placeholder {
  color: var(--text-muted);
}

.form-field input:focus {
  border-color: var(--primary-base);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-field input:invalid:not(:placeholder-shown) {
  border-color: var(--error);
}

.form-field input:invalid:not(:placeholder-shown):focus {
  box-shadow: 0 0 0 3px #FEE2E2;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-base);
}

.forgot-link {
  font-size: 0.875rem;
  color: var(--primary-base);
}

.forgot-link:hover {
  color: var(--primary-dark);
}

.login-footer-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
}

/* Login status messages */
.login-status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-btn);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

.login-status.success {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.login-status.error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.login-status.info {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid #BFDBFE;
}

/* Google account card (shown after successful sign-in) */
.user-card {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-base);
}

.user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-card);
}

.user-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.user-email {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

/* Responsive */
@media (min-width: 768px) {
  .login-grid {
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 64px);
  }

  .login-panel {
    padding: 4rem 3rem;
  }

  .login-left h1 {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .login-panel {
    padding: 4rem 5rem;
  }

  .login-form-wrapper {
    max-width: 440px;
  }
}

/* ----- Utility ----- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

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