.login-page {
    min-height: 100vh;
    margin: 0;
    font-family: "Nunito", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(43, 126, 191, 0.18), transparent 30%),
        linear-gradient(160deg, #f6fbff, #eef6fd 52%, #e7f1fb);
    color: var(--ink);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.login-screen {
    width: min(1120px, 100%);
    min-height: min(720px, calc(100vh - 56px));
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 0.92fr);
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 58, 95, 0.16);
}

.login-brand-side {
    position: relative;
    padding: clamp(28px, 4vw, 42px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(145deg, rgba(14, 56, 94, 0.92), rgba(29, 95, 146, 0.86)),
        url("/img/banner.webp") center / cover no-repeat;
    color: #ffffff;
}

.login-brand-side::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 28, 46, 0.12), rgba(8, 28, 46, 0.36));
    pointer-events: none;
}

.login-brand,
.login-brand-content {
    position: relative;
    z-index: 1;
}

.login-brand img {
    width: 170px;
    height: auto;
    display: block;
}

.login-kicker {
    color: rgba(255, 255, 255, 0.86);
}

.login-brand-content h1 {
    margin: 8px 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    text-wrap: balance;
}

.login-brand-content p {
    margin: 0;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1.02rem;
}

.login-brand-points {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.login-brand-points li {
    position: relative;
    padding-left: 26px;
    color: rgba(255, 255, 255, 0.94);
    font-weight: 700;
    line-height: 1.5;
}

.login-brand-points li::before {
    content: "•";
    position: absolute;
    left: 8px;
    top: 0;
    color: #ffd194;
    font-size: 1.1rem;
}

.login-form-side {
    display: grid;
    place-items: center;
    padding: clamp(24px, 4vw, 40px);
    background: linear-gradient(160deg, #ffffff, rgba(244, 249, 255, 0.92));
}

.login-card {
    width: min(420px, 100%);
}

.login-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    color: var(--brand-700);
    text-decoration: none;
    font-weight: 800;
}

.login-back-link:hover,
.login-back-link:focus-visible {
    color: var(--brand-900);
    outline: none;
}

.login-card-header {
    margin-bottom: 18px;
}

.login-card-logo {
    width: 132px;
    height: auto;
    display: block;
    margin-bottom: 14px;
}

.login-card-header h2 {
    margin: 0 0 8px;
    color: var(--brand-900);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    line-height: 1.15;
}

.login-card-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.login-alert {
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
    line-height: 1.5;
    border: 1px solid transparent;
}

.login-alert-error {
    background: #fff1f2;
    color: #b42318;
    border-color: #fecdd3;
}

.login-alert-success {
    background: #ecfdf3;
    color: #027a48;
    border-color: #abefc6;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-field {
    display: grid;
    gap: 8px;
}

.login-field label {
    color: var(--brand-900);
    font-weight: 800;
    font-size: 0.95rem;
}

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

.login-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: var(--brand-700);
    pointer-events: none;
}

.login-input-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-input-wrap input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 48px 14px 44px;
    font: inherit;
    color: var(--ink);
    background: #ffffff;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.login-input-wrap input:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(43, 126, 191, 0.12);
    outline: none;
}

.login-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--brand-700);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
    background: rgba(43, 126, 191, 0.1);
    color: var(--brand-900);
    outline: none;
}

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

.login-submit-btn {
    margin-top: 4px;
    min-height: 54px;
    border: none;
    border-radius: 16px;
    font: inherit;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(130deg, var(--accent), var(--accent-strong));
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 180ms ease, filter 180ms ease;
}

.login-submit-btn:hover,
.login-submit-btn:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.04);
    outline: none;
}

.login-support-links {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.login-support-links a {
    color: var(--brand-700);
    text-decoration: none;
    font-weight: 800;
    text-align: center;
}

.login-support-links a:hover,
.login-support-links a:focus-visible {
    color: var(--brand-900);
    outline: none;
}

@media (max-width: 960px) {
    .login-screen {
        grid-template-columns: 1fr;
    }

    .login-brand-side {
        min-height: 280px;
    }
}

@media (max-width: 620px) {
    .login-shell {
        padding: 14px;
    }

    .login-screen {
        min-height: auto;
        border-radius: 20px;
    }

    .login-brand-side,
    .login-form-side {
        padding: 22px;
    }

    .login-brand img,
    .login-card-logo {
        width: 130px;
    }

    .login-brand-content h1 {
        font-size: clamp(1.7rem, 8vw, 2.3rem);
    }
}