html:has(> body.auth-page) { scroll-behavior: auto; }
.auth-page {
    --account-gutter: 72px;
    --account-border: #e9e6f4;
    --account-input: #f5f7f7;
}
.auth-page .container { width: min(1216px, calc(100% - 2 * var(--account-gutter))); }
.auth-page .site-header { position: relative; }
.auth-page .nav-inner { min-height: 72px; gap: 16px; }
.auth-page .pen-brand { font-size: 18px; }
.auth-page .pen-brand img { width: 24px; height: 24px; }
.account-header-link { color: var(--brand-deep); font-size: 13px; text-align: right; }
a.account-header-link, .account-header-link a { font-weight: 750; }
.account-header-link a, a.account-header-link { display: inline-flex; align-items: center; min-height: 44px; }
.account-header-link span { color: var(--body); }

.auth-page h1 { margin: 0; color: var(--ink); font-size: clamp(30px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.045em; line-height: 1.16; }
.auth-page .account-kicker { margin: 0 0 14px; color: var(--body); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.account-intro > p:not(.account-kicker), .account-login-panel > p:last-child { margin-top: 14px; color: var(--body); font-size: 14px; line-height: 1.65; }

.account-login { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 23fr); min-height: max(560px, calc(100svh - 72px)); }
.account-login-panel { position: relative; isolation: isolate; overflow: clip; padding: 52px clamp(26px, 3.24vw, 54px); background: #f1ecff; }
.account-login-panel::before, .account-login-panel::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.account-login-panel::before { top: 30px; right: 0; width: 210px; height: 210px; background: radial-gradient(circle, #ffffff59, #ffffff00 72%); }
.account-login-panel::after { top: min(300px, 60%); right: 20px; width: clamp(120px, 12.5vw, 170px); aspect-ratio: 1; border: 2px solid #4a21e02e; }
.account-login-panel .account-kicker { color: var(--brand-deep); }
.account-panel-title { color: var(--ink); font-size: clamp(28px, 2.5vw, 35px); font-weight: 800; line-height: 1.18; letter-spacing: -.045em; }
.account-login-area { display: flex; justify-content: center; align-items: flex-start; padding: 64px 28px 46px; }
.account-login-content { width: min(100%, 408px); }
.account-login-content h1 { font-size: 30px; }
.account-login-content .account-form { margin-top: 16px; }
.account-login-content .account-form > .field + .field { margin-top: 16px; }
.account-notice { display: flex; align-items: center; gap: 9px; padding: 8px 11px; margin: 16px 0 0; border: 1px solid var(--account-border); border-radius: 8px; background: #f6f3ff; color: var(--body); font-size: 12px; }
.account-notice svg { flex: none; width: 14px; height: 14px; color: var(--brand-deep); }
.account-notice p { margin: 0; }
.account-notice strong { color: var(--ink); }
.auth-page .account-recovery { display: inline-flex; min-height: 36px; margin: 8px 0 0; padding: 0; border: 0; background: transparent; color: var(--body); font-size: 13px; font-weight: 600; }
.account-login-content .account-submit { width: 100%; margin-top: 6px; }
.account-login-content .turnstile-field + .account-submit { margin-top: 14px; }
.account-signup-link { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 6px; margin-top: 16px; padding-top: 4px; border-top: 1px solid var(--account-border); color: var(--body); font-size: 13px; text-align: center; }
.account-signup-link a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-deep); font-weight: 750; }

.account-registration { padding: 44px 0 52px; }
.account-registration-grid { display: grid; grid-template-columns: minmax(0, 31.6fr) minmax(0, 68.4fr); }
.account-intro { max-width: 320px; margin-right: 34px; }
.account-alternate { display: flex; align-items: center; gap: 8px; min-height: 44px; border-top: 1px solid var(--account-border); margin-top: 16px; padding-top: 3px; color: var(--brand-deep); font-size: 13px; font-weight: 750; }
.account-intro > .account-intro-note { margin-top: 6px; font-size: 12px; }
.account-registration-form { min-width: 0; padding-left: clamp(22px, 3.53vw, 48px); border-left: 1px solid var(--account-border); }
.account-registration-form > .account-notice { margin-top: 12px; margin-bottom: 18px; }
.account-registration-form .checkout-steps { margin: 0; }
.account-form-section { padding-bottom: 20px; border-bottom: 1px solid var(--account-border); margin-bottom: 20px; }
.account-form-section h2 { color: var(--ink); font-size: 16px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; margin: 0 0 14px; scroll-margin-top: 18px; }
.account-registration-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.account-registration-types a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 14px; border: 1px solid var(--account-border); border-radius: 8px; color: var(--ink); font-weight: 700; }
.account-registration-types a:hover, .account-registration-types a[aria-current="page"] { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-tint); }
.account-registration-types a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.account-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 14px; align-items: start; }
.account-form-section > .field + .field { margin-top: 13px; }

.account-form .field { min-width: 0; margin: 0; gap: 0; }
.account-form .field label { display: block; margin: 0 0 5px; color: var(--ink); font-size: 12px; font-weight: 750; line-height: 1.5; }
.account-form .field input, .account-form .field select, .account-form .field textarea {
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #dedee8;
    border-radius: 7px;
    background-color: var(--account-input);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}
.account-form .field input::placeholder, .account-form .field textarea::placeholder { color: #696477; opacity: 1; }
.account-form .field select:invalid { color: #696477; }
.account-form .field select option { color: var(--ink); }
.account-form .field textarea { min-height: 80px; resize: vertical; }
.account-form .field input:focus, .account-form .field select:focus, .account-form .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 2px #4a21e029; }
.account-form .field [aria-invalid="true"] { border-color: #944246; }
.account-form .field small { display: block; margin-top: 5px; color: var(--body); font-size: 11px; line-height: 1.55; }
.account-form .field-optional { color: var(--body); font-size: .85em; font-weight: 500; white-space: nowrap; }
.account-form .password-control input { padding-right: 49px; }
.account-form .password-toggle { inset: 0 0 0 auto; width: 44px; height: 44px; margin: auto 0; transform: none; color: var(--body); }
.account-form .password-toggle:focus-visible { outline-offset: -3px; }
.account-form .form-errors { margin-bottom: 14px; }
.account-form .turnstile-field { margin: 12px 0 14px; }
.account-form .turnstile-field small:empty { display: none; }
.account-form .consent-check { margin: 0 0 17px; min-height: 32px; }
.account-form-section .consent-check { margin: 0; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--account-border); }
.account-form-section:has(.consent-check) { padding-bottom: 0; border-bottom: 0; }
.account-form .account-submit { min-height: 46px; padding-inline: 19px; border-radius: 8px; }
.account-submit-note { margin: 8px 0 0; color: var(--body); font-size: 12px; }
.account-form .field a, .account-intro-note a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 2px; }

.account-steps { display: flex; flex-wrap: wrap; gap: 8px 15px; padding: 0; margin: 0 0 22px; list-style: none; counter-reset: account-step; }
.account-steps li { display: inline-flex; gap: 5px; align-items: center; color: var(--body); font-size: 11px; }
.account-steps li::before { display: grid; place-items: center; counter-increment: account-step; content: counter(account-step); width: 21px; height: 21px; border-radius: 50%; color: var(--brand-deep); background: #f1ecff; font-size: 10px; font-weight: 750; }
.account-steps li:first-child::before { color: #fff; background: var(--brand); }
.account-steps a { color: var(--brand-deep); font-weight: 700; }
.account-steps a:hover, .account-alternate:hover, .account-header-link a:hover, a.account-header-link:hover, .account-recovery:hover, .account-signup-link a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
    .auth-page { --account-gutter: 40px; }
}
@media (max-width: 770px) {
    .auth-page { --account-gutter: 24px; }
    .auth-page .nav-inner { min-height: 64px; }
    .account-login { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
    .account-login-panel { padding-block: 39px; }
    .account-login-area { padding: 44px 24px; }
    .account-registration { padding-block: 32px 42px; }
    .account-registration-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .account-intro { max-width: none; margin-right: 0; }
    .account-alternate { width: fit-content; margin-top: 8px; padding-top: 0; border-top: 0; }
    .account-registration-form { padding: 19px 0 0; border: 0; border-top: 1px solid var(--account-border); }
}
@media (max-width: 600px) {
    .auth-page { --account-gutter: 20px; }
    .auth-page .account-header-link > span { display: none; }
    .account-login { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .account-login-panel { padding: 21px var(--account-gutter) 25px; }
    .auth-page .account-kicker { margin-bottom: 9px; }
    .account-login-panel::after { top: 22px; right: -34px; width: 115px; }
    .account-login-panel > p:last-child, .account-intro > p:not(.account-kicker) { margin-top: 9px; }
    .account-login-area { padding: 24px var(--account-gutter) 38px; }
    .account-fields { grid-template-columns: minmax(0, 1fr); }
    .account-form .field input, .account-form .field select, .account-form .field textarea { font-size: 16px; }
    .account-form .account-submit { width: 100%; }
}
@media (max-width: 350px) {
    .auth-page { --account-gutter: 16px; }
}
