.auth-body {
  min-height: 100vh;
  overflow-x: hidden;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
}

/* ============ HERO (left) ============
   Calm and legible on purpose - a soft two-tone glow behind the copy,
   a short feature list instead of a busy animated gauge cluster/ticker,
   the same shape of side panel Claude/ChatGPT show next to their own
   sign-in forms. */
.auth-hero {
  position: relative;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(var(--accent-rgb), 0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 100%, rgba(var(--info-rgb), 0.08), transparent 60%),
    var(--surface-alt);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.hero-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.hero-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  color: var(--on-accent);
  font-size: 14px;
}

.hero-brandline {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-muted);
}

.hero-copy {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  max-width: 480px;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 14px;
}

.hero-title {
  font-family: var(--sans);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
  color: var(--text);
}

.hero-sub {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 420px;
}

/* ---- Feature list: what replaced the gauge cluster/ticker ---- */
.hero-features {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: auto 0 0;
  padding: 40px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 440px;
}

.hero-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.hero-feature-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.hero-feature-text b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.hero-feature-text span {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ============ AUTH PANEL (right) ============ */
.auth-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg);
}

/* The toggle used to be positioned directly (position:absolute here);
   now it's wrapped in .theme-picker (for the swatch popover), so the
   absolute positioning has to live on that wrapper instead - applied
   to the button itself, it was measuring top/right against the
   wrapper's own box, which has no size of its own and could land
   anywhere depending on the auth panel's flex centering. */
.auth-panel > .theme-picker {
  position: absolute;
  top: 20px;
  right: 20px;
}

.auth-theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}
.auth-theme-toggle:hover { color: var(--amber); border-color: var(--amber); }
.auth-theme-toggle svg { width: 17px; height: 17px; }
.auth-theme-toggle .icon-sun { display: none; }
.auth-theme-toggle .icon-moon { display: inline-flex; }
:root[data-theme="dark"] .auth-theme-toggle .icon-sun { display: inline-flex; }
:root[data-theme="dark"] .auth-theme-toggle .icon-moon { display: none; }

.auth-card {
  width: 100%;
  max-width: 380px;
  animation: fadeSlideIn 0.5s cubic-bezier(0.16,1,0.3,1);
}

.auth-tabs {
  display: flex;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 22px;
}

.auth-tab {
  flex: 1;
  border: none;
  background: none;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 0;
  border-radius: 9px;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--surface);
  color: var(--amber);
  box-shadow: 0 1px 4px rgba(var(--shadow-rgb), 0.10);
}

.auth-error {
  background: rgba(var(--danger-rgb), 0.10);
  border: 1px solid rgba(var(--danger-rgb), 0.30);
  color: var(--red);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.google-btn-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form.hidden { display: none; }

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field span {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.auth-field input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1; padding-right: 40px; width: 100%; }
.pw-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 6px;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
}
.pw-toggle:hover { color: var(--text); background: var(--surface-alt); }
.pw-toggle svg { width: 18px; height: 18px; }
.pw-toggle.is-visible { color: var(--amber); }

.auth-submit {
  margin-top: 4px;
  background: var(--amber);
  color: var(--on-accent);
  border: none;
  border-radius: 10px;
  padding: 12px 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.auth-submit:hover { filter: brightness(1.06); }
.auth-submit:active { transform: scale(0.98); }
.auth-submit:disabled { opacity: 0.6; cursor: default; }

.auth-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px;
  align-self: center;
}
.auth-link:hover { color: var(--amber); }

.auth-footnote {
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}
.auth-footnote a { color: var(--text-muted); text-decoration: underline; }
.auth-footnote a:hover { color: var(--amber); }

@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-panel { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card { animation: none !important; }
}
