/* Log in / Join (devise/shared/_auth_page). One red button per page. */
/* Recovery, confirmation and profile forms retain their existing fields/actions. */
.sp-auth-legacy { width: min(560px, calc(100% - 32px)); margin: 40px auto 64px; padding: clamp(20px,4vw,36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.sp-auth-legacy .container { width: 100%; padding: 0; margin: 0; }
.sp-auth-legacy h2 { font-size: 28px; line-height: 1.15; letter-spacing: -.03em; margin: 0 0 24px; }
.sp-auth-legacy h3 { font-size: 18px; margin: 32px 0 12px; }
.sp-auth-legacy .field { margin-bottom: 18px; }
.sp-auth-legacy label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.sp-auth-legacy :is(input[type="email"],input[type="password"],input[type="text"]) { width: 100%; min-height: 48px; padding: 12px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--text); }
.sp-auth-legacy :is(input[type="submit"],button) { padding: 12px 18px; background: var(--red); color: var(--text); font-weight: 650; border: 0; border-radius: var(--r-sm); cursor: pointer; }
.sp-auth-legacy .actions { margin: 24px 0; }
.sp-auth-legacy .actions input { width: 100%; }
.sp-auth-legacy :is(em,i) { font-size: 12px; color: var(--text-2); }
.sp-auth-legacy a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.sp-auth-legacy #error_explanation { margin-bottom: 24px; padding: 16px; border: 1px solid var(--red); border-radius: var(--r-sm); }
.sp-auth-legacy #error_explanation h2 { font-size: 16px; margin-bottom: 10px; }
.sp-auth-legacy #error_explanation ul { padding-left: 18px; }
.auth { width: min(1040px, calc(100% - 32px)); margin: 40px auto 64px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.auth-why { padding: 44px 40px; background: radial-gradient(120% 80% at 0% 0%, rgba(232, 20, 42, .16), transparent 60%), var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.auth-why .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.auth-why h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 8px; }
.auth-why .sub { color: var(--text-2); margin: 0 0 26px; font-size: 15px; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; }
.perks .ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: 18px; }
.perks b { display: block; font-size: 15px; margin-bottom: 2px; }
.perks small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.proof { margin-top: auto; padding-top: 28px; display: flex; gap: 22px; flex-wrap: wrap; color: var(--text-2); font-size: 13px; }
.proof b { color: var(--text); font-size: 18px; margin-right: 4px; }

.auth-card { padding: 28px 36px 32px; display: flex; flex-direction: column; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 26px; }
.auth-tabs a { text-align: center; padding: 9px; border-radius: 9px; font-weight: 650; font-size: 14px; color: var(--text-2); }
.auth-tabs a.on { background: var(--surface-3); color: var(--text); }
.auth-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; }
.auth-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin: 0 0 6px; }
.auth-label small { color: var(--muted); font-weight: 500; }
.auth-input { width: 100%; height: 48px; padding: 0 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 15px; margin-bottom: 14px; outline: none; }
.auth-input:focus { border-color: rgba(255, 255, 255, .5); }
.auth-input::placeholder { color: var(--muted); }
.auth-primary { width: 100%; height: 50px; border: 0; border-radius: 10px; background: var(--red); color: #fff; font: inherit; font-size: 15.5px; font-weight: 750; cursor: pointer; }
.auth-primary:hover { background: var(--red-2); }
.auth-secondary { width: 100%; height: 46px; border: 0; border-radius: 10px; background: #fff; color: #0a0a0a; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; margin-top: 4px; }
.auth-hint { color: var(--muted); font-size: 13px; text-align: center; margin: 10px 0 0; }
.auth-pw { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; }
.auth-pw summary { list-style: none; cursor: pointer; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--text-2); display: flex; justify-content: space-between; }
.auth-pw summary::-webkit-details-marker { display: none; }
.auth-pw summary::after { content: '+'; color: var(--muted); font-size: 18px; line-height: 1; }
.auth-pw[open] summary::after { content: '–'; }
.auth-pw summary:hover { color: var(--text); }
.auth-pw-body { padding: 4px 14px 14px; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; }
.auth-link { font-size: 13px; color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.auth-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); margin: -4px 0 12px; cursor: pointer; }
.auth-check input { width: 16px; height: 16px; accent-color: #fff; margin: 0; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--muted); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-google { width: 100%; height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 14.5px; font-weight: 650; cursor: pointer; }
.auth-google:hover { background: var(--surface-3); }
.auth-card form.button_to { margin: 0; }
.auth-switch { text-align: center; margin: 18px 0 0; font-size: 14px; color: var(--text-2); }
.auth-switch a { color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.auth-legal { text-align: center; margin: 14px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.auth-legal a { color: var(--text-2); text-decoration: underline; }
.auth-msg { background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 16px; }
#error_explanation { background: rgba(232, 20, 42, .08); border: 1px solid rgba(232, 20, 42, .3); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
#error_explanation h2 { font-size: 13.5px; margin: 0 0 4px; }
#error_explanation ul { margin: 0; padding-left: 18px; }

/* phones: form first, then a compact why-join list */
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; margin: 16px auto 40px; border-radius: 16px; }
  .auth-card { order: 1; padding: 20px 18px 24px; }
  .auth-why { order: 2; padding: 24px 18px; border-right: 0; border-top: 1px solid var(--line); }
  .auth-why h2 { font-size: 22px; }
  .perks { gap: 12px; }
  .perks .ic { width: 32px; height: 32px; font-size: 15px; }
}
