/* =========================================
   ESTILOS LOGIN ESPACIO ZEN CORE - V2.3
   ========================================= */

.ez-login-wrapper {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* --- CONTENEDOR PRINCIPAL --- */
.ez-form {
    background: #1a1a1a; 
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    color: white;
    margin-bottom: 20px;
}

#ez-forgot-form h3 { display: none; }

#ez-register-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    color: white;
    font-size: 20px;
}

/* --- CAMPOS (LABELS E INPUTS) --- */
.ez-field { margin-bottom: 20px; }

.ez-field label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 500; 
    font-size: 14px;
    color: #ffffff !important; 
    opacity: 0.9;
}

/* INPUTS: Corrección de Color de Texto */
.ez-field input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    
    /* AQUÍ ESTÁ LA SOLUCIÓN AL TEXTO OSCURO */
    color: #ffffff !important; 
    -webkit-text-fill-color: #ffffff !important; /* Para navegadores Webkit */
    
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Asegurar que el autocompletado del navegador no ponga fondo blanco */
.ez-field input:-webkit-autofill,
.ez-field input:-webkit-autofill:hover, 
.ez-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #2b2b2b inset !important; /* Fondo oscuro forzado */
    transition: background-color 5000s ease-in-out 0s;
}

.ez-field input:focus {
    outline: none;
    border-color: #b46d7f;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 2px rgba(180, 109, 127, 0.2);
}

/* --- NUEVO: WRAPPER PARA CONTRASEÑA E ICONO --- */
.ez-pass-wrapper {
    position: relative;
    width: 100%;
}

.ez-pass-wrapper input {
    padding-right: 40px; /* Espacio para que el texto no toque el ojo */
}

.ez-toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5); /* Icono semi-transparente */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.ez-toggle-pass:hover {
    color: #ffffff;
}

/* --- ACCIONES --- */
.ez-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
    color: #ffffff;
}

.ez-actions label {
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
}

.ez-actions input[type="checkbox"] {
    width: auto !important;
    margin: 0;
}

.ez-actions a, .back-link { 
    color: #709992; 
    text-decoration: none; 
    transition: color 0.3s;
}

.ez-actions a:hover, .back-link:hover { 
    color: #a8e0d5; 
    text-decoration: underline;
}

.back-link { 
    display: block; 
    text-align: center; 
    margin-top: 20px; 
    font-size: 13px;
}

/* --- BOTONES --- */
.ez-btn {
    width: 100%;
    padding: 14px;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    background-color: #b46d7f;
}

.ez-btn:hover { 
    background-color: #9e5b6b; 
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(180, 109, 127, 0.3);
}

.ez-btn:disabled { opacity: 0.7; cursor: wait; transform: none; }

.ez-btn.secondary { background-color: #709992; }
.ez-btn.secondary:hover { background-color: #5c807a; box-shadow: 0 4px 12px rgba(112, 153, 146, 0.3); }

/* --- ZONA REGISTRO --- */
.ez-register-link {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
    color: #cccccc;
}

.ez-register-link a {
    color: #709992;
    font-weight: bold;
    text-decoration: none;
    margin-left: 5px;
}

.ez-register-link a:hover { color: #a8e0d5; text-decoration: underline; }

/* --- MENSAJES --- */
#ez-messages, #ez-forgot-messages, #ez-register-messages {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    display: none;
}
.success { background: rgba(112, 153, 146, 0.2); color: #a8e0d5; border: 1px solid #709992; }
.error { background: rgba(220, 53, 69, 0.2); color: #ffb3b3; border: 1px solid #dc3545; }
.small-text { font-size: 14px; color: #cccccc; margin-bottom: 20px; line-height: 1.5; }