:root {
    --auth-navy: #10264d;
    --auth-blue: #356ae6;
    --auth-soft: #f5f8fd;
    --auth-border: #dce5f0;
    --auth-muted: #7e8b9f;
    --auth-text: #172642;
}

* {
    box-sizing: border-box;
}

body.auth-page {
    min-height: 100vh;
    margin: 0;
    background: var(--auth-soft);
    color: var(--auth-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.1fr);
}

.auth-brand-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 5vw, 72px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at 12% 16%, rgba(106,150,255,.28), transparent 25%),
        radial-gradient(circle at 82% 82%, rgba(71,124,243,.2), transparent 28%),
        linear-gradient(145deg, #0e2348 0%, #132d5a 58%, #173567 100%);
    color: #fff;
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    inset: auto -90px -100px auto;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    box-shadow: 0 0 0 54px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.02);
}

.auth-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-brand-symbol {
    width: 46px;
    height: 46px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    border-radius: 14px;
    background: #fff;
}

.auth-brand-symbol span {
    display: block;
    border-radius: 50%;
    background: var(--auth-blue);
}

.auth-brand-symbol span:nth-child(3) {
    grid-column: 1 / -1;
    width: 7px;
    justify-self: center;
}

.auth-brand > div {
    display: grid;
    gap: 2px;
}

.auth-brand strong,
.auth-mobile-brand strong {
    font-size: 1.05rem;
    letter-spacing: -.03em;
}

.auth-brand span {
    color: rgba(255,255,255,.65);
    font-size: .72rem;
}

.auth-brand-copy {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.auth-kicker {
    color: #5e88ef;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-brand-copy .auth-kicker {
    color: #8fadf5;
}

.auth-brand-copy h1 {
    margin: 12px 0 14px;
    max-width: 540px;
    font-size: clamp(2.25rem, 4vw, 4.2rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.auth-brand-copy p {
    max-width: 500px;
    margin: 0;
    color: rgba(255,255,255,.68);
    font-size: .92rem;
    line-height: 1.65;
}

.auth-security-note {
    position: relative;
    z-index: 1;
    max-width: 440px;
    padding: 14px;
    display: grid;
    grid-template-columns: 36px minmax(0,1fr);
    gap: 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(14px);
}

.auth-security-note > svg {
    width: 18px;
    height: 18px;
    color: #8eafff;
}

.auth-security-note > div {
    display: grid;
    gap: 3px;
}

.auth-security-note strong {
    font-size: .72rem;
}

.auth-security-note span {
    color: rgba(255,255,255,.6);
    font-size: .63rem;
    line-height: 1.45;
}

.auth-form-panel {
    padding: 30px;
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(460px, 100%);
    padding: 32px;
    border: 1px solid var(--auth-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(23,51,96,.09);
}

.auth-card-head {
    margin-bottom: 24px;
}

.auth-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 14px;
    background: #edf3ff;
    color: var(--auth-blue);
}

.auth-icon svg {
    width: 20px;
    height: 20px;
}

.auth-card-head h2 {
    margin: 6px 0 7px;
    color: var(--auth-navy);
    font-size: 1.65rem;
    letter-spacing: -.04em;
}

.auth-card-head p {
    margin: 0;
    color: var(--auth-muted);
    font-size: .76rem;
    line-height: 1.55;
}

.auth-alert {
    margin-bottom: 16px;
    padding: 11px 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border: 1px solid #f0cfd5;
    border-radius: 11px;
    background: #fff5f6;
    color: #a54b59;
    font-size: .68rem;
}

.auth-alert svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.auth-form {
    display: grid;
    gap: 15px;
}

.auth-field {
    display: grid;
    gap: 6px;
}

.auth-field label {
    color: #536176;
    font-size: .66rem;
    font-weight: 700;
}

.auth-field > div {
    position: relative;
}

.auth-field > div > svg {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 17px;
    height: 17px;
    color: #93a1b4;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-field input {
    width: 100%;
    min-height: 50px;
    padding: 0 45px;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    outline: 0;
    background: #fbfcfe;
    color: var(--auth-text);
    font: inherit;
    font-size: .75rem;
    transition: .16s ease;
}

.auth-field input:focus {
    border-color: #9eb7ef;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(53,106,230,.08);
}

.auth-field small {
    color: #97a3b3;
    font-size: .58rem;
}

.auth-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #8190a5;
    transform: translateY(-50%);
    cursor: pointer;
}

.auth-password-toggle:hover {
    background: #f0f4fa;
}

.auth-password-toggle svg {
    width: 16px;
    height: 16px;
}

.auth-submit {
    min-height: 50px;
    margin-top: 4px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 12px;
    background: var(--auth-blue);
    color: #fff;
    font-size: .72rem;
    font-weight: 750;
    box-shadow: 0 10px 24px rgba(53,106,230,.2);
    cursor: pointer;
}

.auth-submit:hover {
    background: #2d60d8;
}

.auth-submit svg {
    width: 16px;
    height: 16px;
}

.auth-receipt-link {
    margin-top: 22px;
    padding-top: 18px;
    display: grid;
    grid-template-columns: 30px minmax(0,1fr) auto;
    gap: 9px;
    align-items: center;
    border-top: 1px solid #edf1f6;
}

.auth-receipt-link > svg {
    width: 17px;
    height: 17px;
    color: #3c9f75;
}

.auth-receipt-link > div {
    display: grid;
    gap: 2px;
}

.auth-receipt-link strong {
    color: #58667b;
    font-size: .62rem;
}

.auth-receipt-link span {
    color: #919dad;
    font-size: .53rem;
    line-height: 1.4;
}

.auth-receipt-link a {
    color: var(--auth-blue);
    font-size: .6rem;
    font-weight: 750;
}

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

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        padding: 22px;
    }

    .auth-mobile-brand {
        width: min(460px, 100%);
        margin: 0 auto 14px;
        display: flex;
        align-items: center;
        gap: 9px;
        color: var(--auth-navy);
    }

    .auth-mobile-brand .auth-brand-symbol {
        width: 40px;
        height: 40px;
        padding: 10px;
        background: var(--auth-navy);
    }

    .auth-mobile-brand .auth-brand-symbol span {
        background: #fff;
    }
}

@media (max-width: 520px) {
    .auth-form-panel {
        padding: 16px;
        align-items: start;
    }

    .auth-card {
        padding: 23px 19px;
        border-radius: 19px;
    }

    .auth-card-head h2 {
        font-size: 1.42rem;
    }

    .auth-receipt-link {
        grid-template-columns: 28px minmax(0,1fr);
    }

    .auth-receipt-link a {
        grid-column: 2;
    }
}
