/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== Fondo general ===== */
body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #15233a, #1f3555);
}

/* ===== Contenedor principal (login / recuperar) ===== */
.login-container {
    background: linear-gradient(135deg, #15233a, #1f3555);
    padding: 40px 35px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    width: 100%;
    max-width: 380px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

/* Títulos */
.login-container h2 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 26px;
    letter-spacing: 1px;
}

/* ===== Formulario ===== */
.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #ddd;
}

.login-container input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #444;
    background: linear-gradient(135deg, #15233a, #1f3555);
    color: #fff;
    font-size: 15px;
    transition: 0.3s;
}

.login-container input:focus {
    border-color: #ffffff;
    outline: none;
    box-shadow: 0 0 6px rgba(244, 180, 0, 0.7);
}

/* ===== Botón principal ===== */
.btn-login {
    width: 100%;
    padding: 12px;
    background: #0d6efd;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-login:hover {
    background: #ffffff;
    transform: scale(1.02);
}

/* ===== Enlaces extra (olvidaste contraseña / volver) ===== */
.extra-links {
    margin-top: 18px;
    font-size: 14px;
}

.extra-links a {
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
}

.extra-links a:hover {
    text-decoration: underline;
    color: #0b5ed7;
}

/* ===== Animaciones ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Estilos para el login */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.password-container {
    position: relative;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 40px;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--gris-medio);
}

.toggle-password:hover {
    color: var(--primario-azul);
}

.error-message {
    color: var(--acento);
    font-size: 14px;
    margin-top: 5px;
    min-height: 20px;
}

.btn-login {
    background-color: #0b5ed7 ;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
}

.btn-login:hover {
    background-color:  #3175db;
}

.extra-links {
    margin-top: 20px;
    text-align: center;
}

.extra-links a {
    color: #ffffff;
    text-decoration: none;
}

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


        .error-message {
            color: #d93025;
            font-size: 14px;
            margin-top: 5px;
            display: block;
            min-height: 20px;
        }
        
        .input-error {
            border-color: #d93025 !important;
            box-shadow: 0 0 0 2px rgba(217, 48, 37, 0.2) !important;
        }
        
        .success-message {
            color: #188038;
            font-size: 14px;
            margin-top: 5px;
            display: block;
            min-height: 20px;
            font-weight: 500;
        }
        
        .input-success {
            border-color: #188038 !important;
            box-shadow: 0 0 0 2px rgba(24, 128, 56, 0.2) !important;
        }
        
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }
        
        .shake {
            animation: shake 0.5s;
        }
        
        /* Loading state */
        .btn-loading {
            position: relative;
            color: transparent !important;
        }
        
        .btn-loading::after {
            content: "";
            position: absolute;
            width: 20px;
            height: 20px;
            top: 50%;
            left: 50%;
            margin: -10px 0 0 -10px;
            border: 3px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s ease-in-out infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .password-input-wrapper {
            position: relative;
        }
        
        .toggle-password {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #777;
        }
        .toggle-password:hover{
            color:#fff;
        }
        
        .error-general {
            background-color: #ffebee;
            color: #c62828;
            padding: 12px;
            border-radius: 4px;
            margin-bottom: 20px;
            border-left: 4px solid #c62828;
        }