:root {
    --auth-bg: #eef2f8;
    --auth-surface: #ffffff;
    --auth-ink: #101828;
    --auth-muted: #667085;
    --auth-line: #dfe5ee;
    --auth-blue: #2457ff;
    --auth-blue-dark: #1945db;
    --auth-dark: #101828;
    --auth-danger: #d92d20;
    --auth-success: #079455;
}

* {
    box-sizing: border-box;
}

body.auth-page {
    min-height: 100vh;
    margin: 0;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-ink);
    background:
        radial-gradient(circle at 7% 5%, rgba(36, 87, 255, .12), transparent 29rem),
        radial-gradient(circle at 93% 92%, rgba(117, 73, 235, .09), transparent 31rem),
        var(--auth-bg);
    font-family: "Manrope", Arial, sans-serif;
}

.auth-shell {
    width: min(94vw, 1220px);
    min-height: min(760px, calc(100vh - 56px));
    display: grid;
    grid-template-columns: minmax(360px, 44%) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(214, 221, 232, .92);
    border-radius: 28px;
    background: var(--auth-surface);
    box-shadow: 0 28px 80px rgba(16, 24, 40, .14);
}

.auth-showcase {
    position: relative;
    min-width: 0;
    padding: 42px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 110% 0%, rgba(86, 119, 255, .7), transparent 20rem),
        linear-gradient(150deg, #0d1629 0%, #182642 58%, #1e3470 100%);
}

.auth-showcase::before,
.auth-showcase::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    pointer-events: none;
}

.auth-showcase::before {
    right: -150px;
    bottom: -160px;
    width: 410px;
    height: 410px;
    box-shadow: 0 0 0 65px rgba(255, 255, 255, .025), 0 0 0 130px rgba(255, 255, 255, .016);
}

.auth-showcase::after {
    left: -100px;
    top: 40%;
    width: 210px;
    height: 210px;
    background: rgba(36, 87, 255, .08);
}

.auth-brand,
.auth-showcase-copy,
.auth-benefits,
.auth-trust {
    position: relative;
    z-index: 1;
}

.auth-brand {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.auth-brand img {
    width: 46px;
    height: 46px;
    padding: 4px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.auth-brand-copy strong,
.auth-brand-copy small {
    display: block;
}

.auth-brand-copy strong {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .02em;
}

.auth-brand-copy small {
    margin-top: 2px;
    color: #9fb4e9;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.auth-showcase-copy {
    margin-top: 92px;
}

.auth-eyebrow {
    margin: 0 0 14px;
    color: #8eacff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.auth-showcase h1 {
    max-width: 470px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.25rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.055em;
}

.auth-showcase-copy > p:last-child {
    max-width: 470px;
    margin: 22px 0 0;
    color: #b9c4d7;
    font-size: 15px;
    line-height: 1.75;
}

.auth-benefits {
    margin: auto 0 0;
    padding: 0;
    display: grid;
    gap: 13px;
    list-style: none;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #d5dbea;
    font-size: 13px;
}

.auth-benefits i {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9bb2ff;
    border-radius: 9px;
    background: rgba(89, 126, 255, .15);
    font-size: 12px;
}

.auth-trust {
    margin-top: 28px;
    color: #8390a7;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-panel {
    min-width: 0;
    padding: 58px clamp(40px, 6vw, 88px);
    display: flex;
    align-items: center;
    background: #fff;
}

.auth-form-wrap {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

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

.auth-title-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-blue);
    border-radius: 15px;
    background: #edf3ff;
    font-size: 21px;
}

.auth-form-wrap h2 {
    margin: 0;
    color: var(--auth-ink);
    font-size: clamp(1.9rem, 3vw, 2.55rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.045em;
}

.auth-subtitle {
    margin: 12px 0 31px;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.65;
}

.auth-alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.5;
}

.auth-alert-danger {
    color: #912018;
    border: 1px solid #fecdca;
    background: #fef3f2;
}

.auth-alert-success {
    color: #05603a;
    border: 1px solid #abefc6;
    background: #ecfdf3;
}

.auth-field {
    margin-bottom: 20px;
}

.auth-field label {
    margin-bottom: 8px;
    display: block;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    color: #98a2b3;
    font-size: 14px;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-page .auth-control {
    width: 100%;
    min-height: 52px;
    padding: 12px 45px;
    color: #182230;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    outline: none;
    background: #fbfcfe;
    font-family: inherit;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-page .auth-control::placeholder {
    color: #a4adbb;
}

.auth-page .auth-control:focus {
    border-color: #84adff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(36, 87, 255, .09);
}

.auth-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #667085;
    border: 0;
    border-radius: 9px;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
}

.auth-password-toggle:hover {
    color: var(--auth-blue);
    background: #edf3ff;
}

.auth-options {
    margin: -1px 0 22px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.auth-link {
    color: var(--auth-blue);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--auth-blue-dark);
    text-decoration: underline;
}

.auth-primary,
.auth-google {
    width: 100%;
    min-height: 52px;
    padding: 11px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    cursor: pointer;
}

.auth-primary {
    color: #fff;
    border: 1px solid var(--auth-blue);
    background: var(--auth-blue);
    box-shadow: 0 9px 20px rgba(36, 87, 255, .2);
}

.auth-primary:hover {
    border-color: var(--auth-blue-dark);
    background: var(--auth-blue-dark);
    box-shadow: 0 12px 25px rgba(36, 87, 255, .25);
    transform: translateY(-1px);
}

.auth-divider {
    margin: 24px 0;
    display: flex;
    align-items: center;
    gap: 13px;
    color: #98a2b3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #eaecf0;
}

.auth-google {
    color: #344054;
    border: 1px solid var(--auth-line);
    background: #fff;
    box-shadow: 0 3px 10px rgba(16, 24, 40, .035);
}

.auth-google:hover {
    border-color: #c8d3e5;
    background: #f9fafb;
    transform: translateY(-1px);
}

.auth-google svg {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
}

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

.auth-back {
    margin-top: 26px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475467;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.auth-back:hover {
    color: var(--auth-blue);
}

.auth-security-note {
    margin-top: 24px;
    padding: 13px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #667085;
    border: 1px solid #eaecf0;
    border-radius: 11px;
    background: #f9fafb;
    font-size: 11px;
    line-height: 1.55;
}

.auth-security-note i {
    margin-top: 2px;
    color: var(--auth-success);
}

@media (max-width: 860px) {
    body.auth-page {
        padding: 18px;
        align-items: flex-start;
    }

    .auth-shell {
        width: min(100%, 680px);
        min-height: 0;
        grid-template-columns: 1fr;
        border-radius: 23px;
    }

    .auth-showcase {
        min-height: 205px;
        padding: 28px;
    }

    .auth-brand {
        display: none;
    }

    .auth-showcase-copy {
        margin-top: 0;
    }

    .auth-showcase h1 {
        max-width: 560px;
        font-size: 2.1rem;
    }

    .auth-showcase-copy > p:last-child {
        max-width: 560px;
        margin-top: 13px;
        font-size: 13px;
    }

    .auth-benefits,
    .auth-trust {
        display: none;
    }

    .auth-panel {
        padding: 39px 34px 44px;
    }

    .auth-mobile-brand {
        margin-bottom: 28px;
        display: flex;
        align-items: center;
        gap: 10px;
        color: #182230;
        font-size: 14px;
        font-weight: 800;
    }

    .auth-mobile-brand img {
        width: 39px;
        height: 39px;
        padding: 3px;
        object-fit: contain;
        border: 1px solid #e4e7ec;
        border-radius: 11px;
        background: #fff;
    }
}

@media (max-width: 520px) {
    body.auth-page {
        padding: 0;
        background: #fff;
    }

    .auth-shell {
        width: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-showcase {
        min-height: 174px;
        padding: 23px 20px;
        border-radius: 0 0 23px 23px;
    }

    .auth-showcase h1 {
        font-size: 1.72rem;
    }

    .auth-showcase-copy > p:last-child {
        font-size: 12px;
        line-height: 1.55;
    }

    .auth-panel {
        padding: 29px 20px 38px;
    }

    .auth-mobile-brand {
        margin-bottom: 22px;
    }

    .auth-title-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 19px;
        font-size: 18px;
    }

    .auth-subtitle {
        margin-bottom: 25px;
    }
}
