.auth-page {
    --auth-primary: #246bfe;
    --auth-secondary: #7757ff;
    min-height: 100svh;
    background: var(--bg);
}

.auth-shell {
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.auth-visual {
    display: none;
    position: relative;
    overflow: hidden;
    padding: 42px;
    color: #fff;
    background:
        radial-gradient(circle at 16% 18%, color-mix(in srgb, var(--auth-primary) 52%, transparent), transparent 34%),
        radial-gradient(circle at 84% 72%, color-mix(in srgb, var(--auth-secondary) 44%, transparent), transparent 36%),
        linear-gradient(145deg, color-mix(in srgb, var(--auth-primary) 32%, #07111f), color-mix(in srgb, var(--auth-secondary) 26%, #08111e));
}

.auth-visual::before,
.auth-visual::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.auth-visual::before {
    width: 360px;
    height: 360px;
    right: -120px;
    top: 12%;
    background: radial-gradient(circle, color-mix(in srgb, var(--auth-secondary) 45%, transparent), transparent 70%);
}

.auth-visual::after {
    width: 300px;
    height: 300px;
    left: -120px;
    bottom: -40px;
    background: radial-gradient(circle, color-mix(in srgb, var(--auth-primary) 38%, transparent), transparent 72%);
}

.auth-visual-inner {
    position: relative;
    z-index: 1;
    min-height: 640px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.auth-brand-lockup {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-strong);
}

.auth-brand-lockup strong {
    overflow: hidden;
    max-width: 220px;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: -.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-brand-lockup-light {
    color: #fff;
}

.auth-brand-logo {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, var(--auth-primary), var(--auth-secondary)) border-box;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--auth-primary) 22%, transparent);
    color: var(--auth-primary);
    font-size: 18px;
    font-weight: 900;
}

.auth-brand-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.auth-brand-logo-large {
    width: 84px;
    border-width: 4px;
    font-size: 30px;
    box-shadow: 0 18px 42px color-mix(in srgb, var(--auth-primary) 26%, transparent);
}

.auth-visual-copy {
    margin: auto 0;
    max-width: 650px;
}

.auth-kicker {
    margin: 0 0 12px;
    color: var(--auth-primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}

.auth-visual .auth-kicker {
    color: color-mix(in srgb, #fff 78%, var(--auth-secondary));
}

.auth-visual-copy h1 {
    margin: 0;
    max-width: 680px;
    font-size: clamp(42px, 4.4vw, 70px);
    line-height: 1.04;
    letter-spacing: -.055em;
}

.auth-visual-description {
    max-width: 560px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .76);
    font-size: 16px;
    line-height: 1.8;
}

.auth-benefit-grid {
    max-width: 600px;
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.auth-benefit-card {
    min-height: 116px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(10px);
}

.auth-benefit-card span,
.auth-benefit-card strong,
.auth-benefit-card small {
    display: block;
}

.auth-benefit-card span {
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
}

.auth-benefit-card strong {
    margin-top: 9px;
    color: #fff;
    font-size: 18px;
    letter-spacing: -.025em;
}

.auth-benefit-card small {
    margin-top: 7px;
    color: color-mix(in srgb, #fff 72%, var(--auth-primary));
    font-size: 11px;
    line-height: 1.5;
}

.auth-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--surface);
}

.auth-mobile-header {
    min-height: 72px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.auth-content {
    width: min(100%, 520px);
    margin: auto;
    padding: 28px 20px 42px;
}

.auth-content-register {
    padding-top: 24px;
}

.auth-form-brand {
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.auth-heading {
    margin-bottom: 26px;
    text-align: center;
}

.auth-heading h2 {
    margin: 0;
    color: var(--text-strong);
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.12;
    letter-spacing: -.045em;
}

.auth-heading p:last-child {
    margin: 10px auto 0;
    max-width: 460px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.72;
}

.auth-content .auth-kicker {
    margin-bottom: 8px;
    color: var(--auth-primary);
}

.form-stack {
    display: grid;
    gap: 16px;
}

.auth-page .field-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-primary) 14%, transparent);
}

.auth-submit {
    min-height: 48px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-secondary));
    box-shadow: 0 12px 28px color-mix(in srgb, var(--auth-primary) 22%, transparent);
}

.auth-footer {
    margin: 22px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.auth-footer a {
    color: var(--auth-primary);
    font-weight: 850;
}

.auth-trust {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 12px 16px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 11px;
}

.auth-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-trust i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-secondary));
}

.auth-system-notice {
    margin-bottom: 18px;
    padding: 13px 14px;
    border: 1px solid color-mix(in srgb, var(--warning) 34%, var(--line));
    border-radius: 13px;
    background: color-mix(in srgb, var(--warning) 10%, var(--surface));
    color: var(--text-strong);
    font-size: 13px;
    line-height: 1.65;
}

.auth-pool-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.auth-pool-fieldset legend {
    padding: 0;
    color: var(--text-strong);
    font-size: 12px;
    font-weight: 800;
}

.auth-pool-fieldset > p {
    margin: 5px 0 10px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.auth-pool-options {
    display: grid;
    gap: 8px;
}

.auth-pool-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.auth-pool-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-pool-option span {
    min-height: 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
    transition: border-color .16s var(--ease), background .16s var(--ease), transform .16s var(--ease);
}

.auth-pool-option strong {
    color: var(--text-strong);
    font-size: 12px;
}

.auth-pool-option small {
    color: var(--muted);
    font-size: 10px;
}

.auth-pool-option input:checked + span {
    border-color: color-mix(in srgb, var(--auth-primary) 52%, var(--line));
    background: color-mix(in srgb, var(--auth-primary) 10%, var(--surface));
}

.auth-pool-option input:focus-visible + span {
    outline: 2px solid var(--auth-primary);
    outline-offset: 2px;
}

@media (min-width: 900px) {
    .auth-shell {
        grid-template-columns: minmax(540px, 1.16fr) minmax(450px, .84fr);
    }

    .auth-visual {
        display: block;
    }

    .auth-main {
        min-height: 100vh;
    }

    .auth-mobile-header {
        min-height: 76px;
        padding: 0 32px;
        justify-content: flex-end;
        border-bottom: 0;
    }

    .auth-mobile-header .auth-brand-lockup {
        display: none;
    }

    .auth-content {
        padding: 28px 48px 64px;
    }

    .auth-shell-register .auth-main {
        overflow-y: auto;
    }

    .auth-content-register {
        margin-top: 0;
        margin-bottom: auto;
        padding-top: 10px;
    }
}

@media (max-width: 899px) {
    .auth-form-brand {
        margin-top: 10px;
    }
}

@media (max-width: 420px) {
    .auth-mobile-header {
        min-height: 66px;
        padding: 0 14px;
    }

    .auth-brand-lockup strong {
        max-width: 180px;
        font-size: 14px;
    }

    .auth-brand-logo {
        width: 42px;
    }

    .auth-brand-logo-large {
        width: 76px;
    }

    .auth-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .auth-heading {
        margin-bottom: 22px;
    }

    .form-stack {
        gap: 14px;
    }

    .auth-trust {
        display: grid;
        justify-items: center;
    }
}
