:root {
    --auth-bg: #f6f7f9;
    --auth-panel: #111318;
    --auth-panel-soft: #1b1e24;
    --auth-text: #111318;
    --auth-muted: #667085;
    --auth-border: #dfe3e8;
    --auth-border-strong: #cfd5dc;
    --auth-white: #ffffff;
    --auth-accent: #111318;
    --auth-success: #0f766e;
    --auth-danger: #b42318;
    --auth-radius: 16px;
    --auth-radius-sm: 10px;
    --auth-shadow: 0 18px 60px rgba(16, 24, 40, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--auth-text);
    background: var(--auth-bg);
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

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

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        minmax(360px, 0.86fr)
        minmax(540px, 1.14fr);
}

.auth-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 34px 42px;
    overflow: hidden;
    color: var(--auth-white);
    background:
        radial-gradient(
            circle at 20% 15%,
            rgba(255, 255, 255, 0.08),
            transparent 34%
        ),
        linear-gradient(
            155deg,
            #171a20 0%,
            #0f1115 58%,
            #08090c 100%
        );
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -170px;
    bottom: -150px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 60px rgba(255, 255, 255, 0.025),
        0 0 0 120px rgba(255, 255, 255, 0.012);
}

.auth-brand-top,
.auth-brand-copy,
.auth-brand-footer {
    position: relative;
    z-index: 2;
}

.auth-brand-logo {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.auth-brand-copy {
    max-width: 560px;
    margin: auto 0;
    padding: 64px 0;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.04);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-brand-copy h1 {
    margin: 0;
    max-width: 560px;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.auth-brand-copy > p {
    max-width: 500px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
    line-height: 1.7;
}

.auth-brand-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 34px;
}

.auth-brand-proof > div {
    min-height: 92px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(8px);
}

.auth-brand-proof strong {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
}

.auth-brand-proof span {
    display: block;
    color: rgba(255, 255, 255, 0.56);
    font-size: 10px;
    line-height: 1.45;
}

.auth-brand-footer {
    color: rgba(255, 255, 255, 0.36);
    font-size: 10px;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 44px;
    background:
        linear-gradient(
            180deg,
            #f8f9fb 0%,
            #f4f5f7 100%
        );
}

.auth-form-wrap {
    width: min(100%, 470px);
}

.auth-mobile-logo {
    display: none;
    margin-bottom: 22px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-card {
    padding: 34px;
    border: 1px solid rgba(208, 213, 221, 0.88);
    border-radius: var(--auth-radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--auth-shadow);
}

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

.auth-card-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--auth-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-card-head h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.auth-card-head p {
    margin: 9px 0 0;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.6;
}

.auth-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #fecdca;
    border-radius: var(--auth-radius-sm);
    color: var(--auth-danger);
    background: #fff5f4;
    font-size: 11px;
    line-height: 1.55;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.auth-field label {
    color: #344054;
    font-size: 11px;
    font-weight: 650;
}

.auth-field input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid var(--auth-border-strong);
    border-radius: var(--auth-radius-sm);
    outline: none;
    color: var(--auth-text);
    background: #fff;
    font-size: 13px;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.auth-field input::placeholder {
    color: #98a2b3;
}

.auth-field input:focus {
    border-color: #111318;
    box-shadow: 0 0 0 3px rgba(17, 19, 24, 0.08);
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    width: max-content;
    gap: 8px;
    color: #475467;
    font-size: 11px;
    cursor: pointer;
}

.auth-checkbox input {
    width: 15px;
    height: 15px;
    accent-color: #111318;
}

.auth-submit {
    width: 100%;
    height: 46px;
    margin-top: 2px;
    border: 0;
    border-radius: var(--auth-radius-sm);
    color: #fff;
    background: var(--auth-accent);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}

.auth-submit:hover {
    opacity: 0.92;
}

.auth-submit:active {
    transform: translateY(1px);
}

.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin: 24px 0 18px;
}

.auth-divider span {
    height: 1px;
    background: var(--auth-border);
}

.auth-divider small {
    color: #98a2b3;
    font-size: 10px;
}

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

.auth-switch a {
    color: var(--auth-text);
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

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

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

    .auth-form-panel {
        padding: 28px 20px;
    }

    .auth-mobile-logo {
        display: block;
    }
}

@media (max-width: 560px) {
    .auth-form-panel {
        align-items: flex-start;
        padding-top: 28px;
    }

    .auth-card {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .auth-card-head h2 {
        font-size: 24px;
    }
}
