/* assets/css/login.css */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.login-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
}

/* --- CAMBIO IMPORTANTE AQUÍ PARA EL OJO --- */
.password-wrapper {
    position: relative; /* Necesario para que el hijo absoluto se base en esto */
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    padding-right: 45px; /* Espacio extra a la derecha para que el texto no toque el ojo */
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    box-sizing: border-box;
    background: #fff; /* Asegura fondo blanco */
}

.form-input:focus {
    border-color: #0f172a;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%); /* Esto lo centra verticalmente perfecto */
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 5px;
    z-index: 10; /* Asegura que esté ENCIMA del input */
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #0f172a;
}
/* ----------------------------------------- */

.btn-login {
    width: 100%;
    padding: 1rem;
    background-color: #0f172a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-login:hover {
    background-color: #334155;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}