:root {
    --primary: #0B1F3A;
    --secondary: #2563EB;
    --white: #FFFFFF;
    --light: #F5F7FA;
    --gold: #D4AF37;
    --text-muted: #6B7280;
    --radius: 22px;
    --shadow: 0 20px 50px rgba(0,0,0,.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary);
    color: var(--white);
    overflow-x: hidden;
}

.login-page {
    display: flex;
    min-height: 100vh;
}

.login-page__banner {
    position: relative;
    flex: 0 0 60%;
    background: linear-gradient(135deg, #0B1F3A 0%, #15294a 50%, #0B1F3A 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 3rem;
}

.login-page__banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: lp-float 8s ease-in-out infinite;
}

.login-page__banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: lp-float 10s ease-in-out infinite reverse;
}

.login-page__banner-bg {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.login-page__banner-bg::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: lp-float 12s ease-in-out infinite;
}

.login-page__banner-bg::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 15%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: lp-float 14s ease-in-out infinite reverse;
}

.login-page__banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: lp-fade-in-up .8s ease-out;
}

.login-page__banner-logo {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--gold), #f0d060);
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(212,175,55,.35);
    animation: lp-pulse 2.5s infinite;
}

.login-page__banner-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: .5rem;
    background: linear-gradient(135deg, #fff, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-page__banner-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.login-page__banner-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: center;
}

.login-page__banner-feature {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1rem;
    color: rgba(255,255,255,.85);
}

.login-page__banner-feature i {
    color: var(--gold);
    font-size: 1.2rem;
}

.login-page__banner-footer {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    font-size: .8rem;
    color: rgba(255,255,255,.5);
}

.login-page__form {
    flex: 0 0 40%;
    background: #F7F9FC;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: var(--radius);
    padding: 45px;
    box-shadow: var(--shadow);
    animation: lp-fade-in-up .8s ease-out;
}

.login-card__header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-card__logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), #15294a);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(11,31,58,.35);
}

.login-card__title {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: .25rem;
}

.login-card__subtitle {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 0;
}

.login-card__alerts {
    margin-bottom: 1rem;
}

.login-card__alert {
    border-radius: 12px;
    font-size: .9rem;
    margin-bottom: .75rem;
}

.login-card__form {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.login-card__form .form-label {
    font-weight: 600;
    color: var(--primary);
    font-size: .82rem;
    margin-bottom: .35rem;
}

.login-card__form .form-control {
    height: 52px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 14px;
    font-size: .95rem;
}

.login-card__form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(11,31,58,.06);
    background: #fff;
    outline: none;
}

.login-card__toggle-password {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    color: var(--text-muted);
    border-radius: 0 14px 14px 0;
    padding-left: 1rem;
    padding-right: 1rem;
    cursor: pointer;
}

.login-card__submit {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 14px;
    height: 56px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(11,31,58,.25);
    transition: all .2s;
    font-size: 1rem;
    margin-top: .5rem;
}

.login-card__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(11,31,58,.35);
    color: #fff;
}

.login-card__link {
    font-size: .85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.login-card__link:hover {
    color: var(--secondary);
}

.login-card__footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.login-card__footer-row {
    margin-bottom: .15rem;
}

.login-card__status {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: .5rem;
    font-size: .8rem;
    color: #16A34A;
}

.login-card__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16A34A;
    box-shadow: 0 0 0 0 rgba(22,163,74,.7);
    animation: lp-pulse-dot 2s infinite;
}

@keyframes lp-fade-in-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lp-float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes lp-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

@keyframes lp-pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(22,163,74,.7); }
    70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
    100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}

@media (max-width: 992px) {
    .login-page {
        flex-direction: column;
    }
    .login-page__banner {
        display: none;
    }
    .login-page__form {
        flex: 0 0 100%;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 22px;
    }
    .login-page__banner-title {
        font-size: 1.6rem;
    }
    .login-card__title {
        font-size: 1.15rem;
    }
}
