/* Signup / Login / Forgot password — split panel layout */

.auth-shell {
  min-height: 100vh;
  display: flex;
}

.auth-brand {
  width: 480px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rd-primary-900) 0%, var(--rd-ink-900) 100%);
  padding: 48px;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.auth-brand::before, .auth-brand::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.auth-brand::before { top: -140px; left: -120px; width: 380px; height: 380px; background: var(--rd-primary-500); opacity: 0.28; }
.auth-brand::after { bottom: -160px; right: -120px; width: 400px; height: 400px; background: var(--rd-primary-400); opacity: 0.2; }

/* color: inherit is needed now that this is an <a> - the global `a { color:
   var(--rd-primary-500) }` rule in design-system.css is more specific than
   inherited color, so without this the wordmark would turn link-blue
   instead of the white it's meant to be on this dark panel. */
.auth-brand-logo { position: relative; display: flex; align-items: center; gap: 10px; color: inherit; }
.auth-brand-logo .logo-mark { width: 28px; height: 28px; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; }
.auth-brand-logo .logo-mark svg { color: var(--rd-primary-900); }
.auth-brand-logo span { font-family: var(--rd-font-display); font-weight: 700; font-size: 16px; }

.auth-brand-copy { position: relative; margin: auto 0; padding: 56px 0; max-width: 380px; }
/* Explicit white - the global h1 rule (design-system.css) sets a dark
   ink color that's more specific than this panel's inherited `color:#fff`,
   which made the heading nearly invisible against the dark gradient. */
.auth-brand-copy h1 { font-family: var(--rd-font-display); font-weight: 800; font-size: 36px; line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 20px; color: #fff; }
.auth-brand-copy p { font-size: 15.5px; color: var(--rd-primary-200); line-height: 1.6; margin: 0 0 32px; }
.auth-brand-points { display: flex; flex-direction: column; gap: 16px; }
.auth-brand-points div { display: flex; gap: 12px; align-items: center; font-size: 13.5px; color: #E3E5E9; }

.auth-brand-stat {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: rd-float 6s ease-in-out infinite;
}
.auth-brand-stat .ring {
  position: relative; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  background: conic-gradient(#fff 0% 87%, rgba(255,255,255,0.22) 87% 100%);
}
.auth-brand-stat .ring span {
  position: absolute; inset: 5px; border-radius: 50%; background: var(--rd-ink-900);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--rd-font-mono); font-weight: 600; font-size: 10.5px; color: #fff;
}
.auth-brand-stat p { font-size: 12.5px; color: #E3E5E9; line-height: 1.4; margin: 0; }

.auth-form-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form-inner { width: 100%; max-width: 400px; }
.auth-form-inner h2 { font-family: var(--rd-font-display); font-weight: 700; font-size: 26px; margin: 0 0 8px; }
.auth-form-inner > p.auth-subtitle { font-size: 14px; color: var(--rd-ink-600); margin: 0 0 28px; }

/* Same color: inherit reasoning as .auth-brand-logo above - this one sits
   on the light form panel, so it should inherit the default dark ink text
   color rather than turning link-blue. */
.auth-mobile-logo { display: none; align-items: center; gap: 9px; margin-bottom: 28px; color: inherit; }
.auth-mobile-logo .logo-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--rd-primary-500); display: flex; align-items: center; justify-content: center; }
.auth-mobile-logo span { font-family: var(--rd-font-display); font-weight: 700; font-size: 14.5px; }

.oauth-btn {
  width: 100%; height: 48px; border: 1px solid var(--rd-ink-300); border-radius: var(--rd-radius-control);
  background: #fff; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 14px; color: var(--rd-ink-800); cursor: pointer; margin-bottom: 18px;
  transition: all .15s ease;
}
.oauth-btn:hover { border-color: var(--rd-ink-400); background: var(--rd-ink-50); }
.oauth-btn .g-mark { width: 18px; height: 18px; border-radius: 50%; background: var(--rd-ink-600); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.auth-divider .line { flex: 1; height: 1px; background: var(--rd-ink-200); }
/* ink-400 measures ~2:1 against white - too low for text users actually
   read; ink-600 clears WCAG AA. */
.auth-divider span { font-size: 12px; color: var(--rd-ink-600); }

.auth-icon-badge { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.auth-icon-badge.info { background: var(--rd-primary-50); color: var(--rd-primary-500); }
.auth-icon-badge.success { background: var(--rd-success-bg); color: var(--rd-success-text); }

.auth-legal { font-size: 11.5px; color: var(--rd-ink-600); text-align: center; line-height: 1.5; margin: 0 0 22px; }
.auth-legal a { color: var(--rd-ink-500); text-decoration: underline; }
.auth-switch { text-align: center; font-size: 13.5px; color: var(--rd-ink-600); margin: 0; }
.auth-switch a { font-weight: 600; }

@media (max-width: 900px) {
  .auth-brand { display: none; }
  .auth-form-panel { padding: 32px 24px 40px; align-items: flex-start; }
  .auth-mobile-logo { display: flex; }
}
