/* ============================================================
   BillMint — Auth  |  Black · White · Yellow
   ============================================================ */

/* --- Tokens --- */
:root {
  --a-black:      #0a0a0a;
  --a-black-2:    #141414;
  --a-black-3:    #1f1f1f;
  --a-yellow:     #f5c842;
  --a-yellow-dk:  #d4a80a;
  --a-yellow-bg:  #fffbeb;
  --a-white:      #ffffff;
  --a-off-white:  #fafafa;
  --a-border:     #e2e2e2;
  --a-text:       #0a0a0a;
  --a-muted:      #6b7280;
  --a-error:      #dc2626;
  --a-success:    #16a34a;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.auth-body {
  min-height: 100vh;
  display: flex;
  background: var(--a-white);
  font-family: "Inter", system-ui, sans-serif;
}

.auth-split {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ============================================================
   LEFT — BRAND PANEL
   ============================================================ */
.auth-brand {
  width: 46%;
  background-color: var(--a-black);
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 56px 36px;
  /* Stick to viewport — prevents stretching when right panel is tall (e.g. onboarding) */
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  flex-shrink: 0;
}

/* Yellow glow bottom-right */
.auth-brand::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,200,66,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Top-left circle */
.auth-brand::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
  pointer-events: none;
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 36px;
  flex: 1;
}

/* --- Logo --- */
.auth-logo-row {
  display: flex;
  align-items: center;
}

.auth-logo-img {
  display: block;
  width: 168px;
  height: auto;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  box-sizing: border-box;
  object-fit: contain;
}

/* --- Headline --- */
.auth-brand-copy { display: flex; flex-direction: column; gap: 14px; }

.auth-headline {
  font-size: 40px;
  font-weight: 900;
  color: var(--a-white);
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin: 0;
}

.auth-headline span { color: var(--a-yellow); }

.auth-tagline {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 340px;
  margin: 0;
}

/* ============================================================
   3-D INVOICE SCENE
   ============================================================ */

/* Wrapper — padding on all sides creates a "badge zone" outside the card */
.auth-3d-wrap {
  position: relative;
  padding: 36px 60px 60px 16px; /* top | right | bottom | left */
}

/* Layer container — height is driven by the main card */
.auth-card-layers {
  position: relative;
}

/* Ghost / depth cards (sit behind the main card) */
.auth-ghost-card {
  position: absolute;
  inset: 0;
  border-radius: 16px;
}

.auth-ghost-2 {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transform: perspective(900px) rotateY(-16deg) rotateX(7deg) translate(24px, 20px);
  z-index: 0;
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
}

.auth-ghost-1 {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.09);
  transform: perspective(900px) rotateY(-16deg) rotateX(7deg) translate(12px, 10px);
  z-index: 1;
  box-shadow: 0 16px 40px rgba(0,0,0,0.32);
}

/* ── Main invoice card ── */
.auth-inv-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 22px 18px;
  transform: perspective(900px) rotateY(-16deg) rotateX(7deg);
  box-shadow:
    0 2px 6px rgba(0,0,0,0.06),
    0 12px 32px rgba(0,0,0,0.22),
    0 32px 72px rgba(0,0,0,0.44);
  animation: inv-card-float 4s ease-in-out infinite;
}

@keyframes inv-card-float {
  0%, 100% { transform: perspective(900px) rotateY(-16deg) rotateX(7deg) translateY(0px); }
  50%       { transform: perspective(900px) rotateY(-16deg) rotateX(7deg) translateY(-9px); }
}

/* Card top row: brand mark + invoice meta + status badge */
.auth-inv-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.auth-inv-brandmark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: #0a0a0a;
  color: #f5c842;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.auth-inv-meta { flex: 1; }

.auth-inv-doc-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  margin-bottom: 1px;
}

.auth-inv-number {
  font-size: 12px;
  font-weight: 700;
  color: #111111;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.auth-inv-status {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #16a34a;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Divider */
.auth-inv-rule {
  height: 1px;
  background: #f0f0f0;
  margin-bottom: 12px;
}

/* Customer + amount block */
.auth-inv-billed {
  font-size: 9.5px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.auth-inv-customer {
  font-size: 12.5px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 8px;
}

.auth-inv-amount {
  font-size: 28px;
  font-weight: 800;
  color: #0a0a0a;
  letter-spacing: -0.8px;
  line-height: 1;
  margin-bottom: 3px;
}

.auth-inv-gst-note {
  font-size: 10px;
  color: #9ca3af;
  margin-bottom: 14px;
}

/* Mini sparkline bar chart at the bottom of the card */
.auth-inv-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
}

.auth-inv-bar {
  flex: 1;
  height: var(--bh);
  background: #e5e7eb;
  border-radius: 3px 3px 0 0;
  transition: background 0.2s;
}

.auth-inv-bar-hi {
  background: #f5c842;
}

/* ── Floating badge pills ── */
.auth-float-pill {
  position: absolute;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #0a0a0a;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.06);
  white-space: nowrap;
  z-index: 10;
}

.auth-pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
}

/* GST badge — top-right padding zone (36px top, 60px right available) */
.auth-pill-gst {
  top: 6px;
  right: 6px;
  animation: pill-float-a 3.6s ease-in-out infinite;
}

/* PDF badge — bottom-right padding zone (60px bottom, 60px right available) */
.auth-pill-pdf {
  bottom: 14px;
  right: 6px;
  animation: pill-float-b 4.1s ease-in-out infinite 0.7s;
}

/* Yellow ₹ coin — bottom-left, slightly outside the left wrap edge */
.auth-float-circle {
  position: absolute;
  bottom: 14px;
  left: -16px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--a-yellow);
  color: var(--a-black);
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(245,200,66,0.50), 0 2px 6px rgba(0,0,0,0.12);
  z-index: 10;
  animation: pill-float-c 3.3s ease-in-out infinite 1.3s;
}

@keyframes pill-float-a {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-7px); }
}

@keyframes pill-float-b {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

@keyframes pill-float-c {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-8px) rotate(8deg); }
}

/* Bottom brand footer */
.auth-brand-foot {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: rgba(255,255,255,0.22);
  margin-top: 32px;
}

/* ============================================================
   RIGHT — FORM PANEL
   ============================================================ */
.auth-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--a-white);
  overflow-y: auto;
  position: relative;
}

/* Yellow top accent bar */
.auth-form-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--a-yellow);
}

.auth-form-inner {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 56px 40px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Form header */
.auth-form-head {
  margin-bottom: 28px;
}

.auth-form-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--a-text);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.auth-form-sub {
  font-size: 16px;
  color: var(--a-muted);
  line-height: 1.5;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.auth-form-inner .form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--a-text);
  margin-bottom: 7px;
  display: block;
}

.auth-form-inner .form-control {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--a-border);
  border-radius: 10px;
  font-size: 15px;
  color: var(--a-text);
  background: var(--a-white);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  box-sizing: border-box;
}

.auth-form-inner .form-control:focus {
  border-color: var(--a-black);
  box-shadow: 0 0 0 3px rgba(245, 200, 66, 0.28);
}

.auth-form-inner .form-control.is-invalid {
  border-color: var(--a-error);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

.auth-form-inner .form-control.is-valid {
  border-color: var(--a-success);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}

.auth-form-inner .form-control::placeholder {
  color: #c0c0c0;
  font-size: 14px;
}

.auth-form-inner .form-error {
  font-size: 12.5px;
  color: var(--a-error);
  margin-top: 5px;
  display: block;
}

.auth-form-inner .form-hint {
  font-size: 12.5px;
  color: var(--a-muted);
  margin-top: 5px;
  display: block;
}

.auth-form-inner .form-group {
  margin-bottom: 18px;
}

/* Password field wrapper */
.auth-form-inner .password-field {
  position: relative;
}

.auth-form-inner .password-field .form-control {
  padding-right: 50px;
}

.auth-form-inner .password-toggle {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer;
  color: #b0b0b0;
  padding: 0;
  display: flex; align-items: center;
  transition: color 0.15s;
}

.auth-form-inner .password-toggle:hover { color: var(--a-text); }

/* Grid 2 col */
.auth-form-inner .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Primary button */
.auth-btn-primary {
  width: 100%;
  height: 52px;
  background: var(--a-black);
  color: var(--a-white);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  font-family: inherit;
  letter-spacing: 0.01em;
  margin-top: 6px;
}

.auth-btn-primary:hover {
  background: var(--a-black-3);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.auth-btn-primary:active { transform: scale(0.99); }
.auth-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Yellow accent button */
.auth-btn-yellow {
  background: var(--a-yellow);
  color: var(--a-black);
}
.auth-btn-yellow:hover {
  background: var(--a-yellow-dk);
  box-shadow: 0 4px 16px rgba(245,200,66,0.35);
}

/* Secondary / ghost button */
.auth-btn-secondary {
  height: 48px;
  padding: 0 22px;
  background: var(--a-white);
  color: var(--a-text);
  border: 1.5px solid var(--a-border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  font-family: inherit;
  letter-spacing: 0.01em;
}
.auth-btn-secondary:hover {
  border-color: var(--a-black);
  background: var(--a-off-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.auth-btn-secondary:active { transform: scale(0.99); }

/* ============================================================
   ONBOARDING STEP INDICATOR  (overrides main.css defaults)
   ============================================================ */
.auth-form-inner .onboarding-steps {
  margin-bottom: 36px;
}

.auth-form-inner .step-circle {
  width: 36px;
  height: 36px;
  border: 2px solid var(--a-border);
  border-radius: 50%;
  background: var(--a-white);
  color: #b0b0b0;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-form-inner .step-item.active .step-circle {
  border-color: var(--a-black);
  background: var(--a-black);
  color: var(--a-white);
}

.auth-form-inner .step-item.completed .step-circle {
  border-color: var(--a-yellow);
  background: var(--a-yellow);
  color: var(--a-black);
  font-weight: 900;
}

.auth-form-inner .step-label {
  font-size: 11px;
  font-weight: 500;
  color: #b0b0b0;
  white-space: nowrap;
  margin-top: 4px;
}

.auth-form-inner .step-item.active .step-label {
  color: var(--a-black);
  font-weight: 700;
}

.auth-form-inner .step-item.completed .step-label {
  color: var(--a-muted);
}

.auth-form-inner .step-line {
  flex: 1;
  height: 2px;
  background: var(--a-border);
  margin: 0 10px;
  margin-bottom: 24px;
}

.auth-form-inner .step-line.completed {
  background: var(--a-yellow);
}

/* Section headings inside onboarding forms */
.auth-section-head {
  margin-bottom: 22px;
}
.auth-section-head h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--a-text);
  margin: 0 0 4px;
}
.auth-section-head p {
  font-size: 13.5px;
  color: var(--a-muted);
  margin: 0;
  line-height: 1.5;
}

/* Onboarding bottom nav row */
.auth-form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.auth-btn-inline {
  height: 48px;
  padding: 0 26px;
  background: var(--a-black);
  color: var(--a-white);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.auth-btn-inline:hover {
  background: var(--a-black-3);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.auth-btn-inline.yellow {
  background: var(--a-yellow);
  color: var(--a-black);
}
.auth-btn-inline.yellow:hover {
  background: var(--a-yellow-dk);
  box-shadow: 0 4px 14px rgba(245,200,66,0.35);
}
.auth-btn-inline:disabled { opacity: 0.55; cursor: not-allowed; }

/* ============================================================
   MODALS  (Terms of Service / Privacy Policy)
   ============================================================ */

/* Full-screen overlay */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Alpine overlay fade transition classes */
.auth-overlay-in  { transition: opacity 0.2s ease; }
.auth-overlay-from { opacity: 0; }
.auth-overlay-to   { opacity: 1; }

/* Modal card */
.auth-modal-box {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 580px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.04),
    0 20px 60px rgba(0,0,0,0.30),
    0 0 0 1px rgba(0,0,0,0.06);
  animation: auth-modal-pop 0.22s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes auth-modal-pop {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0px);  }
}

/* Header */
.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.auth-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--a-black);
  margin: 0;
  letter-spacing: -0.3px;
}

/* Yellow left-border accent on the modal title */
.auth-modal-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--a-yellow);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Close ✕ button */
.auth-modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1.5px solid #e5e5e5;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
  padding: 0;
}

.auth-modal-close:hover {
  background: #f5f5f5;
  border-color: #bbb;
  color: #0a0a0a;
}

/* Scrollable body */
.auth-modal-body {
  padding: 22px 24px 20px;
  overflow-y: auto;
  flex: 1;
  font-size: 13.5px;
  color: #374151;
  line-height: 1.75;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

.auth-modal-body::-webkit-scrollbar { width: 5px; }
.auth-modal-body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }

/* "Last updated" meta line */
.auth-modal-updated {
  font-size: 12px;
  color: #9ca3af;
  margin: 0 0 18px;
  font-style: italic;
}

/* Section headings inside modal */
.auth-modal-body h4 {
  font-size: 11px;
  font-weight: 800;
  color: var(--a-black);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 22px 0 7px;
}

.auth-modal-body h4:first-of-type { margin-top: 0; }

.auth-modal-body p { margin: 0 0 10px; }

.auth-modal-body ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.auth-modal-body ul li { margin-bottom: 5px; }

.auth-modal-body strong { color: var(--a-black); font-weight: 700; }

/* Footer */
.auth-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* ============================================================
   Checkbox row
   ============================================================ */
/* Checkbox row */
.auth-check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
}

.auth-check-row input[type="checkbox"] {
  width: 17px; height: 17px;
  accent-color: var(--a-black);
  cursor: pointer;
  flex-shrink: 0;
}

.auth-check-row label {
  font-size: 14px;
  color: var(--a-muted);
  cursor: pointer;
  line-height: 1.4;
}

/* Links */
.auth-link {
  color: var(--a-black);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--a-yellow);
  padding-bottom: 1px;
  transition: border-color 0.15s, color 0.15s;
}
.auth-link:hover {
  color: var(--a-black);
  border-color: var(--a-yellow-dk);
}

/* Bottom switch text */
.auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--a-muted);
  margin-top: 24px;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: #d0d0d0;
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--a-border);
}

/* Spinner */
.auth-spinner {
  width: 17px; height: 17px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.auth-btn-yellow .auth-spinner {
  border-color: rgba(0,0,0,0.2);
  border-top-color: var(--a-black);
}

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

/* Password strength bar */
.auth-strength-bar {
  height: 4px;
  background: #ebebeb;
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.auth-strength-bar div {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}
.s-weak   { background: var(--a-error); }
.s-fair   { background: #f59e0b; }
.s-good   { background: #3b82f6; }
.s-strong { background: var(--a-success); }

.auth-strength-label {
  font-size: 12px;
  color: var(--a-muted);
  margin-top: 5px;
}

/* Valid feedback */
.auth-valid-msg {
  font-size: 12.5px;
  color: var(--a-success);
  margin-top: 5px;
  display: block;
}

/* Page footer */
.auth-page-foot {
  text-align: center;
  font-size: 12.5px;
  color: #c0c0c0;
  margin-top: 36px;
}

/* Messages */
.auth-form-inner .messages { margin-bottom: 20px; }

/* ============================================================
   ONBOARDING TOPBAR
   ============================================================ */
.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 28px 14px;
  border-bottom: 1px solid var(--a-border);
}

.auth-topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--a-muted);
  background: var(--a-off-white);
  border: 1px solid var(--a-border);
  border-radius: 20px;
  padding: 5px 12px 5px 8px;
}

.auth-topbar-user-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--a-black);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.auth-topbar-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #dc2626;
  text-decoration: none;
  border: 1.5px solid #fca5a5;
  border-radius: 8px;
  padding: 6px 14px;
  background: #fef2f2;
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.auth-topbar-logout:hover {
  background: #fee2e2;
  border-color: #f87171;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .auth-brand { width: 42%; padding: 40px 40px; }
  .auth-headline { font-size: 34px; }
  .auth-form-inner { max-width: 480px; padding: 48px 32px 36px; }
}

@media (max-width: 860px) {
  .auth-brand { width: 38%; padding: 36px 32px; }
  .auth-headline { font-size: 28px; }
  .auth-3d-wrap { display: none; }
}

@media (max-width: 680px) {
  .auth-split { flex-direction: column; }

  .auth-brand {
    width: 100%;
    padding: 24px 24px 20px;
    /* Disable sticky on mobile — panel stacks on top, no scrolling issue */
    position: relative;
    height: auto;
  }

  .auth-brand-inner { gap: 20px; }
  .auth-headline { font-size: 26px; }
  .auth-tagline, .auth-3d-wrap { display: none; }
  .auth-brand::before, .auth-brand::after { display: none; }
  .auth-brand-foot { display: none; }

  .auth-form-panel::before { height: 3px; }
  .auth-form-inner { padding: 32px 20px 28px; max-width: 100%; justify-content: flex-start; }
  .auth-form-title { font-size: 26px; }
  .auth-form-sub { font-size: 14px; }
  .auth-form-inner .grid-2 { grid-template-columns: 1fr; gap: 0; }
}
