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

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4c6fff, #8fd3f4);
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 30px 28px 26px;
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-header h1 {
    font-size: 32px;
    letter-spacing: 3px;
    color: #e03c31; /* #2c3e50 */
    margin-bottom: 6px;
}

.login-header p {
    font-size: 14px;
    color: #7f8c8d;
}

form {
    margin-top: 10px;
}

label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #34495e;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 16px;
    border-radius: 6px;
    border: 1px solid #dcdde1;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #4c6fff;
    box-shadow: 0 0 0 2px rgba(76, 111, 255, 0.15);
    outline: none;
}

.login-actions {
    margin-top: 10px;
    text-align: right;
}

input[type="submit"] {
    background-color: #4c6fff;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
}

input[type="submit"]:hover {
    background-color: #3a56d4;
    box-shadow: 0 4px 10px rgba(76, 111, 255, 0.35);
}

input[type="submit"]:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(76, 111, 255, 0.3);
}

.login-footer {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    color: #95a5a6;
}

.login-footer span {
    font-weight: bold;
    color: #4c6fff;
}

/*-------------------------------------------------*/
/*           Contenedor olvidé password            */
/*-------------------------------------------------*/

.forgot-container {
    text-align: right;
    margin-bottom: 15px;
}

.forgot-link {
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #007bff; /* O el color primario de A4B */
    text-decoration: underline;
}

/*------------------------------------------------------------*/
/*              Mensajes archivo recuperar.php                */
/*------------------------------------------------------------*/

.alerta {
            padding: 12px;
            margin-bottom: 20px;
            border-radius: 5px;
            font-size: 0.9em;
            text-align: center;
        }
        .alerta.success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        .alerta.error {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }