/* ===== AUTH SCREEN LAYOUT ===== */
.auth-root {
  display: grid; grid-template-columns: 1.05fr 1fr; height: 100%;
  background: var(--bg);
}
.auth-brand {
  position: relative; overflow: hidden;
  /* panel is always a dark-teal gradient → keep text light in BOTH themes */
  --on-primary: oklch(0.99 0.01 220);
  color: var(--on-primary);
  background: linear-gradient(150deg, var(--primary-strong), oklch(0.42 0.07 218) 55%, oklch(0.34 0.06 230));
}
[data-theme="dark"] .auth-brand {
  background: linear-gradient(150deg, oklch(0.40 0.07 215), oklch(0.26 0.05 222) 60%, oklch(0.20 0.03 230));
}
.auth-brand-inner {
  position: relative; height: 100%; padding: 44px clamp(40px, 5vw, 76px); overflow: hidden;
  display: flex; flex-direction: column; z-index: 1; gap: 22px;
}
.auth-right { display: flex; flex-direction: column; padding: 22px clamp(24px, 4vw, 64px) 18px; position: relative; min-height: 0; }
.auth-topbar { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.auth-center { flex: 1; display: flex; align-items: center; justify-content: center; overflow-y: auto; padding: 20px 0; min-height: 0; }
.auth-foot { text-align: center; font-size: 11.5px; color: var(--text-3); letter-spacing: .02em; flex-shrink: 0; padding-top: 10px; }
.auth-form-wrap { width: 100%; max-width: 380px; }
.auth-h2 { font-size: 29px; font-weight: 800; letter-spacing: -0.03em; margin: 0; color: var(--text); }
.auth-sub { color: var(--text-2); margin: 7px 0 0; font-size: 15px; }
.auth-alt {
  display: flex; align-items: center; gap: 7px; justify-content: center;
  margin-top: 26px; font-size: 14px; color: var(--text-2); padding-top: 22px;
  border-top: 1px solid var(--border);
}
.auth-alt button { font-weight: 700; color: var(--primary-strong); }
[data-theme="dark"] .auth-alt button { color: var(--primary-bright); }
.auth-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 18px; }
.auth-back:hover { color: var(--text); }

@media (max-width: 880px) {
  .auth-root { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
}

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--primary-strong); animation: spin .8s linear infinite; flex-shrink: 0; }
