/* Rediray — auth + onboarding pages (login, signup, password reset, onboarding steps, invites).
   Shared centered layout, card, stepper and verify banner come from static/css/rediray.css §11;
   this file only adds the page-specific spacing from docs/design/app.md §1.1 / §1.2. */

/* ---------- Card internals shared by every centered page ---------- */
.rr-auth__logo { display: flex; margin-bottom: 26px; }
.rr-auth__submit { margin-top: 20px; }
.rr-auth-form-panel .rr-turnstile { margin-top: 16px; }
.rr-auth__foot { margin-top: 20px; text-align: center; font-size: var(--rr-fs-ui); color: var(--rr-text-muted); }
.rr-auth__foot a { font-weight: 700; color: var(--rr-orange); }
.rr-auth__actions { display: grid; gap: 10px; margin-top: 20px; }
.rr-auth__hint { margin-top: 12px; }

/* ---------- OAuth buttons (app.md §1.1 pt 4): 2px Ink border, 12px padding, sand-50 hover ---------- */
.rr-oauth-list { display: grid; gap: 10px; }
.rr-oauth { padding: 13px 18px; gap: 10px; font-size: 15px; }
/* Not configured yet: keep the title tooltip reachable (the shared rule sets pointer-events:none). */
.rr-oauth[aria-disabled="true"] { pointer-events: auto; }
.rr-oauth[aria-disabled="true"]:hover { background: #fff; transform: none; }
.rr-oauth__glyph { font-family: var(--rr-font-display); font-weight: 800; }
.rr-oauth__glyph--google { color: var(--rr-orange); }

/* ---------- Onboarding (app.md §1.2) ---------- */
.rr-ob__lede { margin: 8px 0 26px; }
.rr-ob__lede--tight { margin-bottom: 22px; }
.rr-ob__zone-label { margin-top: 14px; margin-bottom: 6px; }
.rr-ob__continue { margin-top: 24px; }
.rr-ob__note { font-size: 12px; color: var(--rr-text-muted); margin-top: 10px; }
.rr-ob__note b { color: var(--rr-ink); }
.rr-ob__actions { display: flex; gap: 10px; margin-top: 22px; }
.rr-ob__actions form { flex: 1; display: flex; min-width: 0; }
.rr-ob__actions .rr-btn--grow { flex: 1; }
.rr-ob__actions .rr-btn--primary.rr-btn--lg { padding: 12px; }

/* "Skip for now" is a POST form whose button is styled as the muted link. */
.rr-center__below form { display: inline; }
.rr-center__below .rr-btn--link { font-size: var(--rr-fs-ui); vertical-align: baseline; }

@media (max-width: 480px) {
  .rr-ob__actions { flex-wrap: wrap; }
  .rr-ob__actions form { flex-basis: 100%; }
}

/* RedirectDuck Auth: split-screen layout, with the existing Django forms. */
.rr-auth-split { min-height: 100vh; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rr-auth-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; background: var(--rr-ink); color: var(--rr-cream); padding: 40px 48px 48px; }
.rr-auth-panel::after { content: ''; position: absolute; right: -120px; bottom: -140px; width: 340px; height: 340px; border-radius: 50%; background: var(--rr-orange); }
.rr-auth-panel > * { position: relative; z-index: 1; }
.rr-auth-panel__copy { max-width: 420px; }
.rr-auth-panel h2 { font: 800 clamp(30px, 3.4vw, 42px)/1.05 var(--rr-font-display); letter-spacing: -.03em; margin: 0; }
.rr-auth-panel p { margin: 16px 0 0; color: var(--rr-on-ink-secondary); font-size: 16.5px; line-height: 1.6; text-wrap: pretty; }
.rr-auth-panel__stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 28px; }
.rr-auth-panel__stats strong { display: block; font: 800 22px var(--rr-font-display); }
.rr-auth-panel__stats span { display: block; color: #a98f74; font-size: 13.5px; }
.rr-auth-panel__duck { object-fit: contain; margin-bottom: -12px; }
.rr-auth-form-panel { display: flex; align-items: center; justify-content: center; padding: 48px 32px; min-width: 0; }
.rr-auth-form-panel__inner { width: 100%; max-width: 420px; }
.rr-auth-eyebrow { font: 800 14px var(--rr-font-display); color: var(--rr-orange); margin-bottom: 10px; }
.rr-auth-form-panel .rr-h1 { font-size: 34px; line-height: 1.05; }
.rr-auth-form-panel .rr-lede { margin: 12px 0 26px; font-size: 15.5px; line-height: 1.55; color: var(--rr-text-soft); }
.rr-auth-form-panel .rr-input { padding: 13px 16px; border: var(--rr-border-mkt); border-radius: 12px; background: var(--rr-white); }
.rr-auth-form-panel .rr-input:focus { outline: none; border-color: var(--rr-orange); box-shadow: 3px 3px 0 var(--rr-peach-2); }
.rr-auth-form-panel .rr-field { font-size: 13.5px; font-weight: 700; gap: 6px; }
.rr-auth-form-panel .rr-input { font-size: 15.5px; font-weight: 400; }
.rr-auth-field-label { display: flex; align-items: baseline; justify-content: space-between; }
.rr-auth-field-label a { font-size: 13px; font-weight: 600; color: var(--rr-text-muted); }
.rr-auth-alternative { margin-top: 10px; font-size: 14.5px; color: var(--rr-text-soft); }
.rr-auth-alternative a { font-weight: 700; color: var(--rr-orange); }
.rr-auth-form-panel form > .rr-field + .rr-field { margin-top: 14px; }
.rr-auth-form-panel .rr-auth__submit { border: var(--rr-border-mkt); padding: 15px 20px; font-size: 16px; border-radius: 13px; }
.rr-auth-form-panel .rr-auth__foot { border-top: var(--rr-border-row); padding-top: 20px; margin-top: 26px; text-align: left; }
.rr-auth-form-panel .rr-center__below { text-align: left; margin-top: 12px; }
.rr-auth-footer { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 32px; font-size: 13px; color: var(--rr-text-muted); }
.rr-auth-footer a { color: inherit; }
.rr-auth-footer a:hover { color: var(--rr-orange); }
.rr-auth-legal { font-size: 13px; line-height: 1.55; color: var(--rr-text-muted); margin-top: 14px; }
.rr-auth-legal a { color: inherit; text-decoration: underline; }
.rr-card--auth { position: relative; }
.rr-ob-duck { position: absolute; right: 18px; top: -86px; width: 96px; height: 98px; object-fit: contain; pointer-events: none; }
@media (max-width: 800px) {
  .rr-auth-split { grid-template-columns: minmax(0, 1fr); }
  .rr-auth-panel { padding: 24px; gap: 24px; }
  .rr-auth-panel__copy, .rr-auth-panel__duck { display: none; }
  .rr-auth-panel::after { width: 180px; height: 180px; bottom: -140px; right: 20px; }
  .rr-auth-form-panel { padding: 36px 24px 48px; }
  .rr-ob-duck { top: -68px; width: 74px; height: 76px; }
}

@media (max-width: 360px) {
  .rr-auth-form-panel:has(.rr-turnstile) { padding-left: 10px; padding-right: 10px; }
}

/* Account management shares the dashboard shell and controls. */
.rr-security-page { max-width: 660px; padding: 36px 24px 60px; margin: auto; }
.rr-security-page__logo { margin-bottom: 28px; }
.rr-account { max-width: 960px; min-width: 0; }
.rr-account__eyebrow { margin: 0 0 6px; font: 800 24px/1.2 var(--rr-font-display); letter-spacing: -.03em; }
.rr-account-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.rr-account-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border: 1.5px solid var(--rr-line); border-radius: 10px; font-size: 14px; font-weight: 600; background: var(--rr-white); }
.rr-account-nav a[aria-current="page"] { background: var(--rr-ink); border-color: var(--rr-ink); color: var(--rr-cream); }
.rr-account-nav a:hover { background: var(--rr-hover-chip); color: var(--rr-ink); }
.rr-security-card { padding: 28px; border: 1.5px solid var(--rr-line); background: var(--rr-white); border-radius: 18px; overflow-wrap: anywhere; }
.rr-security-card h1, .rr-security-card h2 { font-family: var(--rr-font-display); letter-spacing: -.03em; }
.rr-security-card h1 { font-size: 28px; line-height: 1.2; margin: 0 0 18px; }
.rr-security-card h2 { font-size: 20px; line-height: 1.3; margin: 28px 0 12px; }
.rr-security-card p { margin: 0 0 16px; line-height: 1.55; color: var(--rr-text-soft); }
.rr-security-card label { font-size: 13px; font-weight: 600; color: var(--rr-ink); }
.rr-security-card input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .rr-security-card select, .rr-security-card textarea { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 11px 13px; margin: 6px 0 0; border: 1.5px solid var(--rr-line); border-radius: 10px; background: var(--rr-cream); color: var(--rr-ink); font: 400 15px/20px var(--rr-font-text); }
.rr-security-card input[type=checkbox], .rr-security-card input[type=radio] { accent-color: var(--rr-orange); vertical-align: middle; margin-right: 6px; }
.rr-security-card .helptext, .rr-security-card .helptext li { display: block; font-size: 12px; line-height: 1.5; color: var(--rr-text-muted); margin-top: 6px; }
.rr-security-card .errorlist { color: var(--rr-danger-fg); font-size: 13px; }
.rr-security-card img { max-width: min(100%, 240px); height: auto; }
.rr-security-card a:not(.rr-btn) { color: var(--rr-orange); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rr-security-card ul { padding-left: 20px; }
.rr-security-card .rr-security-providers { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 16px 0 0; list-style: none; }
.rr-security-providers .rr-btn { max-width: 100%; white-space: normal; }
.rr-security-form { display: grid; gap: 16px; margin: 20px 0 0; }
.rr-security-form__fields > :last-child { margin-bottom: 0; }
.rr-security-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.rr-security-actions .rr-btn { max-width: 100%; white-space: normal; }
.rr-security-panel { padding: 20px; border: 1.5px solid var(--rr-line); border-radius: 12px; margin-top: 20px; }
.rr-security-panel h2 { margin-top: 0; }
.rr-security-panel > :last-child { margin-bottom: 0; }
.rr-security-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; margin-top: 26px; }
@media (max-width: 600px) {
  .rr-security-card { padding: 20px 16px; }
  .rr-security-panel { padding: 16px; }
  .rr-account-nav { gap: 6px; margin-bottom: 20px; }
  .rr-account-nav a { padding: 8px 10px; font-size: 13px; }
}

.rr-email-confirm { max-width: 560px; }
.rr-email-confirm__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 14px; background: var(--rr-sand-50); color: var(--rr-ink); font-size: 28px; font-weight: 700; }
.rr-email-confirm__icon--success { background: var(--rr-success-bg); color: var(--rr-success-fg); }
.rr-security-card .rr-email-confirm__address { padding: 14px 16px; background: var(--rr-cream); border: 1.5px solid var(--rr-line); border-radius: 10px; font-weight: 600; color: var(--rr-ink); }
.rr-email-confirm > .rr-btn { margin-top: 8px; white-space: normal; max-width: 100%; }
