.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.login-card {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px !important;
    animation: fadeInUp 0.6s ease;
}

.login-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.login-logo {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
}

.login-card .form-control {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.login-card .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.login-card .input-group-text {
    border-radius: 12px 0 0 12px;
    border: 2px solid #e0e0e0;
    background: white;
}

.text-purple {
    color: #667eea;
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    transition: all 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== Splash de carga al iniciar sesión ===== */
body.login-loading {
    overflow: hidden;
}

.login-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: rgba(46, 36, 89, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-splash.show {
    opacity: 1;
    visibility: visible;
}

.login-splash-box {
    width: 100%;
    max-width: 320px;
    text-align: center;
    color: #fff;
    transform: translateY(14px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-splash.show .login-splash-box {
    transform: translateY(0) scale(1);
}

.login-splash-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 18px;
}

.login-splash-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    transform: translate(-50%, -50%);
    animation: splashPulse 1.6s ease-in-out infinite;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.login-splash-ring {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
    animation: splashRotate 2.4s linear infinite;
}

.login-splash-ring-bg,
.login-splash-ring-fg {
    fill: none;
    stroke-width: 7;
    stroke-linecap: round;
}

.login-splash-ring-bg {
    stroke: rgba(255, 255, 255, 0.22);
}

.login-splash-ring-fg {
    stroke: #fff;
    stroke-dasharray: 327;
    stroke-dashoffset: 327;
    animation: splashSpin 1.1s linear infinite;
}

.login-splash-title {
    font-size: 20px;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.login-splash-msg {
    min-height: 20px;
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    animation: splashFade 0.4s ease;
}

.login-splash-bar {
    position: relative;
    height: 5px;
    margin-top: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.login-splash-bar span {
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), #ffffff, rgba(255, 255, 255, 0.15));
    animation: splashBar 1.2s ease-in-out infinite;
}

@keyframes splashSpin {
    0% { stroke-dashoffset: 327; }
    50% { stroke-dashoffset: 82; }
    100% { stroke-dashoffset: 327; }
}

@keyframes splashRotate {
    from { transform: rotate(-90deg); }
    to { transform: rotate(270deg); }
}

@keyframes splashBar {
    0% { left: -40%; }
    100% { left: 100%; }
}

@keyframes splashPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes splashFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
