.login-body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #0B1C3F 0%, #113A7D 50%, #0B1C3F 100%);
    color: #F5F8FC;
}

.login-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(900px at 30% 30%, rgba(44,199,209,0.18), transparent 60%),
        radial-gradient(1200px at 70% 40%, rgba(17,58,125,0.28), transparent 65%);
    opacity: 0.9;
    pointer-events: none;
}

.login-main {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 16px;
    position: relative;
    overflow: hidden;
}

.auth {
    width: min(520px, 100%);
    position: relative;
}

.auth-halo {
    position: absolute;
    inset: 0;
    margin: auto;
    width: clamp(360px, 70vw, 520px);
    height: clamp(360px, 70vw, 520px);
    border-radius: 24px;
    background: radial-gradient(circle, rgba(44,199,209,0.28), rgba(17,58,125,0.14));
    filter: blur(22px);
    opacity: 0.9;
    animation: pulse 7s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.auth-card {
    position: relative;
    padding: 32px 28px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    backdrop-filter: blur(12px);
    display: grid;
    gap: 18px;
    justify-items: center;
    z-index: 1;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 300ms ease, transform 300ms ease;
}

.no-js .auth-card {
    opacity: 1;
    transform: translateY(0);
}

.auth-ready .auth-card {
    opacity: 1;
    transform: translateY(0);
}

.auth-logo {
    height: clamp(48px, 14vw, 90px);
    width: auto;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,0.35));
}

.auth-form {
    width: 100%;
    display: grid;
    gap: 12px;
}

.auth-form label {
    font-weight: 600;
    color: #EAF3FF;
}

.auth-form input {
    background: rgba(255,255,255,0.92);
    color: #0B1C3F;
}

.auth-form input::placeholder {
    color: #5A6A85;
}

.btn-full {
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 24px rgba(17,58,125,0.35);
}

.alert {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.alert-error {
    background: rgba(217,83,79,0.16);
    color: #F5C0BC;
    border: 1px solid rgba(217,83,79,0.32);
}

.alert-success {
    background: rgba(19,167,142,0.16);
    color: #C3F1E3;
    border: 1px solid rgba(19,167,142,0.32);
}

.login-splash {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    z-index: 2;
    pointer-events: none;
    transition: opacity 450ms ease, transform 450ms ease;
}

.login-splash.fade-out {
    opacity: 0;
    transform: scale(0.94);
}

.splash-halo {
    position: absolute;
    width: clamp(320px, 45vw, 480px);
    height: clamp(320px, 45vw, 480px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(44,199,209,0.36), rgba(17,58,125,0.18));
    filter: blur(24px);
    opacity: 0.9;
    animation: pulse 6s ease-in-out infinite;
}

.splash-logo {
    height: clamp(140px, 26vw, 240px);
    width: auto;
    filter: drop-shadow(0 18px 32px rgba(0,0,0,0.35));
    animation: float 7s ease-in-out infinite;
}

.splash-loader {
    display: inline-flex;
    gap: 4px;
}

.splash-loader span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    opacity: 0.4;
    animation: pulseDot 1.1s ease-in-out infinite;
}

.splash-loader span:nth-child(2) {
    animation-delay: 0.15s;
}

.splash-loader span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.06); opacity: 0.75; }
}

@keyframes pulseDot {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

@media (max-width: 640px) {
    .auth-card {
        padding: 26px 22px;
    }
}
