:root {
    --primary-color: #2C3E50;
    --secondary-color: #3498DB;
    --error-color: #E74C3C;
    --success-color: #2ECC71;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header img {
    max-width: 150px;
    margin-bottom: 20px;
}

.login-header h2 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.btn-login {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: var(--primary-color);
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.alert-error {
    background-color: #fde8e8;
    color: var(--error-color);
    border: 1px solid #fbd5d5;
}

.alert-success {
    background-color: #def7ec;
    color: var(--success-color);
    border: 1px solid #bcf0da;
}

@media (max-width: 480px) {
    .login-container {
        padding: 20px;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }
}


/* Agregar al final del archivo existente */

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a,
.back-to-login a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password a:hover,
.back-to-login a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.back-to-login {
    text-align: center;
    margin-top: 15px;
}