/* ============================================
   BASE - TOMADO DEL CSS DE REFERENCIA
   ============================================ */

/* Estilos base heredados del CSS de conciliación */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f5f7fb;
    color: #222;
    margin: 0;
    padding: 0;
}

/* ============================================
   TARJETA DE LOGIN
   ============================================ */

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 2rem 2rem 2.2rem;
    border: 1px solid #e8ecf0;
}

.card h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a3a5c;
    letter-spacing: -0.3px;
    margin-bottom: 1.2rem;
    text-align: center;
}

/* ============================================
   MENSAJES
   ============================================ */

.messages {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem 0;
}

.messages li {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 6px;
}

.messages li.error {
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f5c2c0;
}

.messages li.success {
    background: #eaf7ec;
    color: #1e7d32;
    border: 1px solid #c3e6c9;
}

.messages li.warning {
    background: #fff4e5;
    color: #b26500;
    border: 1px solid #ffdec2;
}

.messages li.info {
    background: #e6f0fa;
    color: #0a4b7a;
    border: 1px solid #b8d4f0;
}

/* ============================================
   FORMULARIO
   ============================================ */

form {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

form label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-top: 0.6rem;
    margin-bottom: 2px;
}

form label:first-of-type {
    margin-top: 0;
}

form input[type="text"],
form input[type="password"],
form input[type="email"],
form input[type="number"] {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
    background: #fff;
}

form input[type="text"]:focus,
form input[type="password"]:focus,
form input[type="email"]:focus,
form input[type="number"]:focus {
    outline: none;
    border-color: #4472c4;
    box-shadow: 0 0 0 3px rgba(68, 114, 196, 0.15);
}

/* ============================================
   BOTÓN
   ============================================ */

.btn {
    background: #4472c4;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    margin-top: 1.2rem;
    transition: background 0.2s ease;
    text-align: center;
}

.btn:hover {
    background: #2c5ba8;
}

.btn:active {
    background: #1e4a8a;
}

.btn:disabled {
    background: #9db8dd;
    cursor: not-allowed;
}

/* ============================================
   ENLACES UTILES
   ============================================ */

.card a {
    color: #4472c4;
    text-decoration: none;
    font-weight: 500;
}

.card a:hover {
    text-decoration: underline;
    color: #2c5ba8;
}

/* ============================================
   PIE DE FORMULARIO
   ============================================ */

.form-footer {
    margin-top: 1.2rem;
    text-align: center;
    font-size: 14px;
    color: #555;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
    .card {
        padding: 1.5rem;
    }
    
    .card h2 {
        font-size: 1.4rem;
    }
}