.account-access-page {
    --account-red: #c90012;
    --account-red-bright: #e30d22;
    --account-red-dark: #8f0010;
    --account-red-soft: #fff0f2;
    --account-ink: #18181b;
    --account-muted: #64646d;
    --account-line: #dedee3;
    --account-canvas: #f5f5f6;
    --account-surface: #fff;
    min-height: 100dvh;
    overflow-x: clip;
    color: var(--account-ink);
    background: var(--account-canvas);
    -webkit-font-smoothing: antialiased;
}

.account-access-page > .site-header {
    position: absolute;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 4.75rem;
    padding: 0.7rem clamp(1.25rem, 3.5vw, 3.5rem);
    border: 0;
    color: #fff;
    background: transparent;
}

.account-access-page .page-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.account-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.7rem;
    color: inherit;
    text-decoration: none;
}

.account-brand__symbol,
.mobile-account-brand__symbol {
    position: relative;
    display: block;
    width: 3.2rem;
    height: 2.55rem;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 0.7rem;
    background: #fff;
}

.account-brand__symbol img,
.mobile-account-brand__symbol img {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 5.4rem;
    max-width: none;
    height: auto;
    transform: translate(-50%, -50%);
}

.account-brand__copy,
.mobile-auth-console .mobile-brand__copy {
    display: grid;
    min-width: 0;
    gap: 0.08rem;
    line-height: 1.1;
}

.account-brand__copy strong,
.mobile-auth-console .mobile-brand__copy strong {
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-brand__copy small,
.mobile-auth-console .mobile-brand__copy small {
    color: rgb(255 255 255 / 67%);
    font-size: 0.68rem;
    font-weight: 500;
}

.account-access-page .header-controls {
    color: var(--account-ink);
}

.account-access-page .language-switcher {
    border-color: #dedee3;
    color: #4f4f57;
    background: rgb(255 255 255 / 82%);
    backdrop-filter: blur(0.8rem);
}

.account-access-page .language-choice.is-active {
    color: #fff;
    background: var(--account-red);
}

.account-access-page :where(a, button, input):focus-visible {
    outline: 2px solid var(--account-red);
    outline-offset: 2px;
}

.account-access-layout {
    display: grid;
    min-height: 100dvh;
    grid-template-columns: minmax(22rem, 0.88fr) minmax(31rem, 1.12fr);
}

.account-access-story {
    position: relative;
    display: grid;
    min-width: 0;
    padding: clamp(7.5rem, 12vh, 10rem) clamp(2rem, 5vw, 5.5rem) clamp(2rem, 6vh, 4rem);
    overflow: hidden;
    align-content: center;
    color: #fff;
    background:
        radial-gradient(circle at 92% 14%, rgb(227 13 34 / 32%), transparent 20rem),
        radial-gradient(circle at -10% 90%, rgb(201 0 18 / 24%), transparent 24rem),
        #18181b;
}

.account-access-story::before,
.account-access-story::after {
    position: absolute;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.account-access-story::before {
    top: 13%;
    right: -10rem;
    width: 22rem;
    height: 22rem;
}

.account-access-story::after {
    bottom: -13rem;
    left: -8rem;
    width: 28rem;
    height: 28rem;
}

.account-access-story__content,
.account-access-story__footer {
    position: relative;
    z-index: 1;
}

.account-access-story__content {
    width: min(30rem, 100%);
}

.account-access-story__eyebrow {
    display: flex;
    margin: 0 0 1.25rem;
    align-items: center;
    gap: 0.65rem;
    color: rgb(255 255 255 / 72%);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.account-access-story__eyebrow span {
    width: 1.8rem;
    height: 0.16rem;
    border-radius: 999px;
    background: var(--account-red-bright);
}

.account-access-story h2 {
    max-width: 13ch;
    margin: 0;
    color: #fff;
    font-size: clamp(1.75rem, 2.65vw, 2.45rem);
    font-weight: 550;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.account-access-story__content > p:not(.account-access-story__eyebrow) {
    max-width: 34rem;
    margin: 1.35rem 0 0;
    color: rgb(255 255 255 / 68%);
    font-size: 0.95rem;
    line-height: 1.7;
}

.account-access-benefits {
    display: grid;
    gap: 0.85rem;
    padding: 1.75rem 0 0;
    margin: 1.75rem 0 0;
    border-top: 1px solid rgb(255 255 255 / 12%);
    list-style: none;
}

.account-access-benefits li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: rgb(255 255 255 / 82%);
    font-size: 0.84rem;
    line-height: 1.45;
}

.account-access-benefits svg {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    padding: 0.18rem;
    border-radius: 50%;
    color: #fff;
    background: var(--account-red);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.account-access-story__footer {
    display: flex;
    align-self: end;
    align-items: center;
    gap: 0.55rem;
    margin: clamp(3rem, 8vh, 6rem) 0 0;
    color: rgb(255 255 255 / 52%);
    font-size: 0.72rem;
}

.account-access-story__footer svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.account-access-main {
    position: relative;
    display: grid;
    min-width: 0;
    padding: clamp(6.5rem, 12vh, 8rem) clamp(1.5rem, 6vw, 6rem) clamp(2rem, 6vh, 4rem);
    place-items: center;
    background:
        radial-gradient(circle at 100% 0%, rgb(201 0 18 / 7%), transparent 21rem),
        linear-gradient(145deg, #fafafa 0%, #f4f4f5 100%);
}

.account-message-list {
    position: absolute;
    z-index: 3;
    top: 5.5rem;
    width: min(31rem, calc(100% - 3rem));
}

.account-message-list .message {
    padding: 0.75rem 1rem;
    border: 1px solid #cfe6d7;
    border-radius: 0.8rem;
    margin: 0;
    color: #17643a;
    background: #eef9f2;
    font-size: 0.82rem;
}

.account-access-page .auth-panel {
    position: relative;
    width: 100%;
    max-width: 31rem;
    padding: clamp(1.6rem, 3vw, 2.25rem);
    border: 1px solid rgb(222 222 227 / 88%);
    border-radius: 1.25rem;
    margin: 0;
    overflow: hidden;
    color: var(--account-ink);
    background: rgb(255 255 255 / 94%);
    box-shadow: 0 1.25rem 4rem rgb(39 20 23 / 10%);
}

.account-access-page .auth-panel::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.22rem;
    background: linear-gradient(90deg, var(--account-red), var(--account-red-bright));
    content: "";
}

.auth-panel__header {
    position: relative;
}

.auth-panel__icon,
.auth-status-icon {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    margin: 0 0 1.15rem;
    place-items: center;
    border-radius: 0.8rem;
    color: var(--account-red);
    background: var(--account-red-soft);
}

.auth-panel__icon svg,
.auth-status-icon svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.account-access-page .auth-panel .section-label {
    margin: 0 0 0.35rem;
    color: var(--account-red-dark) !important;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.11em;
}

.account-access-page .auth-panel h1 {
    margin: 0;
    color: var(--account-ink);
    font-size: clamp(1.45rem, 1.9vw, 1.7rem);
    font-weight: 550;
    letter-spacing: -0.03em;
    line-height: 1.16;
}

.account-access-page .auth-panel > p:not(.section-label, .auth-privacy-note, .auth-status-hint),
.account-access-page .auth-panel__header > p:not(.section-label) {
    margin: 0.7rem 0 0;
    color: var(--account-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.account-access-page .auth-panel .platform-form {
    padding: 0;
    border: 0;
    border-radius: 0;
    margin: 1.55rem 0 0;
    background: transparent;
    box-shadow: none;
}

.auth-form {
    display: grid;
    gap: 1.05rem;
}

.account-access-page .field-group {
    display: grid;
    gap: 0.42rem;
    margin: 0;
}

.account-access-page .field-group > label,
.auth-label-row label {
    color: #34343a;
    font-size: 0.78rem;
    font-weight: 650;
}

.auth-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.auth-label-row a,
.auth-text-link,
.auth-panel__footer a {
    color: var(--account-red-dark);
    font-size: 0.76rem;
    font-weight: 650;
    text-underline-offset: 0.18rem;
}

.auth-label-row a {
    text-decoration: none;
}

.auth-label-row a:hover,
.auth-label-row a:focus-visible,
.auth-text-link:hover,
.auth-text-link:focus-visible,
.auth-panel__footer a:hover,
.auth-panel__footer a:focus-visible {
    color: var(--account-red);
    text-decoration: underline;
}

.account-access-page .field-group :where(input, select, textarea) {
    width: 100%;
    min-width: 0;
    min-height: 3rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid #85858e;
    border-radius: 0.72rem;
    color: var(--account-ink);
    background: #fff;
    font: inherit;
    font-size: 1rem;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.account-access-page .field-group :where(input, select, textarea):hover {
    border-color: #5f5f68;
}

.account-access-page .field-group :where(input, select, textarea):focus {
    border-color: var(--account-red);
    box-shadow: 0 0 0 0.22rem rgb(201 0 18 / 12%);
    outline: none;
}

.account-access-page .field-group.has-error :where(input, select, textarea),
.account-access-page .field-group :where(input, select, textarea)[aria-invalid="true"] {
    border-color: #a52c38;
    background: #fffafa;
}

.auth-password-control {
    position: relative;
}

.account-access-page .auth-password-control input {
    padding-right: 3.25rem;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: 0;
    border-radius: 0.55rem;
    place-items: center;
    color: #5f5f68;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible,
.auth-password-toggle[aria-pressed="true"] {
    color: var(--account-red-dark);
    background: var(--account-red-soft);
}

.auth-password-toggle svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.auth-password-toggle[aria-pressed="true"] svg {
    opacity: 0.75;
}

.account-access-page .button.auth-submit {
    display: inline-flex;
    width: 100%;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.72rem 1rem;
    border: 1px solid var(--account-red);
    border-radius: 0.72rem;
    color: #fff;
    background: linear-gradient(145deg, var(--account-red-bright), var(--account-red));
    box-shadow: 0 0.55rem 1.2rem rgb(201 0 18 / 18%);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: box-shadow 150ms ease, transform 120ms ease, filter 150ms ease;
}

.account-access-page .button.auth-submit:hover,
.account-access-page .button.auth-submit:focus-visible {
    filter: brightness(0.96);
    box-shadow: 0 0.7rem 1.5rem rgb(201 0 18 / 23%);
}

.account-access-page .button.auth-submit:active {
    box-shadow: 0 0.3rem 0.8rem rgb(201 0 18 / 18%);
    transform: translateY(1px) scale(0.99);
}

.auth-submit svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.account-access-page .form-errors,
.account-access-page .errorlist {
    padding: 0.7rem 0.8rem;
    border: 1px solid #f1c5ca;
    border-radius: 0.65rem;
    margin: 0;
    color: #8f1f2b;
    background: #fff2f3;
    font-size: 0.76rem;
    line-height: 1.45;
    list-style: none;
}

.account-access-page .form-errors .errorlist {
    padding: 0;
    border: 0;
    background: transparent;
}

.auth-panel__footer {
    padding-top: 1.15rem;
    border-top: 1px solid #eeeeef;
    margin-top: 1.35rem;
    text-align: center;
}

.auth-panel__footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #5f5f68;
    text-decoration: none;
}

.auth-panel__footer svg {
    width: 0.9rem;
    height: 0.9rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.auth-privacy-note,
.account-access-page .auth-panel .auth-status-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.7rem;
    margin: 1rem 0 0;
    color: #66666f;
    background: #f6f6f7;
    font-size: 0.72rem;
    line-height: 1.5;
}

.auth-privacy-note svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    margin-top: 0.05rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.auth-panel--status {
    text-align: center;
}

.auth-status-icon {
    width: 3.35rem;
    height: 3.35rem;
    margin-inline: auto;
    border-radius: 1rem;
}

.auth-status-icon svg {
    width: 1.7rem;
    height: 1.7rem;
}

.auth-status-icon--success {
    color: #17643a;
    background: #e5f6ec;
}

.auth-status-icon--warning {
    color: #8a5a11;
    background: #fff4dc;
}

.account-access-page .auth-panel--status .auth-status-hint {
    display: block;
}

.auth-status-actions {
    display: grid;
    justify-items: center;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.auth-text-link {
    text-decoration: none;
}

.auth-password-help {
    color: var(--account-muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.auth-password-help ul {
    padding-left: 1.2rem;
    margin: 0.35rem 0 0;
}

@media (max-width: 60rem) {
    .account-access-page > .site-header {
        align-items: center;
        flex-direction: row;
        color: var(--account-ink);
    }

    .account-brand__copy small {
        color: var(--account-muted);
    }

    .account-access-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .account-access-story {
        display: none;
    }

    .account-access-main {
        min-height: 100dvh;
        padding-top: 6.5rem;
    }
}

@media (max-width: 36rem) {
    .account-access-page > .site-header {
        gap: 0.7rem;
        padding-inline: 0.85rem;
    }

    .account-brand__copy small {
        display: none;
    }

    .account-brand__symbol {
        width: 2.8rem;
        height: 2.25rem;
    }

    .account-brand__symbol img {
        width: 4.8rem;
    }

    .account-access-main {
        padding: 5.75rem 0.75rem 1.25rem;
        place-items: start center;
    }

    .account-access-page .auth-panel {
        padding: 1.35rem;
        border-radius: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .account-access-page *,
    .account-access-page *::before,
    .account-access-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
