.auth-page {
    /* Brand tokens and type families from the SEOAssistant PRO website. */
    --auth-ink: #111318;
    --auth-muted: #686963;
    --auth-paper: #f7f5ef;
    --auth-white: #fffefa;
    --auth-accent: #e34b2b;
    --auth-action: #c83a23;
    --auth-line: rgba(17, 19, 24, .16);
    margin: 0;
    color: var(--auth-ink);
    background: var(--auth-white);
    font-family: 'Segoe UI', Inter, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
.auth-shell { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
.auth-story {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 38px clamp(40px, 5.1vw, 90px) 30px;
    background: var(--auth-paper);
    border-right: 1px solid var(--auth-line);
}
.auth-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--auth-ink); text-decoration: none; font-size: 20px; font-weight: 800; letter-spacing: -.04em; width: fit-content; }
.auth-brand:hover { color: inherit; }
.auth-brand-light { font-weight: 500; }
.auth-brand-symbol { display: grid; place-items: center; width: 31px; height: 31px; overflow: hidden; background: #fff; border: 1px solid rgba(14, 12, 25, .08); border-radius: 9px; }
.auth-brand-symbol img { display: block; width: 29px; height: 29px; object-fit: contain; }
.auth-brand-suffix { margin-left: -4px; padding: 2px 5px; color: #fff; border-radius: 5px; background: var(--auth-ink); font-size: 8px; letter-spacing: .08em; }
.auth-story-content { max-width: 620px; margin: 72px 0 90px; }
.auth-headline { font-family: 'Arial Narrow', 'Segoe UI', Arial, sans-serif; font-size: clamp(43px, 4.2vw, 70px); font-weight: 750; line-height: 1.09; letter-spacing: -.055em; margin: 0 0 34px; }
.auth-headline > span { display: block; }
.auth-headline > em { display: block; margin-top: 14px; color: var(--auth-accent); font-family: Georgia, 'Times New Roman', serif; font-size: 1.02em; font-weight: 400; letter-spacing: -.055em; line-height: 1.16; }
.auth-story-lead { max-width: 400px; margin: 0; color: #454741; font-size: 16px; line-height: 1.8; }
.auth-story-link { display: inline-flex; align-items: center; gap: 25px; width: fit-content; color: var(--auth-muted); font-size: 12px; text-decoration: none; }
.auth-story-link:hover { color: var(--auth-action); }
.auth-story-link i { color: var(--auth-action); }
.auth-main { min-width: 0; display: flex; flex-direction: column; padding: 31px clamp(30px, 4.1vw, 70px) 29px; }
.auth-topbar { display: flex; justify-content: flex-end; align-items: center; min-height: 40px; }
.auth-brand-mobile, .auth-mobile-motto { display: none; }
.auth-language { display: inline-flex; gap: 4px; }
.auth-language-button { min-width: 36px; min-height: 36px; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 7px 9px; color: var(--auth-muted); font-size: 11px; font-weight: 600; }
.auth-language-button.is-active { color: var(--auth-ink); border-bottom-color: var(--auth-accent); }
.auth-language-button:hover { background: var(--auth-paper); }
.auth-content { flex: 1; display: flex; align-items: center; justify-content: center; padding: 52px 0 65px; outline: none; }
.auth-card.card { width: 100%; max-width: 380px; min-width: 0; background: transparent; box-shadow: none; border: 0; margin: 0; border-radius: 0; }
.auth-heading { color: var(--auth-ink); font-family: 'Arial Narrow', 'Segoe UI', Arial, sans-serif; font-size: 34px; font-weight: 700; letter-spacing: -.045em; line-height: 1.15; margin-bottom: 12px; }
.auth-lead { color: var(--auth-muted); font-size: 14px; line-height: 1.65; margin-bottom: 32px; overflow-wrap: anywhere; }
.auth-card .form-label { font-size: 13px; font-weight: 600; margin-bottom: 9px; }
.auth-card .form-control { min-height: 48px; border: 1px solid #cfcec8; border-radius: 4px; background-color: #fff; color: var(--auth-ink); font-size: 16px; padding: 11px 13px; box-shadow: none; }
.auth-card .form-control::placeholder { color: #85847f; }
.auth-card .form-control:focus { border-color: var(--auth-ink); box-shadow: 0 0 0 2px #1113180a; }
.auth-card .form-control.is-invalid { border-color: var(--bs-form-invalid-border-color); }
.auth-card .form-check-input { border-color: #b2b1aa; }
.auth-card .form-check-input:checked { border-color: var(--auth-action); background-color: var(--auth-action); }
.auth-card .form-check-input:focus { border-color: var(--auth-action); box-shadow: 0 0 0 2px #e34b2b20; }
.auth-card .form-check-label { font-size: 13px; line-height: 1.65; color: var(--auth-muted); }
.auth-card .form-text { color: var(--auth-muted); font-size: 12px; }
.auth-card .mb-3 { margin-bottom: 22px !important; }
.auth-card a { color: var(--auth-ink); text-decoration-color: #b9b7af; text-underline-offset: 3px; }
.auth-card a:hover { color: var(--auth-action); }
.auth-password { position: relative; }
.auth-password .form-control { padding-right: 50px; }
.auth-password .form-control.is-invalid { background-position: right 3.1rem center; padding-right: 75px; }
.auth-password-toggle { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 3px; color: var(--auth-muted); }
.auth-password-toggle[hidden] { display: none; }
.auth-password-toggle:hover { background: var(--auth-paper); color: var(--auth-ink); }
.auth-forgot { display: block; text-align: right; font-size: 12px; margin: -5px 0 28px; }
.auth-card .auth-submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 49px; padding: 12px 16px; border-radius: 4px; background: var(--auth-action); border-color: var(--auth-action); color: #fff; font-size: 14px; font-weight: 600; box-shadow: none; text-decoration: none; }
.auth-card .auth-submit:hover { background: #ad2e19; border-color: #ad2e19; color: #fff; }
.auth-card .auth-submit:disabled { opacity: .75; cursor: wait; }
.auth-submit .spinner-border { display: none; width: 16px; height: 16px; border-width: 2px; }
.auth-submit[aria-busy="true"] .spinner-border { display: inline-block; }
.auth-submit[aria-busy="true"] .auth-submit-arrow { display: none; }
.auth-switch { text-align: center; color: var(--auth-muted); font-size: 12px; margin: 28px 0 0; padding-top: 26px; border-top: 1px solid var(--auth-line); }
.auth-switch a { font-weight: 600; margin-left: 4px; }
.auth-back { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; font-size: 13px; }
.auth-state-icon { color: var(--auth-action); font-size: 28px; margin-bottom: 22px; }
.auth-state-icon-success { color: #11756e; }
.auth-state-icon-warning { color: #9a6700; }
.auth-note { color: var(--auth-muted); font-size: 13px; line-height: 1.7; padding: 0 0 0 16px; border-left: 2px solid var(--auth-line); margin-bottom: 28px; }
.auth-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; font-size: 11px; color: var(--auth-muted); }
.auth-footer > div { display: flex; gap: 18px; }
.auth-footer a { color: var(--auth-muted); text-decoration: none; }
.auth-footer a:hover { color: var(--auth-ink); text-decoration: underline; }
.auth-page .flash-toast-container { margin-bottom: 22px; }
.auth-page .flash-toast { font-size: 13px; border-radius: 4px; }
.auth-page .flash-toast__message { overflow-wrap: anywhere; }
.auth-page .alert { font-size: 13px; border-radius: 4px; }
.auth-page a:focus-visible, .auth-page button:focus-visible { outline: 2px solid var(--auth-action); outline-offset: 4px; }
.auth-skip { position: absolute; z-index: 20; top: 12px; left: 12px; padding: 10px 16px; color: var(--auth-ink); background: #fff; transform: translateY(-200%); }
.auth-skip:focus { transform: none; }
@media (min-width: 1600px) {
    .auth-story { padding-left: max(80px, calc((100vw - 1440px) / 2)); }
}
@media (min-width: 992px) and (max-height: 750px) {
    .auth-story-content { margin: 48px 0 60px; }
    .auth-content { padding: 34px 0 46px; }
}
@media (max-width: 991.98px) {
    .auth-shell { display: block; }
    .auth-story { display: none; }
    .auth-main { min-height: 100vh; min-height: 100svh; padding: 26px 32px; }
    .auth-topbar { justify-content: space-between; }
    .auth-brand-mobile { display: inline-flex; }
    .auth-mobile-motto { display: block; margin: 30px auto 0; max-width: 380px; width: 100%; color: var(--auth-muted); font-size: 13px; line-height: 1.65; }
    .auth-mobile-motto em { color: var(--auth-action); font-family: Georgia, 'Times New Roman', serif; font-size: 16px; white-space: nowrap; }
    .auth-content { padding: 38px 0 48px; }
}
@media (max-width: 479.98px) {
    .auth-main { padding: 21px; }
    .auth-brand-mobile { font-size: 18px; gap: 7px; }
    .auth-brand-symbol { width: 29px; height: 29px; }
    .auth-brand-symbol img { width: 27px; height: 27px; }
    .auth-language { gap: 0; }
    .auth-language-button { min-width: 30px; padding-inline: 6px; }
    .auth-heading { font-size: 30px; }
    .auth-footer { justify-content: center; text-align: center; }
    .auth-footer > span { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-page *, .auth-page *::before, .auth-page *::after { transition: none !important; animation: none !important; }
}
