:root {
    --auth-ink: #172033;
    --auth-muted: #68738a;
    --auth-line: #dfe5ef;
    --auth-soft: #f5f7fb;
    --auth-primary: #2459d3;
    --auth-primary-dark: #173b95;
    --auth-accent: #6d48e5;
    --auth-danger: #b42318;
    --auth-danger-bg: #fff1f0;
    --auth-success: #067647;
    --auth-success-bg: #ecfdf3;
}

.auth-page-bg {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at 10% 10%, rgba(109, 72, 229, .16), transparent 28rem),
        radial-gradient(circle at 90% 90%, rgba(36, 89, 211, .14), transparent 30rem),
        #edf2fa;
    color: var(--auth-ink);
}

.auth-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: calc(100vh - 48px);
    margin: 24px auto;
    display: grid;
    grid-template-columns: minmax(300px, .8fr) minmax(520px, 1.2fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 30px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 24px 70px rgba(28, 43, 76, .15);
    backdrop-filter: blur(14px);
}

.auth-shell-login {
    grid-template-columns: minmax(320px, .95fr) minmax(420px, 1.05fr);
    max-width: 1000px;
}

.auth-visual {
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 6vw, 76px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(145deg, rgba(14, 32, 78, .98), rgba(50, 55, 147, .94)),
        #1d2b64;
    color: #fff;
}

.auth-visual::before,
.auth-visual::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .15);
}

.auth-visual::before {
    width: 330px;
    height: 330px;
    right: -155px;
    top: -110px;
}

.auth-visual::after {
    width: 210px;
    height: 210px;
    left: -105px;
    bottom: -85px;
}

.auth-brand-badge {
    width: fit-content;
    margin-bottom: 24px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
}

.auth-visual h1 {
    max-width: 520px;
    margin: 0 0 18px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -.045em;
}

.auth-visual p {
    max-width: 510px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 16px;
    line-height: 1.75;
}

.auth-feature-list {
    margin-top: 42px;
    display: grid;
    gap: 12px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
}

.auth-feature-item span {
    color: #aabfff;
    font-size: 12px;
    font-weight: 800;
}

.auth-feature-item strong {
    font-size: 14px;
}

.auth-login-orb {
    width: 190px;
    height: 190px;
    margin: 44px auto 0;
    border: 28px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    box-shadow:
        0 0 0 28px rgba(255, 255, 255, .035),
        inset 0 0 50px rgba(255, 255, 255, .05);
}

.auth-card {
    align-self: center;
    width: min(100%, 520px);
    padding: clamp(28px, 5vw, 60px);
    margin: 0 auto;
    box-sizing: border-box;
}

.auth-card-wide {
    width: min(100%, 720px);
}

.auth-card-heading {
    margin-bottom: 28px;
}

.auth-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--auth-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.auth-card-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.auth-card-heading p {
    margin: 0;
    color: var(--auth-muted);
    line-height: 1.6;
}

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

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.auth-field {
    min-width: 0;
}

.auth-field-full {
    grid-column: 1 / -1;
}

.auth-field label,
.auth-label-row label {
    display: block;
    margin-bottom: 8px;
    color: #2b354a;
    font-size: 13px;
    font-weight: 750;
}

.auth-field label em {
    color: #d92d20;
    font-style: normal;
}

.auth-field input,
.auth-field select {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: var(--auth-ink);
    font: inherit;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.auth-field input:focus,
.auth-field select:focus {
    border-color: #809fe8;
    box-shadow: 0 0 0 4px rgba(36, 89, 211, .10);
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.auth-label-row a,
.auth-switch-text a,
.auth-check a {
    color: var(--auth-primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-label-row a:hover,
.auth-switch-text a:hover,
.auth-check a:hover {
    text-decoration: underline;
}

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

.auth-password-wrap input {
    padding-right: 66px;
}

.auth-toggle-password {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: var(--auth-soft);
    color: #46516a;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.auth-strength {
    margin-top: 8px;
}

.auth-strength-track {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8ecf3;
}

.auth-strength-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #cfd5df;
    transition: width .25s ease, background .25s ease;
}

.auth-strength-bar[data-level="weak"] {
    background: #d92d20;
}

.auth-strength-bar[data-level="fair"] {
    background: #dc6803;
}

.auth-strength-bar[data-level="good"] {
    background: #1570ef;
}

.auth-strength-bar[data-level="strong"] {
    background: #079455;
}

.auth-strength small {
    display: block;
    margin-top: 6px;
    color: var(--auth-muted);
    font-size: 11px;
}

.auth-check {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: start;
    gap: 10px;
    color: #5a6579;
    font-size: 13px;
    line-height: 1.55;
    cursor: pointer;
}

.auth-check input {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--auth-primary);
}

.auth-primary-btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-accent));
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(36, 89, 211, .2);
    transition: transform .2s ease, box-shadow .2s ease;
}

.auth-primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(36, 89, 211, .26);
}

.auth-primary-btn span {
    font-size: 20px;
    line-height: 1;
}

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

.auth-alert {
    margin-bottom: 18px;
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.auth-alert-error {
    border: 1px solid #fecdca;
    background: var(--auth-danger-bg);
    color: var(--auth-danger);
}

.auth-alert-success {
    border: 1px solid #abefc6;
    background: var(--auth-success-bg);
    color: var(--auth-success);
}

.auth-otp-input {
    text-align: center;
    letter-spacing: .48em;
    font-size: 24px !important;
    font-weight: 800 !important;
}

.auth-demo-dashboard {
    width: min(720px, calc(100% - 32px));
    margin: 80px auto;
    padding: 40px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(28, 43, 76, .12);
    box-sizing: border-box;
}

.auth-demo-dashboard h1 {
    margin-top: 0;
}

.auth-inline-btn {
    width: auto;
    margin-top: 16px;
    padding: 0 24px;
}

@media (max-width: 880px) {
    .auth-shell,
    .auth-shell-login {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .auth-visual {
        min-height: 260px;
        padding: 34px 28px;
    }

    .auth-feature-list,
    .auth-login-orb {
        display: none;
    }

    .auth-visual h1 {
        font-size: clamp(34px, 10vw, 50px);
    }

    .auth-card,
    .auth-card-wide {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .auth-shell,
    .auth-shell-login {
        width: min(100% - 18px, 1180px);
        margin: 9px auto;
        border-radius: 22px;
    }

    .auth-visual {
        min-height: 210px;
        padding: 28px 22px;
    }

    .auth-card {
        padding: 28px 20px 32px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
    }

    .auth-field-full {
        grid-column: auto;
    }

    .auth-label-row {
        align-items: flex-start;
    }
}
