/* ============================================================
   auth.css — Bumasan B2B Marketplace
   Shared styles for: login · register-buyer · register-manufacturer · 404
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --blue:    #1A3FBF;
  --blue-dk: #1534a8;
  --green:   #0b6b52;
  --green-dk:#095c44;
  --border:  #e9eaed;
  --bg:      #f4f5f8;
  --text:    #111418;
  --muted:   #6b7280;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ============================================================
   SHARED SPLIT-PANEL LAYOUT
   Used by: login.html, register-buyer.html, register-manufacturer.html
   ============================================================ */
.auth-wrap,
.reg-wrap {
  display: flex;
  min-height: 100vh;
}

/* ============================================================
   LEFT PANEL — BASE
   ============================================================ */
.auth-left,
.reg-left {
  flex: 0 0 42%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 3rem;
  position: relative;
  overflow: hidden;
  color: #fff;
}

/* blue variant (login + register-buyer) */
.auth-left,
.reg-left-blue {
  background: linear-gradient(145deg, #0d1f6b 0%, #1A3FBF 55%, #2e54d4 100%);
}

/* green variant (register-manufacturer) */
.reg-left-green {
  background: linear-gradient(145deg, #032d22 0%, #0b6b52 55%, #12836b 100%);
}

/* Bottom-right glow orb */
.auth-left::after,
.reg-left::after {
  content: '';
  position: absolute;
  bottom: -140px; right: -100px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(255,255,255,.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Top-left glow orb */
.auth-left::before,
.reg-left::before {
  content: '';
  position: absolute;
  top: -80px; left: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Login-specific dotted texture overlay (overrides ::before) */
.auth-left::before {
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  inset: 0;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 0;
}

/* Grid pattern (register pages) */
.reg-grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Orb top (login-specific) */
.orb-top {
  position: absolute;
  top: -80px; left: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ── Left Panel: Content ─────────────────────────────────── */
.auth-left-body,
.reg-left-body {
  position: relative;
  z-index: 1;
}

/* Logo / Brand link */
.auth-brand,
.reg-brand {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.45rem;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  position: relative;
  z-index: 1;
}

.auth-brand-icon,
.reg-brand-icon {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.18);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Headline */
.auth-headline,
.reg-headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  line-height: 1.2;
  color: #fff;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

/* Muted accent in headline */
.auth-headline span { color: rgba(255,255,255,.55); }

/* Trust list */
.auth-trust-list,
.reg-trust-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.auth-trust-item,
.reg-trust-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
}

.auth-trust-icon,
.reg-trust-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.12);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
  color: #fff;
}

.auth-trust-title,
.reg-trust-title { font-size: .87rem; font-weight: 600; color: #fff; line-height: 1.3; }

.auth-trust-sub,
.reg-trust-sub   { font-size: .75rem; color: rgba(255,255,255,.5); margin-top: 2px; }

/* Stats strip (register pages) */
.reg-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}
.reg-stat-num   { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.5rem; color: #fff; line-height: 1; }
.reg-stat-label { font-size: .72rem; color: rgba(255,255,255,.5); margin-top: 2px; }

/* Footer text */
.auth-left-foot,
.reg-left-foot {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  position: relative;
  z-index: 1;
}

/* ============================================================
   RIGHT PANEL — FORM AREA
   ============================================================ */
.auth-right,
.reg-right {
  flex: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  overflow-y: auto;
}

/* login: center vertically */
.auth-right { align-items: center; }
/* register: start from top */
.reg-right  { align-items: flex-start; }

.auth-card { width: 100%; max-width: 440px; }
.reg-card  { width: 100%; max-width: 540px; padding-top: .5rem; }

/* Card title / subtitle */
.auth-card-title,
.reg-card-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.85rem;
  letter-spacing: -.4px;
  color: var(--text);
  margin-bottom: .3rem;
}

.auth-card-sub,
.reg-card-sub {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

/* ============================================================
   STEPPER
   ============================================================ */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1rem;
}

.step-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  flex-shrink: 0;
  transition: all .2s;
}

.step-dot.current { background: var(--blue); color: #fff; box-shadow: 0 0 0 4px rgba(26,63,191,.15); }
.step-dot.done    { background: #e4eefc; color: var(--blue); }
.step-dot.future  { background: #f1f2f5; color: #9ca3af; }

/* green variant (manufacturer) */
.step-dot.current-green { background: var(--green); color: #fff; box-shadow: 0 0 0 4px rgba(11,107,82,.15); }

.step-line      { flex: 1; height: 2px; background: #e5e7eb; }
.step-line.done { background: var(--blue); }

.step-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.step-label         { font-size: .72rem; font-weight: 600; color: var(--muted); }
.step-label.current { color: var(--blue); }
.step-label.current-green { color: var(--green); }

/* ============================================================
   FORM FIELDS
   ============================================================ */
.field-label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: .4rem;
}

.field-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .68rem .95rem;
  font-size: .88rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}

.field-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,63,191,.1);
}

/* Green focus variant (manufacturer) */
.field-input.green:focus,
.reg-wrap-green .field-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11,107,82,.1);
}

/* Hint text */
.field-hint {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .3rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}

/* Password wrapper + eye toggle */
.field-wrap { position: relative; }

.field-eye {
  position: absolute;
  right: .85rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--muted);
  font-size: .95rem;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color .15s;
}
.field-eye:hover { color: var(--text); }

/* Password strength bars */
.pwd-strength { display: flex; gap: 4px; margin-top: 6px; }

.pwd-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: #e5e7eb;
  transition: background .3s;
}
.pwd-bar.weak   { background: #ef4444; }
.pwd-bar.medium { background: #f59e0b; }
.pwd-bar.strong { background: #22c55e; }

/* ============================================================
   ROLE SELECTOR (login page)
   ============================================================ */
.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-bottom: 1.5rem;
}

.role-btn {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: .85rem 1rem;
  cursor: pointer;
  transition: all .18s;
  background: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-family: 'DM Sans', sans-serif;
}

.role-btn:hover         { border-color: #a8bbff; background: #f7f9ff; }
.role-btn.active-buyer  { border-color: var(--blue);  background: #eef2ff; box-shadow: 0 0 0 3px rgba(26,63,191,.08); }
.role-btn.active-mfr    { border-color: var(--green); background: #e9f7f3; box-shadow: 0 0 0 3px rgba(11,107,82,.08); }

.role-btn-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  margin-bottom: .15rem;
}
.role-btn-icon.blue  { background: #dce6ff; color: var(--blue); }
.role-btn-icon.green { background: #d1ede6; color: var(--green); }

.role-btn-label { font-size: .85rem; font-weight: 700; color: var(--text); }
.role-btn-sub   { font-size: .74rem; color: var(--muted); }

/* ============================================================
   PLAN CARDS
   ============================================================ */

/* 2-column (buyer) */
.plan-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
/* 3-column (manufacturer) */
.plan-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }

.plan-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: .9rem .85rem;
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
  position: relative;
}

.plan-card:hover { border-color: #a8bbff; }
.plan-card.selected-blue  { border-color: var(--blue);  background: #eef2ff; }
.plan-card.selected-green { border-color: var(--green); background: #e9f7f3; }

/* Keep plain .selected for backward compatibility */
.plan-card.selected { border-color: var(--blue); background: #eef2ff; }

/* Popular badge */
.plan-card-badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
  color: #fff;
}
.plan-card-badge.blue  { background: var(--blue); }
.plan-card-badge.green { background: var(--green); }
/* default to blue */
.plan-card-badge       { background: var(--blue); }

/* Checkmark dot (top-right corner) */
.plan-check {
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: absolute; top: .8rem; right: .8rem;
  transition: all .18s;
}
.plan-card.selected       .plan-check,
.plan-card.selected-blue  .plan-check { background: var(--blue);  border-color: var(--blue); }
.plan-card.selected-green .plan-check { background: var(--green); border-color: var(--green); }

.plan-card.selected       .plan-check::after,
.plan-card.selected-blue  .plan-check::after,
.plan-card.selected-green .plan-check::after {
  content: '✓';
  font-size: .5rem;
  font-weight: 700;
  color: #fff;
}

.plan-name  { font-size: .88rem; font-weight: 700; color: var(--text); padding-right: 1.4rem; }
.plan-price { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.25rem; margin: .12rem 0 .08rem; }
.plan-price.blue  { color: var(--blue); }
.plan-price.green { color: var(--green); }
.plan-price       { color: var(--blue); } /* default */
.plan-price small { font-family: 'DM Sans', sans-serif; font-size: .75rem; font-weight: 500; color: var(--muted); }
.plan-desc  { font-size: .72rem; color: var(--muted); line-height: 1.4; }

/* ============================================================
   OAUTH BUTTON (social sign-in)
   ============================================================ */
.oauth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background .15s, border-color .15s;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: .65rem;
}
.oauth-btn:hover { background: #f7f8fa; border-color: #c8ccdb; }

/* ── Divider "or" ──────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--muted);
  font-size: .8rem;
  margin: 1.25rem 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   PRIMARY ACTION BUTTONS
   ============================================================ */

/* Login */
.btn-auth {
  width: 100%;
  padding: .82rem 1rem;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: none;
  transition: background .18s, transform .15s;
  margin-top: 1.25rem;
}
.btn-auth:hover { transform: translateY(-1px); }

.btn-auth-blue         { background: var(--blue);  color: #fff; }
.btn-auth-blue:hover   { background: var(--blue-dk); }
.btn-auth-green        { background: var(--green); color: #fff; }
.btn-auth-green:hover  { background: var(--green-dk); }

/* Register */
.btn-reg {
  width: 100%;
  padding: .85rem;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: none;
  transition: background .18s, transform .15s;
  margin-top: 1.25rem;
}
.btn-reg:hover { transform: translateY(-1px); }

.btn-reg-blue        { background: var(--blue);  color: #fff; }
.btn-reg-blue:hover  { background: var(--blue-dk); }
.btn-reg-green       { background: var(--green); color: #fff; }
.btn-reg-green:hover { background: var(--green-dk); }

/* Alias for single-class usage */
.btn-reg { background: var(--blue); color: #fff; }
.btn-reg.green { background: var(--green); }

/* ============================================================
   FOOTNOTES & HELPER LINKS
   ============================================================ */
.auth-footnote,
.reg-footnote {
  text-align: center;
  font-size: .83rem;
  color: var(--muted);
  margin-top: 1rem;
}

.auth-footnote a,
.reg-footnote a {
  text-decoration: none;
  font-weight: 600;
}
.auth-footnote a { color: var(--blue); }
.reg-footnote a  { color: var(--blue); }

/* Green variants */
.reg-wrap-green .reg-footnote a { color: var(--green); }
.active-mfr-context .forgot-link { color: var(--green); }
.active-mfr-context .auth-footnote a { color: var(--green); }
.active-mfr-context .auth-register-banner a { color: var(--green); }

.auth-footnote a:hover,
.reg-footnote a:hover { text-decoration: underline; }

/* Forgot password link */
.forgot-link {
  font-size: .8rem;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}
.forgot-link:hover { text-decoration: underline; }

/* "Are you a manufacturer?" banner (login) */
.auth-register-banner {
  margin-top: 1.5rem;
  background: var(--bg);
  border-radius: 10px;
  padding: .85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-size: .83rem;
  color: #374151;
}
.auth-register-banner a {
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}
.auth-register-banner a:hover { text-decoration: underline; }

/* ============================================================
   MOBILE TOP BAR (shown <992px, replaces left panel)
   ============================================================ */
.auth-mobile-bar,
.reg-mobile-bar {
  display: none;        /* shown via media query */
  color: #fff;
  padding: 1rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.auth-mobile-bar { background: var(--blue); }
.reg-mobile-bar  { background: var(--blue); }

.auth-mobile-bar.green,
.reg-mobile-bar.green { background: var(--green); }

.auth-mobile-bar a,
.reg-mobile-bar a {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.auth-mobile-bar a span,
.reg-mobile-bar a span {
  width: 26px; height: 26px;
  background: rgba(255,255,255,.2);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}

.mobile-bar-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  background: rgba(255,255,255,.18);
  padding: .35rem .8rem;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Minimal nav bar */
.mini-nav {
  padding: 1.1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.mini-brand {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .55rem;
}

.mini-brand-icon {
  width: 30px; height: 30px;
  background: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.mini-brand-accent { color: var(--blue); }

.mini-nav-links          { display: flex; gap: 1.5rem; font-size: .85rem; }
.mini-nav-links a        { text-decoration: none; color: var(--muted); transition: color .15s; }
.mini-nav-links a:hover  { color: var(--text); }

.mini-nav-cta {
  background: var(--blue);
  color: #fff;
  padding: .4rem 1rem;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.mini-nav-cta:hover { background: var(--blue-dk); color: #fff; }

/* ── 404 Hero ────────────────────────────────────────────── */
.hero-404 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 3rem 1.5rem;
}

/* Background dot grid */
.hero-404::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26,63,191,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,63,191,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Animated gradient blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(26,63,191,.08), transparent 70%);
  top: -120px; left: -100px;
  animation: blob-drift 8s ease-in-out infinite alternate;
}
.blob-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(11,107,82,.07), transparent 70%);
  bottom: -80px; right: -60px;
  animation: blob-drift 10s ease-in-out infinite alternate-reverse;
}
.blob-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(124,58,237,.06), transparent 70%);
  top: 40%; left: 55%;
  animation: blob-drift 6s ease-in-out infinite alternate;
}
@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.08); }
}

/* ── Error card ─────────────────────────────────────────── */
.err-card {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  width: 100%;
}

/* 404 digit display */
.err-num {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .1em;
  margin-bottom: 1.25rem;
  line-height: 1;
  animation: float-up .6s ease both;
}

.err-digit {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(5rem, 18vw, 10rem);
  letter-spacing: -.04em;
  user-select: none;
}

.err-digit.blue { color: var(--blue); }

.err-digit.mid {
  font-size: clamp(4rem, 15vw, 8rem);
  color: transparent;
  -webkit-text-stroke: 3px #c8d2f7;
  position: relative;
}

/* Spinning gear inside '0' */
.err-digit.mid::after {
  content: '⚙';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: .42em;
  color: #c8d2f7;
  -webkit-text-stroke: 0px;
  animation: spin 6s linear infinite;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Entrance animations */
@keyframes float-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Pill tag */
.err-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #fff;
  border: 1px solid #e0e3f0;
  border-radius: 20px;
  padding: .35rem .9rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  animation: float-up .5s .1s ease both;
}

.err-heading {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  letter-spacing: -.4px;
  margin-bottom: .75rem;
  color: var(--text);
  animation: float-up .5s .15s ease both;
}

.err-sub {
  font-size: .95rem;
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
  animation: float-up .5s .2s ease both;
}

/* CTA row */
.err-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  animation: float-up .5s .25s ease both;
}

.btn-err-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--blue); color: #fff;
  padding: .75rem 1.5rem;
  border-radius: 10px;
  font-size: .9rem; font-weight: 700;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn-err-primary:hover { background: var(--blue-dk); transform: translateY(-2px); color: #fff; }

.btn-err-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; color: var(--muted);
  border: 1.5px solid var(--border);
  padding: .75rem 1.5rem;
  border-radius: 10px;
  font-size: .9rem; font-weight: 600;
  text-decoration: none;
  transition: all .15s;
}
.btn-err-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* Quick links */
.err-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  animation: float-up .5s .3s ease both;
}

.err-link {
  display: inline-flex; align-items: center; gap: .35rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .4rem .85rem;
  font-size: .8rem; font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: all .15s;
}
.err-link:hover { border-color: var(--blue); color: var(--blue); background: #f0f4ff; }

/* ── Mini footer (404 page) ─────────────────────────────── */
.mini-footer {
  padding: 1rem 2rem;
  border-top: 1px solid var(--border);
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .75rem;
  color: var(--muted);
}
.mini-footer a       { color: var(--muted); text-decoration: none; transition: color .15s; }
.mini-footer a:hover { color: var(--blue); }

.mini-footer-links { display: flex; gap: 1.25rem; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ── 992px: hide left panel, show mobile bar ── */
@media (max-width: 991.98px) {
  .auth-left,
  .reg-left   { display: none; }

  .auth-mobile-bar,
  .reg-mobile-bar { display: flex; }

  .auth-wrap,
  .reg-wrap   { flex-direction: column; min-height: auto; }

  .auth-right {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem 1.25rem;
  }

  .reg-right  { padding: 2rem 1.25rem; }

  .auth-card  { max-width: 100%; }

  body { background: #fff; }

  /* 404 nav links */
  .mini-nav-links { display: none; }
}

/* ── 768px ── */
@media (max-width: 767.98px) {
  .err-heading { font-size: 1.5rem; }
}

/* ── 576px ── */
@media (max-width: 575.98px) {
  .auth-right { padding: 1.5rem 1rem; }
  .reg-right  { padding: 1.5rem 1rem; }

  .auth-card-title,
  .reg-card-title { font-size: 1.55rem; }

  /* Role selector: single column */
  .role-selector { grid-template-columns: 1fr; }

  /* Plan grids: single column */
  .plan-grid,
  .plan-grid-3 { grid-template-columns: 1fr; }

  /* 404 */
  .mini-nav { padding: 1rem; }
  .hero-404 { padding: 2rem 1rem; }

  .btn-err-primary,
  .btn-err-ghost { width: 100%; justify-content: center; }
}
