/* ========================================
   NotesEngine — Education theme (loads after main.css)
   Navy / blue / saffron, exam-portal look
   ======================================== */

:root {
  --primary: #0b4a9e;
  --primary-light: #1565c0;
  --primary-pale: #e8f0fb;
  --navy: #082c5c;
  --saffron: #f28a0f;
  --saffron-pale: #fff4e3;
  --accent: #1a8a4a;
  --accent-pale: #e6f6ed;
  --bg: #f3f6fb;
  --bg2: #e9eff8;
  --border: #cfd9e8;
  --border2: #dde5f1;
  --radius: 10px;
  --radius-sm: 6px;
}

body { background: var(--bg); }
a { color: var(--primary-light); }
a:hover { color: var(--navy); }

/* ---------- top utility strip + navbar ---------- */
.edu-strip { background: var(--navy); color: #cfe0f7; font-size: 12.5px; }
.edu-strip-inner { max-width: 1280px; margin: 0 auto; padding: 6px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.edu-strip a { color: #fff; margin-left: 16px; }
.edu-strip a:hover { color: var(--saffron); }

.navbar { position: sticky; top: 0; background: #fff; border-bottom: 3px solid var(--primary); box-shadow: 0 2px 8px rgba(8,44,92,.08); z-index: 100; padding: 0; }
.navbar.scrolled { box-shadow: 0 4px 14px rgba(8,44,92,.14); }
.nav-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 26px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: var(--navy); }
.brand-icon { width: 38px; height: 38px; border-radius: 8px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 19px; }
.brand-accent { color: var(--saffron); }
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-link { padding: 22px 14px; font-size: 14.5px; font-weight: 600; color: #334862; border-radius: 0; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.nav-link:hover { background: var(--primary-pale); color: var(--primary); }
.nav-link.active { background: transparent; color: var(--primary); border-bottom-color: var(--saffron); }
.btn-nav-outline { border: 1.5px solid var(--primary); color: var(--primary); background: #fff; border-radius: 6px; padding: 7px 16px; font-weight: 600; font-size: 14px; }
.btn-nav-outline:hover { background: var(--primary-pale); border-color: var(--primary); color: var(--primary); }
.btn-nav-primary { background: var(--saffron); color: #fff; border-radius: 6px; padding: 8px 18px; font-weight: 700; font-size: 14px; border: 0; }
.btn-nav-primary:hover { background: #d97706; color: #fff; }
.nav-mobile { background: #fff; border-top: 1px solid var(--border2); }

/* ---------- buttons ---------- */
.btn-primary { background: var(--primary); color: #fff; border-radius: 6px; padding: 12px 24px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--navy); box-shadow: 0 6px 16px rgba(8,44,92,.25); color: #fff; }
.btn-outline { border: 1.5px solid var(--primary); color: var(--primary); background: #fff; border-radius: 6px; padding: 11px 24px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.btn-outline:hover { background: var(--primary-pale); color: var(--primary); border-color: var(--primary); }
.btn-saffron { background: var(--saffron); color: #fff; border-radius: 6px; padding: 12px 24px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.btn-saffron:hover { background: #d97706; color: #fff; }
.btn-full { background: var(--primary); border-radius: 6px; }
.btn-full:hover { background: var(--navy); }

/* ---------- home: hero ---------- */
.ed-hero { background: linear-gradient(135deg, var(--navy) 0%, #0b4a9e 70%, #1565c0 100%); color: #fff; position: relative; overflow: hidden; }
.ed-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; border-radius: 50%; background: rgba(255,255,255,.05); }
.ed-hero-inner { max-width: 1280px; margin: 0 auto; padding: 64px 24px 72px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.ed-eyebrow { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 5px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 600; letter-spacing: .4px; margin-bottom: 18px; }
.ed-hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.12; font-weight: 800; letter-spacing: -.8px; margin-bottom: 16px; }
.ed-hero h1 em { font-style: normal; color: #ffc46b; }
.ed-hero p.lead { font-size: 17px; color: #d3e2f7; max-width: 540px; margin-bottom: 28px; }
.ed-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ed-hero .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.ed-hero .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.ed-stats { display: flex; gap: 34px; margin-top: 38px; flex-wrap: wrap; }
.ed-stats strong { display: block; font-size: 30px; line-height: 1.1; color: #fff; }
.ed-stats span { font-size: 12.5px; color: #b9cff0; text-transform: uppercase; letter-spacing: 1px; }

/* mock exam card in hero */
.exam-mock { background: #fff; border-radius: 12px; color: var(--text); box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: hidden; }
.exam-mock-bar { background: var(--primary); color: #fff; padding: 10px 16px; display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.exam-mock-bar b { background: var(--saffron); padding: 1px 10px; border-radius: 4px; }
.exam-mock-body { display: grid; grid-template-columns: 1fr 120px; }
.exam-mock-q { padding: 16px; font-size: 13.5px; }
.exam-mock-q p { font-weight: 600; margin-bottom: 10px; line-height: 1.5; }
.exam-mock-q label { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid var(--border2); border-radius: 5px; margin-bottom: 6px; font-size: 13px; }
.exam-mock-q label.on { background: var(--primary-pale); border-color: var(--primary-light); }
.exam-mock-pal { background: #eef3fa; border-left: 1px solid var(--border2); padding: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; align-content: start; }
.exam-mock-pal i { aspect-ratio: 1; border-radius: 4px; background: #d6dde8; font-style: normal; font-size: 10px; display: grid; place-items: center; font-weight: 700; color: #3a4a60; }
.exam-mock-pal i.a { background: #2e9d57; color: #fff; }
.exam-mock-pal i.n { background: #d64545; color: #fff; }
.exam-mock-pal i.m { background: #6a45b3; color: #fff; border-radius: 50%; }
.exam-mock-foot { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border2); background: #fafcff; }
.exam-mock-foot span { font-size: 11.5px; font-weight: 700; padding: 6px 12px; border-radius: 4px; background: #2e9d57; color: #fff; }
.exam-mock-foot span.o { background: #fff; color: var(--primary); border: 1px solid var(--primary); }

/* ---------- home: sections ---------- */
.ed-section { padding: 64px 24px; }
.ed-section.alt { background: #fff; border-top: 1px solid var(--border2); border-bottom: 1px solid var(--border2); }
.ed-inner { max-width: 1280px; margin: 0 auto; }
.ed-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.ed-head h2 { font-size: clamp(22px, 3vw, 32px); color: var(--navy); font-weight: 800; letter-spacing: -.4px; line-height: 1.2; }
.ed-head h2::after { content: ""; display: block; width: 52px; height: 4px; background: var(--saffron); border-radius: 2px; margin-top: 10px; }
.ed-head p { color: var(--text2); max-width: 520px; margin-top: 6px; }
.ed-more { font-weight: 700; font-size: 14px; }

.ed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.ed-card { background: #fff; border: 1px solid var(--border2); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; transition: .18s; color: var(--text); }
a.ed-card:hover { border-color: var(--primary-light); box-shadow: 0 10px 26px rgba(8,44,92,.12); transform: translateY(-2px); color: var(--text); }
.ed-card .ico { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; font-size: 22px; background: var(--primary-pale); margin-bottom: 4px; }
.ed-card h3 { font-size: 17px; color: var(--navy); font-weight: 700; line-height: 1.3; }
.ed-card p { font-size: 14px; color: var(--text2); line-height: 1.55; }
.ed-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text2); margin-top: auto; padding-top: 10px; }
.ed-meta i { color: var(--primary-light); margin-right: 4px; }
.ed-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 3px 9px; border-radius: 4px; background: var(--primary-pale); color: var(--primary); align-self: flex-start; }
.ed-tag.ex { background: var(--saffron-pale); color: #b45f00; }

/* steps */
.ed-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.ed-step { position: relative; background: #fff; border: 1px solid var(--border2); border-radius: var(--radius); padding: 26px 22px 22px; counter-increment: step; }
.ed-step::before { content: counter(step); position: absolute; top: -16px; left: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--saffron); color: #fff; display: grid; place-items: center; font-weight: 800; box-shadow: 0 4px 10px rgba(242,138,15,.4); }
.ed-step h3 { color: var(--navy); font-size: 16px; margin-bottom: 6px; }
.ed-step p { font-size: 14px; color: var(--text2); }

/* palette legend strip */
.legend-strip { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--text2); margin-top: 22px; }
.legend-strip span { display: inline-flex; align-items: center; gap: 8px; }
.legend-strip i { width: 22px; height: 22px; border-radius: 4px; display: inline-block; }

/* CTA */
.ed-cta { background: var(--navy); color: #fff; text-align: center; padding: 56px 24px; }
.ed-cta h2 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 10px; }
.ed-cta p { color: #bcd0ee; margin-bottom: 24px; }

/* ---------- footer ---------- */
.footer { background: var(--navy); border-top: 0; color: #cfe0f7; }
.footer-logo { color: #fff; }
.footer-brand p, .footer-newsletter p { color: #9fb8de; }
.footer h4 { color: #fff; }
.footer-links a { color: #bcd0ee; }
.footer-links a:hover { color: var(--saffron); }
.footer-social a { color: #cfe0f7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); color: #9fb8de; }
.footer-bottom p { color: #9fb8de; }

/* ---------- tests portal ---------- */
.portal-head { background: linear-gradient(135deg, var(--navy), var(--primary)); color: #fff; padding: 44px 24px; }
.portal-head-inner { max-width: 1280px; margin: 0 auto; }
.portal-head h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.5px; }
.portal-head p { color: #c9dcf5; margin-top: 6px; max-width: 640px; }
.portal-filters { background: #fff; border-bottom: 1px solid var(--border2); position: sticky; top: 67px; z-index: 50; }
.portal-filters-inner { max-width: 1280px; margin: 0 auto; padding: 12px 24px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.portal-filters input[type=search], .portal-filters select { border: 1px solid var(--border); border-radius: 6px; padding: 9px 12px; font: inherit; background: #fff; }
.portal-filters input[type=search] { flex: 1; min-width: 200px; }
.chip { border: 1px solid var(--border); background: #fff; border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text2); font-family: inherit; }
.chip.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.portal-subject { margin-bottom: 38px; }
.portal-subject > h2 { font-size: 20px; color: var(--navy); border-left: 5px solid var(--saffron); padding-left: 12px; margin-bottom: 4px; }
.portal-subject > .sub { color: var(--text2); font-size: 13.5px; margin: 0 0 16px 17px; }
.test-row { background: #fff; border: 1px solid var(--border2); border-radius: var(--radius); padding: 16px 20px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; margin-bottom: 10px; }
.test-row:hover { border-color: var(--primary-light); }
.test-row h3 { font-size: 16px; color: var(--navy); margin: 4px 0; }
.test-row .where { color: var(--text2); font-size: 13px; }
.btn-start { background: var(--accent); color: #fff; border-radius: 6px; padding: 10px 22px; font-weight: 700; font-size: 14px; white-space: nowrap; display: inline-block; text-align: center; }
.btn-start:hover { background: #12703c; color: #fff; }
.btn-start.locked { background: #8a97aa; }
.empty-box { background: #fff; border: 2px dashed var(--border); border-radius: var(--radius); text-align: center; padding: 48px 20px; color: var(--text2); }

/* ===== v2 polish: typography, depth, motion ===== */
:root { --font: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif; --font-display: "Poppins", "Inter", sans-serif; --shadow-card: 0 1px 2px rgba(8,44,92,.05), 0 8px 24px rgba(8,44,92,.06); }
body { font-family: var(--font); -webkit-font-smoothing: antialiased; color: #1b2a41; }
h1, h2, h3, .ed-head h2, .ed-hero h1, .portal-head h1, .nav-brand { font-family: var(--font-display); }
.edu-strip { background: #061f42; }
.navbar { border-bottom: 1px solid var(--border2); box-shadow: 0 1px 0 rgba(8,44,92,.04), 0 6px 20px rgba(8,44,92,.06); backdrop-filter: saturate(1.4) blur(10px); background: rgba(255,255,255,.92); }
.brand-icon { background: linear-gradient(135deg, #0b4a9e, #1976d2); box-shadow: 0 4px 12px rgba(11,74,158,.35); }
.btn-nav-primary, .btn-saffron { background: linear-gradient(135deg, #f7a024, #ee7d00); box-shadow: 0 6px 16px rgba(238,125,0,.3); border-radius: 8px; }
.btn-saffron:hover, .btn-nav-primary:hover { transform: translateY(-1px); background: linear-gradient(135deg, #ee7d00, #d96d00); color: #fff; }
.btn-primary, .btn-outline { border-radius: 8px; }
.btn-primary { background: linear-gradient(135deg, #0b4a9e, #1565c0); }

.ed-hero { background: radial-gradient(900px 420px at 85% -10%, rgba(66,153,255,.35), transparent 60%), radial-gradient(700px 400px at -5% 110%, rgba(242,138,15,.22), transparent 60%), linear-gradient(135deg, #051f45 0%, #0a3d82 60%, #0f55b0 100%); }
.ed-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%); }
.ed-hero h1 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -1.2px; }
.ed-hero h1 em { background: linear-gradient(90deg, #ffd08a, #ffa94d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ed-stats { padding-top: 26px; border-top: 1px solid rgba(255,255,255,.15); }
.exam-mock { transform: perspective(1400px) rotateY(-7deg) rotateX(2deg); transition: transform .4s; border: 1px solid rgba(255,255,255,.4); animation: floaty 6s ease-in-out infinite; }
.exam-mock:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
@keyframes floaty { 50% { translate: 0 -8px; } }

.ed-section { padding: 80px 24px; }
.ed-head h2 { font-size: clamp(24px, 3vw, 36px); }
.ed-card { box-shadow: var(--shadow-card); border-radius: 14px; padding: 26px; }
a.ed-card:hover { box-shadow: 0 18px 40px rgba(8,44,92,.16); transform: translateY(-4px); }
.ed-card .ico { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, #e8f0fb, #d3e3fa); font-size: 26px; }
.ed-step { box-shadow: var(--shadow-card); border-radius: 14px; }
.ed-tag { border-radius: 20px; }

.ed-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.ed-feature { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--border2); border-radius: 14px; padding: 22px; box-shadow: var(--shadow-card); transition: .2s; }
.ed-feature:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(8,44,92,.12); }
.ed-feature .fi { flex: 0 0 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 20px; background: var(--c); box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 40%, transparent); }
.ed-feature h3 { font-size: 16px; color: var(--navy); margin-bottom: 3px; }
.ed-feature p { font-size: 14px; color: var(--text2); line-height: 1.55; }

.ed-cta { background: radial-gradient(600px 260px at 50% 0, rgba(66,153,255,.3), transparent 70%), linear-gradient(135deg, #051f45, #0a3d82); padding: 72px 24px; }
.footer { background: #051f45; }

.portal-head { background: radial-gradient(700px 300px at 90% 0, rgba(66,153,255,.3), transparent 60%), linear-gradient(135deg, #051f45, #0a3d82); padding: 56px 24px; }
.test-row { border-radius: 14px; box-shadow: var(--shadow-card); padding: 20px 24px; transition: .18s; }
.test-row:hover { transform: translateX(3px); box-shadow: 0 12px 30px rgba(8,44,92,.12); }
.btn-start { border-radius: 8px; padding: 11px 26px; background: linear-gradient(135deg, #22a05a, #178045); box-shadow: 0 6px 14px rgba(26,138,74,.28); }
.btn-start.locked { background: #8a97aa; box-shadow: none; }
.chip { transition: .15s; }.chip:hover { border-color: var(--primary); color: var(--primary); }.chip.on:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) { .exam-mock { animation: none; transform: none; } * { transition: none !important; } }

@media (max-width: 900px) {
  .exam-mock { transform: none; animation: none; }
  .ed-section { padding: 56px 20px; }
  .ed-hero-inner { grid-template-columns: 1fr; padding: 44px 20px 52px; }
  .nav-links, .nav-actions .nav-user { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-actions { margin-left: 0; }
  .portal-filters { top: 0; position: static; }
  .test-row { grid-template-columns: 1fr; }
  .edu-strip-inner span:first-child { display: none; }
}

/* ===== v3: light theme ===== */
.edu-strip { background: #eaf1fb; color: #3b5578; border-bottom: 1px solid #d7e3f4; }
.edu-strip a { color: var(--primary); font-weight: 600; }
.edu-strip a:hover { color: #d97706; }

.ed-hero { background: radial-gradient(800px 380px at 90% -10%, rgba(66,153,255,.22), transparent 60%), radial-gradient(600px 360px at -5% 110%, rgba(242,138,15,.14), transparent 60%), linear-gradient(180deg, #f7faff 0%, #eaf2fd 100%); color: var(--navy); border-bottom: 1px solid #dbe6f5; }
.ed-hero::before { background-image: linear-gradient(rgba(11,74,158,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(11,74,158,.06) 1px, transparent 1px); }
.ed-hero::after { background: rgba(11,74,158,.05); }
.ed-eyebrow { background: #fff; border: 1px solid #cfe0f6; color: var(--primary); box-shadow: 0 2px 8px rgba(8,44,92,.06); }
.ed-hero h1 { color: var(--navy); }
.ed-hero h1 em { background: linear-gradient(90deg, #f28a0f, #e06a00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ed-hero p.lead { color: #46607f; }
.ed-hero .btn-outline { color: var(--primary); border-color: var(--primary); background: #fff; }
.ed-hero .btn-outline:hover { background: var(--primary-pale); color: var(--primary); }
.ed-stats { border-top: 1px solid #d3e1f4; }
.ed-stats strong { color: var(--navy); }
.ed-stats span { color: #5b7394; }
.exam-mock { border: 1px solid #d3e1f4; box-shadow: 0 30px 60px rgba(8,44,92,.18); }

.ed-cta { background: radial-gradient(600px 260px at 50% 0, rgba(66,153,255,.18), transparent 70%), linear-gradient(180deg, #eaf2fd, #dfeafa); color: var(--navy); border-top: 1px solid #d3e1f4; }
.ed-cta p { color: #46607f; }

.portal-head { background: radial-gradient(700px 300px at 90% 0, rgba(66,153,255,.2), transparent 60%), linear-gradient(180deg, #f7faff, #e6effb); color: var(--navy); border-bottom: 1px solid #d7e3f4; }
.portal-head p { color: #46607f; }

.footer { background: #fff; border-top: 1px solid var(--border2); color: #46607f; }
.footer-logo, .footer h4 { color: var(--navy); }
.footer-brand p, .footer-newsletter p, .footer-bottom p { color: #6b7f9c; }
.footer-links a { color: #46607f; }
.footer-links a:hover { color: var(--primary); }
.footer-social a { color: #46607f; }
.footer-bottom { border-top: 1px solid var(--border2); color: #6b7f9c; }

/* ===== auth pages ===== */
.auth-page { min-height: calc(100vh - 110px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; padding: 0; align-items: stretch; background: linear-gradient(180deg, #f7faff, #eef4fc); }
.auth-side { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; gap: 14px; background: radial-gradient(500px 300px at 20% 0, rgba(66,153,255,.18), transparent 70%), linear-gradient(180deg, #eaf2fd, #dde9f9); border-right: 1px solid #d3e1f4; }
.auth-side h2 { font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; color: var(--navy); letter-spacing: -.8px; }
.auth-side h2 em { font-style: normal; color: var(--saffron); }
.auth-side p { color: #46607f; max-width: 460px; font-size: 16px; }
.auth-side ul { list-style: none; display: grid; gap: 12px; margin-top: 10px; }
.auth-side li { display: flex; align-items: center; gap: 12px; color: #2d4466; font-weight: 500; }
.auth-side li i { width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--primary); display: grid; place-items: center; box-shadow: 0 4px 10px rgba(8,44,92,.1); }
.auth-card { align-self: center; justify-self: center; margin: 40px 24px; max-width: 440px; border-radius: 18px; border: 1px solid #dbe6f5; box-shadow: 0 24px 60px rgba(8,44,92,.12); padding: 40px 36px; }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-display); font-size: 21px; color: var(--navy); }
.auth-logo .brand-icon { width: 36px; height: 36px; font-size: 17px; }
.auth-title { font-family: var(--font-display); color: var(--navy); }
.form-input { background: #f6f9fe; border: 1.5px solid #d3dff0; border-radius: 10px; padding: 12px 14px; }
.form-input:focus { border-color: var(--primary-light); background: #fff; box-shadow: 0 0 0 4px rgba(21,101,192,.12); }
.otp-digit { border-radius: 10px; background: #f6f9fe; border-color: #d3dff0; }
.otp-digit:focus { border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(21,101,192,.12); }
.btn-full { border-radius: 10px; padding: 13px; background: linear-gradient(135deg, #0b4a9e, #1565c0); }
.btn-full:hover { background: linear-gradient(135deg, #083a7c, #0b4a9e); }
.flash { border-radius: 10px; font-size: 14px; padding: 11px 14px; }
.resend-btn { background: none; border: 0; color: var(--primary); font-weight: 600; cursor: pointer; font-family: inherit; }
.resend-btn:disabled { color: var(--text3); cursor: not-allowed; }

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-card { margin: 28px 16px; padding: 30px 22px; }
}

/* certificate band on home */
.cert-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.cert-band h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); color: var(--navy); margin: 10px 0; line-height: 1.2; }
.cert-band p { color: var(--text2); max-width: 520px; }
.cert-mini { aspect-ratio: 1.414; background: #fff; border: 3px solid var(--primary); outline: 1px solid var(--saffron); outline-offset: -9px; border-radius: 6px; display: grid; place-items: center; text-align: center; box-shadow: 0 24px 50px rgba(8,44,92,.16); background-image: radial-gradient(circle at 50% 0, #f2f7ff, #fff 65%); }
.cert-mini small { letter-spacing: 3px; color: #5b7394; font-size: 11px; display: block; }
.cert-mini b { display: block; font: italic 600 32px Georgia, serif; color: var(--primary); border-bottom: 2px solid var(--saffron); padding: 4px 24px; margin: 12px auto; }
.cert-mini span { font-weight: 700; color: var(--navy); display: block; }
.cert-mini em { font-style: normal; font-size: 11px; color: #6b7f9c; display: block; margin-top: 10px; }
@media (max-width: 900px) { .cert-band { grid-template-columns: 1fr; } }
