.login-page {
    --primary: #0b4f8a;
    --primary-dark: #073b66;
    --primary-soft: rgba(11, 79, 138, .10);
    --border: #e5e7eb;
    --muted: #64748b;
    --text: #0f172a;
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
}

.login-shell {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1.3rem;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .10);
}

.login-brand {
    height: 100%;
    min-height: 520px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.24), transparent 28%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,.16), transparent 30%),
        linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    width: fit-content;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.24);
    color: rgba(255,255,255,.94);
    font-size: .8rem;
    font-weight: 800;
}

.brand-logo {
    display: block;
    width: auto;
    height: 150px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .18));
}

.login-brand h1 {
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.1;
    margin: 0;
}

.login-brand p {
    color: rgba(255,255,255,.84);
    margin: .7rem 0 0;
    font-size: .95rem;
    line-height: 1.6;
}

.brand-footer {
    color: rgba(255,255,255,.72);
    font-size: .82rem;
    font-weight: 600;
}

.login-form-area {
    padding: 2.25rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.login-form-card {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
}

.mobile-brand {
    display: none;
    text-align: center;
    margin-bottom: 1.5rem;
}

.mobile-brand-logo {
    display: block;
    width: auto;
    height: 112px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 6px 12px rgba(15, 23, 42, .12));
}

.login-title {
    color: var(--text);
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -.035em;
    margin: 0;
}

.login-subtitle {
    color: var(--muted);
    font-size: .92rem;
    margin: .35rem 0 1.5rem;
}

.form-label {
    color: #334155;
    font-weight: 800;
    font-size: .84rem;
    margin-bottom: .35rem;
}

.form-control {
    border-radius: .8rem;
    border-color: #dbe3ef;
    padding: .72rem .85rem;
    font-size: .92rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(11, 79, 138, .12);
}

.input-help {
    color: var(--muted);
    font-size: .78rem;
    margin-top: .35rem;
}

.password-wrap {
    position: relative;
}

.password-wrap .form-control {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: .45rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    font-size: .8rem;
    padding: .35rem .45rem;
}

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

.btn-login {
    border-radius: .85rem;
    padding: .72rem 1rem;
    font-weight: 900;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 10px 18px rgba(11, 79, 138, .18);
}

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

.alert-modern {
    border: 0;
    border-radius: .9rem;
    padding: .85rem 1rem;
    font-size: .88rem;
    font-weight: 700;
}

.alert-danger.alert-modern {
    background: #fee2e2;
    color: #991b1b;
}

.alert-success.alert-modern {
    background: #dcfce7;
    color: #166534;
}

.login-footer-note {
    margin-top: 1.2rem;
    color: var(--muted);
    text-align: center;
    font-size: .8rem;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .login-shell {
        max-width: 520px;
    }

    .login-brand {
        display: none;
    }

    .mobile-brand {
        display: block;
    }

    .login-form-area {
        padding: 2rem;
    }
}

@media (max-width: 575.98px) {
    .login-page {
        min-height: calc(100vh - 70px);
        padding: 1rem 0;
    }

    .login-shell {
        border-radius: 1rem;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    }

    .login-form-area {
        padding: 1.25rem;
    }

    .login-title {
        font-size: 1.35rem;
    }

    .login-subtitle {
        font-size: .86rem;
    }
}
