:root {
    --auth-navy: #10233f;
    --auth-navy-deep: #0b1b33;
    --auth-gold: #c9a55a;
    --auth-ink: #122039;
    --auth-muted: #6d7787;
    --auth-line: #dce1e8;
}

body.auth-page {
    min-width: 320px;
    margin: 0;
    background: #edf1f6;
    color: var(--auth-ink);
}

.auth-shell.login-shell {
    min-height: 100svh;
    padding: clamp(16px, 3vw, 38px);
    background:
        radial-gradient(circle at 8% 12%, rgba(42, 78, 120, .22), transparent 32%),
        linear-gradient(145deg, #e9eef5, #f7f8fa);
}

.auth-card.login-card {
    display: grid;
    grid-template-columns: minmax(340px, .92fr) minmax(430px, 1.08fr);
    width: min(1080px, 100%);
    min-height: min(680px, calc(100svh - 76px));
    margin: auto;
    overflow: hidden;
    border: 1px solid rgba(16, 35, 63, .08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(16, 35, 63, .16);
}

.auth-card--register.login-card {
    min-height: min(720px, calc(100svh - 32px));
}

.auth-brand-panel.login-brand {
    display: flex;
    align-items: center;
    padding: clamp(38px, 6vw, 68px);
    background:
        radial-gradient(circle at 10% 12%, rgba(255, 255, 255, .08), transparent 26%),
        linear-gradient(155deg, var(--auth-navy-deep), #1a345c);
    color: #fff;
}

.auth-brand-content {
    width: 100%;
}

.auth-brand-panel.login-brand h1 {
    display: inline-flex;
    align-items: baseline;
    width: max-content;
    max-width: 100%;
    margin: 0 0 14px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .17);
    font-size: clamp(1.75rem, 3.1vw, 2.2rem);
    line-height: 1;
}

.auth-brand-panel.login-brand > .auth-brand-content > p {
    margin: 0;
    color: #c8d4e4;
    font-size: .98rem;
    line-height: 1.6;
}

.auth-feature-list {
    display: grid;
    gap: 12px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.auth-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px 15px;
    border-left: 3px solid var(--auth-gold);
    border-radius: 10px;
    background: rgba(255, 255, 255, .075);
    color: #f5f8fc;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.4;
}

.auth-feature-check {
    display: grid;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: rgba(201, 165, 90, .16);
    color: #f0cc78;
    font-size: .78rem;
    font-weight: 800;
}

.auth-form-panel.login-form {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: clamp(38px, 5vw, 62px);
    background: #fff;
}

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

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

.auth-form-heading h2,
.auth-form-panel.login-form h2 {
    margin: 0;
    color: var(--auth-ink);
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.15;
}

.auth-form-heading p {
    margin: 9px 0 0;
    color: var(--auth-muted);
    font-size: .94rem;
    line-height: 1.55;
}

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

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

.auth-page--register .auth-shell.login-shell {
    padding-block: 16px;
}

.auth-page--register .auth-form-panel.login-form {
    padding-block: 30px;
}

.auth-page--register .auth-form-heading {
    margin-bottom: 20px;
}

.auth-page--register .auth-field {
    margin-bottom: 12px;
}

.auth-page--register .auth-field .form-control,
.auth-page--register .auth-field .form-select {
    min-height: 46px;
    padding-block: 10px;
}

.auth-field label,
.auth-form-panel .form-label {
    display: block;
    margin: 0 0 7px;
    color: #26344b;
    font-size: .84rem;
    font-weight: 650;
}

.auth-field .form-control,
.auth-field .form-select,
.auth-form-panel .form-control,
.auth-form-panel .form-select {
    width: 100%;
    min-height: 50px;
    margin: 0 !important;
    padding: 12px 14px;
    border: 1px solid var(--auth-line);
    border-radius: 9px;
    background-color: #fff;
    color: var(--auth-ink);
    font-size: .94rem;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-field .form-control::placeholder {
    color: #9aa3af;
}

.auth-field .form-control:focus,
.auth-field .form-select:focus,
.auth-form-panel .form-control:focus,
.auth-form-panel .form-select:focus {
    border-color: var(--auth-gold);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(201, 165, 90, .14);
}

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

.auth-password-field .form-control {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    transform: translateY(-50%);
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6f7885;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: #f3f5f7;
    color: var(--auth-navy);
    outline: 0;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.password-toggle .eye-off-line {
    opacity: 1;
}

.password-toggle.is-visible .eye-off-line {
    opacity: 0;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 2px 0 22px;
    color: var(--auth-muted);
    font-size: .83rem;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}

.auth-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-navy);
}

.auth-link,
.auth-form-panel a {
    color: #a7802f;
    font-weight: 650;
    text-decoration: none;
}

.auth-link:hover,
.auth-form-panel a:hover {
    color: var(--auth-navy);
    text-decoration: underline;
}

.auth-submit.btn {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--auth-navy);
    border-radius: 9px;
    background: var(--auth-navy);
    color: #fff;
    font-size: .94rem;
    font-weight: 750;
    box-shadow: 0 10px 24px rgba(16, 35, 63, .14);
}

.auth-submit.btn:hover,
.auth-submit.btn:focus-visible {
    border-color: var(--auth-gold);
    background: var(--auth-gold);
    color: var(--auth-navy);
}

.auth-bottom-link {
    margin: 18px 0 0;
    color: var(--auth-muted);
    text-align: center;
    font-size: .84rem;
    line-height: 1.55;
}

.auth-bottom-link + .auth-bottom-link {
    margin-top: 10px;
}

.auth-back-home {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.auth-plan {
    margin: -8px 0 20px;
    padding: 10px 12px;
    border: 1px solid #ead9ad;
    border-radius: 9px;
    background: #fff9e9;
    color: #6f541a;
    font-size: .86rem;
}

.auth-form-panel .alert {
    border-radius: 9px;
    font-size: .88rem;
}

@media (max-width: 860px) {
    .auth-shell.login-shell {
        padding: 0;
    }

    .auth-card.login-card,
    .auth-card--register.login-card {
        grid-template-columns: 1fr;
        width: 100%;
        min-height: 100svh;
        border: 0;
        border-radius: 0;
    }

    .auth-brand-panel.login-brand {
        display: flex;
        padding: 30px clamp(22px, 7vw, 48px);
    }

    .auth-feature-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 22px;
    }

    .auth-feature-list li {
        align-items: flex-start;
        min-height: 78px;
        padding: 10px;
        font-size: .75rem;
    }

    .auth-feature-check {
        display: none;
    }

    .auth-form-panel.login-form {
        align-items: flex-start;
        padding: 42px clamp(22px, 7vw, 48px) 50px;
    }
}

@media (max-width: 560px) {
    .auth-brand-panel.login-brand {
        padding-block: 24px;
    }

    .auth-brand-panel.login-brand h1 {
        margin-bottom: 10px;
        font-size: 1.7rem;
    }

    .auth-feature-list {
        display: none;
    }

    .auth-form-panel.login-form {
        padding: 34px 20px 44px;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .auth-field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
