/* Account entry uses the same paper, ink, sage, and coral palette as the homepage and the signed-in console. */
body.auth-page { background: var(--auth-paper); color: var(--auth-ink); color-scheme: light; -webkit-font-smoothing: antialiased; }
.auth-page [hidden] { display: none !important; }
.auth-page a { color: inherit; text-decoration: none; }
.auth-page .skip-link { top: 12px; transform: translateY(-150%); background: var(--auth-ink); color: #fff; }
.auth-page .skip-link:focus { top: 12px; transform: none; }
.auth-page :focus-visible { outline: 2px solid var(--auth-coral); outline-offset: 4px; box-shadow: none; }
.auth-page ::selection { background: #f6c7b9; color: var(--auth-ink); }
.auth-shell { width: min(1320px, calc(100% - 96px)); min-height: 100svh; margin-inline: auto; display: flex; flex-direction: column; }
.auth-header { height: 108px; flex: none; display: flex; align-items: center; justify-content: space-between; }
.auth-brand { display: inline-flex; align-items: center; gap: 11px; font: 800 28px/1 Arial, sans-serif; letter-spacing: -1.2px; }
.auth-brand-symbol { position: relative; display: grid; place-items: center; width: 33px; height: 37px; padding: 0 2px 8px 0; border-radius: 9px 9px 9px 3px; background: #ef634b; color: #fff; font: 700 42px/1 Arial, sans-serif; transform: rotate(-6deg); overflow: hidden; }
.auth-brand-symbol > span { position: absolute; width: 7px; height: 7px; top: 6px; right: 5px; border: 2px solid #ef634b; border-radius: 50%; background: var(--auth-ink); }
.auth-brand-period { color: #ef634b; }
.auth-home-link { display: flex; align-items: center; gap: 9px; min-height: 44px; font-size: 12px; }
.auth-home-link svg { width: 16px; height: 16px; transition: transform .2s; }
.auth-home-link:hover { color: var(--auth-coral); }
.auth-home-link:hover svg { transform: translateX(-3px); }
.auth-layout { flex: 1; display: grid; grid-template-columns: 1.04fr 1fr; gap: 48px; align-items: center; padding-block: 10px; outline: none; }
.auth-layout:focus { outline: none; box-shadow: none; }
.auth-story { position: relative; min-width: 0; width: 100%; max-width: 624px; background: var(--auth-sage); border: 1px solid #e0e5d7; border-radius: 24px; padding: 45px 45px 26px; overflow: hidden; }
.auth-story-copy { position: relative; z-index: 1; }
.auth-story-kicker { display: flex; align-items: center; gap: 9px; color: var(--auth-green); font-size: 9px; letter-spacing: 1.7px; font-weight: 600; }
.auth-story-kicker > span { width: 6px; height: 6px; border-radius: 50%; background: #6b805f; box-shadow: 0 0 0 4px #6b805f14; }
.auth-story h2 { font-size: clamp(34px, 3.2vw, 45px); font-weight: 650; line-height: 1.55; letter-spacing: -1.9px; margin: 23px 0 14px; }
.auth-story h2 em { color: var(--auth-coral); font-style: normal; }
.auth-story-copy > p { margin: 0; color: #666f5f; font-size: 12px; line-height: 1.95; }
.auth-story-visual { position: relative; height: 326px; margin-top: 15px; }
.auth-orbit { position: absolute; inset: -5px -14px -1px 5px; border: 1px solid #cbd3bd; border-radius: 50%; transform: rotate(-18deg); }
.auth-photo { position: absolute; inset: 6px 7px 10px 26px; margin: 0; border: 5px solid #f7f7ef; border-radius: 115px 115px 14px 14px; overflow: hidden; transform: rotate(3deg); box-shadow: 0 13px 28px #36482c16; }
.auth-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 71% 50%; }
.auth-photo::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, #253020a6); }
.auth-photo figcaption { position: absolute; z-index: 1; bottom: 22px; left: 25px; color: #fff; }
.auth-photo figcaption > span { display: block; font-size: 7px; letter-spacing: 2px; margin-bottom: 7px; }
.auth-photo figcaption > strong { font-size: 18px; font-weight: 500; letter-spacing: .4px; }
.auth-assistant-note { position: absolute; top: 28px; left: -15px; display: flex; align-items: center; gap: 11px; padding: 13px 16px 13px 12px; border: 1px solid #e2e5d8; border-radius: 11px; background: #fefefa; box-shadow: 0 9px 25px #34402a12; transform: rotate(-5deg); }
.auth-assistant-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: var(--auth-sage); color: var(--auth-green); }
.auth-assistant-icon svg { width: 21px; height: 21px; }
.auth-assistant-note strong { display: block; font-size: 11px; font-weight: 600; }
.auth-assistant-note div > span { display: block; margin-top: 3px; color: var(--auth-muted); font-size: 9px; }
.auth-note-dot { width: 5px; height: 5px; border-radius: 50%; background: #81946d; margin-left: 6px; }
.auth-story-star { position: absolute; right: -17px; bottom: 7px; color: #cf6c4c; font: 76px/1 Georgia, serif; transform: rotate(15deg); }
.auth-story-bottom { display: flex; align-items: center; justify-content: space-between; color: var(--auth-green); margin-top: 20px; }
.auth-story-bottom > span:first-child { font-size: 8px; letter-spacing: 2px; }
.auth-story-bottom > span:last-child { font-size: 22px; line-height: 1; }
.auth-form-panel { min-width: 0; padding: 28px 12px; display: flex; justify-content: center; }
.auth-form-content { width: 100%; max-width: 380px; }
.auth-eyebrow { display: block; font-size: 9px; font-weight: 600; letter-spacing: 1.8px; color: var(--auth-green); margin-bottom: 16px; }
.auth-form-content h1 { font-size: 36px; letter-spacing: -1.5px; font-weight: 650; line-height: 1.4; margin: 0 0 12px; }
.auth-intro { font-size: 13px; line-height: 1.8; color: var(--auth-muted); margin: 0; }
.auth-beta-offer { display: grid; gap: 8px; margin-top: 20px; padding: 16px 18px; border: 1px solid #cbd3bd; border-radius: 12px; background: var(--auth-sage); }
.auth-beta-label { color: var(--auth-green); font-size: 9px; font-weight: 600; letter-spacing: 1.2px; }
.auth-beta-offer > strong { color: var(--auth-ink); font-size: 15px; line-height: 1.65; font-weight: 600; }
.auth-beta-offer > strong > span { color: var(--auth-coral); padding-inline: 3px; }
.auth-beta-offer > p { margin: 0; color: var(--auth-muted); font-size: 10px; line-height: 1.8; }
.auth-switch { display: flex; background: #eeeee7; border: 1px solid #e5e5dc; padding: 4px; border-radius: 10px; margin: 30px 0 27px; }
.auth-switch > a { width: 50%; min-height: 39px; display: grid; place-items: center; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--auth-muted); transition: background .15s, color .15s; }
.auth-switch > a:hover { color: var(--auth-ink); }
.auth-switch > .is-active { background: #fff; color: var(--auth-ink); box-shadow: 0 1px 5px #303c2810; }
.auth-form { display: flex; flex-direction: column; gap: 21px; }
.auth-page .field { gap: 9px; margin: 0; }
.auth-page .field > label { font-size: 12px; font-weight: 600; color: #444b40; }
.auth-page .input { width: 100%; min-height: 50px; padding: 13px 15px; border: 1px solid #b8beb0; border-radius: 8px; background: #fffefa; color: var(--auth-ink); font-size: 14px; line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
.auth-page .input::placeholder { color: #85897f; opacity: 1; }
.auth-page .input:hover { border-color: #8f9a83; }
.auth-page .input:focus { border-color: var(--auth-coral); outline: none; box-shadow: 0 0 0 3px #c94e3815; }
.auth-page .input[aria-invalid=true] { border-color: var(--auth-error); background: #fffafa; }
.auth-page .input:disabled { opacity: .65; cursor: wait; }
.auth-page .field-hint { font-size: 10px; line-height: 1.7; color: var(--auth-muted); }
.auth-page .field-error { font-size: 11px; color: var(--auth-error); }
.auth-password-wrap { position: relative; }
.auth-password-wrap > input { padding-right: 52px !important; }
.auth-eye { display: grid; place-items: center; position: absolute; right: 4px; top: 3px; width: 44px; height: 44px; padding: 0; border: none; border-radius: 6px; color: #777e70; background: transparent; }
.auth-eye svg { width: 19px; height: 19px; }
.auth-eye:hover { color: var(--auth-coral); background: #f0efe8; }
.auth-eye:disabled { cursor: wait; }
.auth-page .auth-submit { height: 52px; gap: 15px; margin-top: 4px; padding: 0 20px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #fff; background: var(--auth-coral); box-shadow: 0 5px 12px #c94e3812; transition: background .18s, transform .18s; }
.auth-submit::before { display: none; }
.auth-submit svg { width: 17px; height: 17px; transition: transform .18s; }
.auth-page .auth-submit:hover { background: var(--auth-coral-hover); }
.auth-submit:hover svg { transform: translateX(3px); }
.auth-page .auth-submit:active { transform: translateY(1px); }
.auth-submit .spinner { border-color: #ffffff50; border-top-color: #fff; }
.auth-alternate { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 17px 0 0; color: var(--auth-muted); font-size: 11px; }
.auth-alternate a { display: inline-flex; align-items: center; min-height: 36px; color: var(--auth-coral); font-weight: 600; }
.auth-alternate a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-security { display: flex; align-items: flex-start; gap: 10px; border-top: 1px solid var(--auth-line); margin-top: 24px; padding-top: 24px; color: var(--auth-green); }
.auth-security > svg { width: 17px; height: 17px; margin-top: 1px; flex: none; }
.auth-security p { margin: 0; }
.auth-security strong { display: block; font-size: 11px; font-weight: 500; margin-bottom: 5px; }
.auth-security p > span { display: block; color: var(--auth-muted); font-size: 10px; line-height: 1.9; }
.auth-alert { font-size: 12px; line-height: 1.7; color: var(--auth-error); background: #fbeae4; padding: 12px 14px; border: 1px solid #efd0c5; border-radius: 8px; }
.auth-alert a { text-decoration: underline; text-underline-offset: 3px; }
.auth-footer { flex: none; display: flex; justify-content: space-between; align-items: center; min-height: 76px; gap: 20px; color: var(--auth-muted); font-size: 9px; letter-spacing: .2px; }
.auth-register .auth-form-content h1 { font-size: 29px; letter-spacing: -1px; }
.auth-register .auth-switch { margin-block: 22px; }
.auth-register .auth-form { gap: 16px; }
.auth-register .auth-security { margin-top: 16px; padding-top: 18px; }
.auth-register .auth-alternate { margin-top: 12px; }

@media (min-width: 1600px) {
  .auth-shell { max-width: 1380px; }
  .auth-layout { gap: 90px; }
  .auth-story { padding: 48px 50px 28px; }
  .auth-story-visual { height: 352px; }
  .auth-form-content { max-width: 400px; }
}
@media (max-width: 1100px) {
  .auth-shell { width: calc(100% - 64px); }
  .auth-layout { gap: 30px; grid-template-columns: 1fr 1fr; }
  .auth-story { padding: 35px 30px 24px; }
  .auth-story h2 { font-size: 35px; }
  .auth-story-visual { height: 300px; }
  .auth-assistant-note { left: -12px; }
  .auth-form-panel { padding-inline: 8px; }
}
@media (max-width: 800px) {
  .auth-shell { width: calc(100% - 48px); max-width: 580px; }
  .auth-header { height: 88px; }
  .auth-layout { display: flex; justify-content: center; padding: 30px 0 48px; }
  .auth-story { display: none; }
  .auth-form-panel { width: 100%; padding: 0; }
  .auth-form-content { max-width: 400px; }
  .auth-page .input { font-size: 16px; }
  .auth-form-content h1 { font-size: 34px; }
  .auth-footer { min-height: 66px; font-size: 9px; }
  .auth-register .auth-layout { padding-top: 18px; }
}
@media (max-width: 400px) {
  .auth-shell { width: calc(100% - 40px); }
  .auth-brand { font-size: 24px; gap: 9px; }
  .auth-brand-symbol { width: 29px; height: 33px; font-size: 38px; }
  .auth-home-link { font-size: 11px; }
  .auth-register .auth-form-content h1 { font-size: 26px; }
  .auth-footer > span:last-child { max-width: 165px; text-align: right; line-height: 1.8; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-page *, .auth-page *::before, .auth-page *::after { transition: none !important; }
}
.auth-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.7; }
.auth-consent input { flex: 0 0 auto; margin-top: 4px; width: 17px; height: 17px; }
.auth-consent a, .auth-recovery-links a { text-decoration: underline; text-underline-offset: 3px; }
.auth-recovery-links { display: flex; justify-content: space-between; gap: 16px; margin: 20px 0; font-size: 13px; }
.recovery-layout { max-width: 520px; margin: 40px auto 80px; }
.recovery-layout .auth-form-content { max-width: none; }
