.rh-auth-page {
  min-height: 100vh;
  background: var(--rh-surface-1);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── Left panel — branding, hidden on mobile ──────────────── */
.rh-auth-left {
  background: var(--rh-navy-800);
  border-right: 1px solid var(--rh-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 56px;
  position: relative;
  overflow: hidden;
}
.rh-auth-left::before {
  content: "";
  position: absolute;
  top: -100px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(239,159,39,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.rh-auth-left-inner { position: relative; z-index: 1; text-align: center; max-width: 380px; }
.rh-auth-left-icon { width: 64px; height: 64px; object-fit: cover; border-radius: 16px; margin-bottom: 28px; }
.rh-auth-left-headline { color: #fff; font-size: 1.7rem; line-height: 1.3; margin-bottom: 14px; }
.rh-auth-left-headline span { color: var(--rh-amber-400); }
.rh-auth-left-sub { color: var(--rh-navy-100); font-size: 0.95rem; line-height: 1.6; margin-bottom: 36px; }
.rh-auth-features { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.rh-auth-feature {
  display: flex; align-items: center; gap: 12px;
  background: rgba(239,159,39,0.08); border: 1px solid rgba(239,159,39,0.18);
  border-radius: 10px; padding: 12px 16px;
}
.rh-auth-feature-icon { font-size: 1.1rem; flex-shrink: 0; }
.rh-auth-feature-text { font-size: 0.84rem; color: var(--rh-navy-100); }
.rh-auth-feature-text strong { color: #fff; }

/* ── Right panel — the form ───────────────────────────────── */
.rh-auth-right {
  display: flex; align-items: center; justify-content: center;
  padding: var(--rh-space-4);
}
.rh-auth-logo-mobile { display: none; }

.rh-auth-card { background: var(--rh-surface-0); border-radius: var(--rh-radius-lg); padding: var(--rh-space-6); width: 100%; max-width: 400px; }
.rh-auth-brand { text-align: center; margin-bottom: var(--rh-space-5); }
.rh-auth-brand-icon { width: 56px; height: 56px; object-fit: cover; border-radius: 14px; margin-bottom: 10px; }
.rh-auth-brand .name { font-family: var(--rh-font-display); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.rh-auth-brand .name .railway { color: var(--rh-text-primary); }
.rh-auth-brand .name .help { color: var(--rh-amber-500); }
.rh-auth-brand .tagline { font-size: 12px; color: rgba(245,181,89,0.68); margin-top: 2px; }
.rh-auth-tabs { display: flex; background: var(--rh-surface-1); border-radius: var(--rh-radius-md); padding: 4px; margin-bottom: var(--rh-space-5); }
.rh-auth-tab {
  flex: 1; text-align: center; padding: 9px; border: none; background: transparent;
  color: var(--rh-text-muted); font-size: 13px; font-weight: 700; border-radius: var(--rh-radius-sm);
  cursor: pointer; transition: background var(--rh-transition), color var(--rh-transition);
}
.rh-auth-tab.active { background: var(--rh-amber-500); color: var(--rh-amber-text); }
.rh-auth-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--rh-surface-1); border: 1px solid var(--rh-border-strong); color: var(--rh-text-primary);
  border-radius: var(--rh-radius-md); padding: 11px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background var(--rh-transition);
}
.rh-auth-google:hover { background: var(--rh-surface-2); }
.rh-auth-divider {
  text-align: center; font-size: 11px; color: var(--rh-text-muted); text-transform: uppercase;
  letter-spacing: 0.05em; margin: var(--rh-space-4) 0;
}
.rh-field { margin-bottom: var(--rh-space-3); }
.rh-field label { display: block; font-size: 12px; font-weight: 600; color: var(--rh-text-secondary); margin-bottom: 5px; }
.rh-field input, .rh-field select, .rh-field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--rh-border-strong); border-radius: var(--rh-radius-sm);
  font-size: 14px; font-family: inherit; box-sizing: border-box;
  background: var(--rh-surface-1); color: var(--rh-text-primary);
}
.rh-field input:focus, .rh-field select:focus, .rh-field textarea:focus { outline: none; border-color: var(--rh-amber-500); }
.rh-field-optional-label { font-size: 11px; color: var(--rh-text-muted); font-weight: 400; }
.rh-auth-submit {
  width: 100%; background: var(--rh-amber-500); color: var(--rh-amber-text); border: none;
  border-radius: var(--rh-radius-md); padding: 12px; font-size: 14px; font-weight: 700; cursor: pointer; margin-top: 8px;
}
.rh-auth-switch { text-align: center; font-size: 13px; margin-top: var(--rh-space-4); color: var(--rh-text-muted); }
.rh-auth-switch a { color: var(--rh-amber-400); font-weight: 600; }
.rh-auth-error {
  background: rgba(226,75,74,0.1);
  border: 1px solid rgba(226,75,74,0.3);
  color: var(--rh-signal-red);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--rh-radius-md);
  margin-bottom: var(--rh-space-3);
}
.rh-field-section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--rh-text-muted); margin: var(--rh-space-4) 0 var(--rh-space-2); }

@media (max-width: 860px) {
  .rh-auth-page { grid-template-columns: 1fr; }
  .rh-auth-left { display: none; }
  .rh-auth-right { padding: var(--rh-space-5) var(--rh-space-4); }
  .rh-auth-logo-mobile { display: block; margin: 0 auto 10px; }
}
