/* ============================================
   LOGIN - PÁGINA DE ACCESO
   ============================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-box {
    background: white;
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.logo {
    max-width: 200px;
    margin: 0 auto 1.5rem;
    display: block;
}

h1 {
    font-size: 1.5rem;
    color: #2d3748;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.subtitulo {
    text-align: center;
    color: #718096;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

/* Mensajes */
.mensaje {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    border-left: 4px solid transparent;
}

.mensaje.error {
    background: #fff5f5;
    border-left-color: #f56565;
    color: #742a2a;
}

.mensaje.success {
    background: #f0fff4;
    border-left-color: #48bb78;
    color: #22543d;
}

.mensaje.warning {
    background: #fffff0;
    border-left-color: #ecc94b;
    color: #744210;
}

.mensaje.info {
    background: #ebf8ff;
    border-left-color: #4299e1;
    color: #2a4365;
}

/* Formulario */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input.error {
    border-color: #f56565;
}

/* Botón */
.btn-login {
    width: 100%;
    padding: 0.875rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 1.5rem;
}

.btn-login:hover {
    background: #5a67d8;
}

.btn-login:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Enlaces adicionales */
.login-links {
    text-align: center;
    font-size: 0.875rem;
    color: #718096;
}

.login-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.login-links a:hover {
    text-decoration: underline;
}

.separador {
    margin: 1rem 0;
    text-align: center;
    position: relative;
}

.separador::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.separador span {
    background: white;
    padding: 0 0.5rem;
    color: #718096;
    font-size: 0.75rem;
    position: relative;
    z-index: 2;
}

/* Recordar contraseña */
.recordar {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.recordar input {
    margin-right: 0.5rem;
}

.recordar label {
    font-size: 0.875rem;
    color: #4a5568;
}

/* Responsive */
@media (max-width: 480px) {
    .login-box {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.25rem;
    }
}