@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap');

/* ============================================
   LOGIN - MISMOS COLORES DEL LAYOUT (AZUL MÁS CLARO)
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url('../img/fondo.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 0;
}

.login-outer {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    z-index: 2;
}

.login-box {
    background: rgba(15, 42, 74, 0.94);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 160, 61, 0.25);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-width: 440px;
    width: 100%;
    transition: all 0.3s ease;
}

.login-box:hover {
    border-color: rgba(201, 160, 61, 0.5);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(201, 160, 61, 0.2);
    transform: translateY(-2px);
}

.login-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #c9a03d, #a67c1e);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(201, 160, 61, 0.25);
}

.login-logo i {
    font-size: 2rem;
    color: #0f2a4a;
}

.login-box h2 {
    color: #f1f5f9;
    font-weight: 700;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
}

.login-subtitle {
    color: #94a3b8;
    font-size: 0.75rem;
    text-align: center;
    margin-top: 0.5rem;
}

.form-label {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    display: block;
}

.form-label i {
    color: #c9a03d;
    margin-right: 0.5rem;
}

.form-control {
    background-color: rgba(10, 30, 56, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    width: 100%;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: rgba(10, 30, 56, 1);
    border-color: #c9a03d;
    box-shadow: 0 0 0 3px rgba(201, 160, 61, 0.3);
    color: #f1f5f9;
    outline: none;
}

.form-control::placeholder {
    color: #94a3b8;
    font-size: 0.75rem;
}

.btn-login {
    background: linear-gradient(135deg, #c9a03d, #a67c1e);
    border: none;
    font-weight: 600;
    padding: 0.75rem;
    transition: all 0.3s ease;
    width: 100%;
    color: #0f2a4a;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-top: 0.5rem;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-login {
    position: relative;
    overflow: hidden;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    background: linear-gradient(135deg, #e2b84d, #c9a03d);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 160, 61, 0.3);
    color: #0f2a4a;
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.copyright {
    color: #94a3b8;
    font-size: 0.6rem;
    text-align: center;
    display: block;
    margin-top: 1rem;
}

/* Alertas */
.alert {
    border-radius: 0.75rem;
    border: none;
    padding: 0.875rem 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    color: white;
}

.alert-danger ul {
    color: white;
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.alert .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.7;
    float: right;
    background: transparent;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.alert .btn-close:hover {
    opacity: 1;
}

/* Spinner */
.spinner-border {
    display: inline-block;
    width: 0.9rem;
    height: 0.9rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner 0.75s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 576px) {
    .login-box {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 1.25rem;
    }
    
    .login-logo {
        width: 55px;
        height: 55px;
    }
    
    .login-logo i {
        font-size: 1.5rem;
    }
    
    .login-box h2 {
        font-size: 1.5rem;
    }
    
    .form-control {
        padding: 0.6rem 0.875rem;
    }
    
    .btn-login {
        padding: 0.6rem;
    }
}