:root {
    --auth-bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #eef3fb;
    --text: #0f172a;
    --muted: #5b6476;
    --primary: #163c86;
    --primary-strong: #102d63;
    --accent: #1f7ae0;
    --success: #15b87a;
    --danger: #d14343;
    --border: #dce3ef;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
}

* {
    box-sizing: border-box;
}

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

body.auth-body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--auth-bg);
    overflow-x: hidden;
}

.auth-scene {
    min-height: 100vh;
    /*position: relative;*/
    /*padding: 24px 12px;*/
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-scene::before,
.auth-scene::after {
    content: "";
    position: fixed;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: #d9e2f1;
    opacity: 0.9;
    pointer-events: none;
    z-index: -1;
}

.auth-scene::before {
    top: -120px;
    left: -120px;
}

.auth-scene::after {
    right: -110px;
    bottom: -110px;
}

/*.auth-shell {*/
/*    position: relative;*/
/*    z-index: 1;*/
/*    max-width: 1120px;*/
/*    margin: 0 auto;*/
/*}*/

.auth-card {
    background: var(--surface);
    border: 1px solid rgba(16, 45, 99, 0.08);
    border-radius: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.auth-brand-panel {
    background: #152d61;
    color: #fff;
    min-height: 100%;
    padding: 36px;
    position: relative;
}

/*.auth-brand-panel::after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    inset: auto -70px -70px auto;*/
/*    width: 200px;*/
/*    height: 200px;*/
/*    border-radius: 50%;*/
/*    background: rgba(255, 255, 255, 0.10);*/
/*}*/

.brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-logo {
    width: 104px;
    height: auto;
    display: block;
    margin-bottom: 18px;
}

.auth-brand-panel h1 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.12;
    margin: 14px 0 12px;
    font-weight: 700;
}

.auth-brand-panel p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 1rem;
}

.feature-list {
    margin-top: 28px;
    display: grid;
    gap: 14px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.feature-item i {
    font-size: 1.15rem;
    margin-top: 2px;
    color: #8ad7ff;
}

.feature-item strong {
    display: block;
    font-size: 0.96rem;
    margin-bottom: 3px;
}

.feature-item span {
    display: block;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.72);
}

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

.auth-form-panel .section-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-form-panel .section-subtitle {
    color: var(--muted);
    font-size: 0.98rem;
    margin-bottom: 28px;
}

.form-label-soft {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 7px;
    font-weight: 600;
}

.input-group-soft .form-control,
.input-group-soft .btn {
    height: 54px;
    border-radius: 16px;
}

.input-group-soft .form-control {
    border: 1px solid var(--border);
    padding-left: 16px;
    padding-right: 16px;
    font-size: 1rem;
    box-shadow: none;
}

.input-group-soft .form-control:focus {
    border-color: rgba(31, 122, 224, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(31, 122, 224, 0.10);
}

.field-addon {
    background: #f3f6fb;
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 16px;
}

.login-btn {
    height: 56px;
    border-radius: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 14px 24px rgba(16, 45, 99, 0.18);
}

.login-btn:hover,
.login-btn:focus {
    background: var(--primary-strong);
    border-color: var(--primary-strong);
}

.password-toggle {
    min-width: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    border-left: 0;
}

.password-toggle:hover {
    color: var(--primary);
}

.login-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 14px;
    margin-bottom: 22px;
}

.login-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.login-links a:hover {
    text-decoration: underline;
}

.helper-note {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 18px;
}

.modal-content.clean-modal {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
}

.status-head {
    padding: 22px 24px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--success);
}

.status-head.is-error {
    background: var(--danger);
}

.status-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    font-size: 1.5rem;
}

.status-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    opacity: 0.9;
    margin-bottom: 5px;
    font-weight: 700;
}

.status-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
}

.status-body {
    padding: 24px;
    background: #f8fafc;
}

.status-body p {
    margin-bottom: 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

.status-body .btn {
    border-radius: 14px;
    font-weight: 700;
}

.step-box {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    background: #fff;
}

.step-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.page {
    display: none;
}

.page.slide-page {
    display: block;
}

.message {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translate(-50%, -140%);
    z-index: 1080;
    min-width: 280px;
    max-width: calc(100vw - 24px);
    padding: 12px 18px;
    border-radius: 999px;
    color: #fff;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
    transition: transform 0.35s ease;
}

.message.show {
    transform: translate(-50%, 0);
}

@media (max-width: 991.98px) {
    .auth-brand-panel,
    .auth-form-panel {
        padding: 28px;
    }

    .auth-brand-panel {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .auth-scene {
        padding: 12px;
    }

    .auth-scene::before,
    .auth-scene::after {
        width: 180px;
        height: 180px;
        opacity: 0.65;
    }

    .auth-scene::before {
        top: -90px;
        left: -90px;
    }

    .auth-scene::after {
        right: -85px;
        bottom: -85px;
    }

    .auth-card {
        border-radius: 22px;
    }

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

    .auth-form-panel .section-title {
        font-size: 1.55rem;
    }

    .login-links {
        justify-content: flex-start;
    }
}
