
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-image: url('../images/fondo.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: -1;
}
.container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 400px;
}
h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}
form {
    display: flex;
    flex-direction: column;
}
label {
    text-align: left;
    color: #555;
    margin-bottom: 5px;
    font-weight: bold;
}
input {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
button {
    background-color: #2563eb;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s ease;
}
button:hover {
    background-color: #1d4ed8;
}
.error {
    color: red;
    margin-top: 10px;
    font-size: 14px;
}
@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 15px;
    }
    h1 {
        font-size: 20px;
    }
    button {
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 10px;
    }
    h1 {
        font-size: 18px;
    }
    label, input, button {
        font-size: 14px;
        padding: 8px;
    }
}

/* --- ESTILOS MIGRACIN LOGIN.PHP --- */
.login-logo-container { margin-bottom: 15px; }
.login-logo-img { max-width: 60%; height: auto; margin-bottom: 10px; }
.login-brand-footer { margin: 0; font-size: 10px; color: #666; }
.login-hr { border: none; border-top: 2px solid #004085; margin: 15px 0; }

/* --- ALERTAS Y MENSAJES PREMIUM DE MANTENIMIENTO --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.maint-login-warning {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    color: #991b1b;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    font-size: 0.88rem;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.05);
    animation: fadeIn 0.4s ease-out;
}

.maint-login-warning i {
    font-size: 1.3rem;
    margin-top: 2px;
    color: #dc2626;
}

.maint-login-warning strong {
    display: block;
    font-weight: 700;
    margin-bottom: 3px;
    color: #dc2626;
}

.login-error-alert {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 20px;
    color: #991b1b;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    font-size: 0.88rem;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.05);
    animation: shake 0.5s ease-in-out;
}

.login-error-alert.maint-block {
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
}

.login-error-alert i {
    font-size: 1.25rem;
    color: #dc2626;
}

.login-error-alert strong {
    display: block;
    font-weight: 700;
    margin-bottom: 3px;
    color: #dc2626;
}

.login-info-alert {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 20px;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    font-size: 0.88rem;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.05);
    animation: fadeIn 0.4s ease-out;
}

.login-info-alert i {
    font-size: 1.25rem;
    color: #3b82f6;
}

/* --- ESTILOS DE RECUPERACIÓN DE CONTRASEÑA --- */
.login-forgot-container {
    margin-top: 15px;
    text-align: right;
}

.login-forgot-link {
    color: #2563eb;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.login-forgot-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.login-back-container {
    margin-top: 20px;
    text-align: center;
}

.login-back-link {
    color: #6b7280;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.login-back-link:hover {
    color: #374151;
}

.login-back-link i {
    font-size: 1.1rem;
}

.login-helper-text {
    color: #4b5563;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: left;
}

.login-success-alert {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 20px;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    font-size: 0.88rem;
    box-shadow: 0 4px 6px -1px rgba(22, 101, 52, 0.05);
    animation: fadeIn 0.4s ease-out;
}

.login-success-alert i {
    font-size: 1.25rem;
    color: #15803d;
}

