/* Estilos para módulo de autenticación y recuperación de contraseña */
/* Ubicados en /auth por seguridad - no revelar estructura interna */
/* Respeta la identidad visual del sistema: Barlow Condensed, verde #B4F22E, azul #112551 */

/* Box-sizing para evitar overflow de inputs */
* {
    box-sizing: border-box;
}

/* Background igual al login */
.background-auth {
    background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXm4gv4dXWp581zwk2iGF8fybtwTgRlm9bqFxM0VQpQY_JcGBt7XRuaitjAdIxG7egW5HNbGKRSgJibzRjcmTnXZfzKG07vgdRyag_q_R6UV_Iq9F_6-Zyx9joCLqorF8pWIhz-g6nDR66/s1600/C%C3%B3mo+seleccionar+un+caballo+de+carreras.bmp) no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Barlow Condensed', sans-serif;
    min-height: 100vh;
    padding: 20px 0;
}

/* Header oscuro para el logo */
.auth-header {
    background: linear-gradient(135deg, #112551, #1a3a6b);
    padding: 20px;
    border-radius: 16px 16px 0 0;
    text-align: center;
}

/* Contenedor de recuperación de clave */
#contenedor_recuperar_clave {
    background-color: white;
    max-width: 400px;
    margin: 40px auto 0 auto;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.auth-content {
    padding: 25px 30px;
}

#titulo_recuperar_clave {
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #112551;
    border-bottom: 3px solid #112551;
    padding-bottom: 5px;
    font-family: 'Barlow Condensed', sans-serif;
}

.texto_recuperar_clave {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    font-style: italic;
    margin-bottom: 25px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
}

#form_clave {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#form_clave input[type="text"],
#form_clave input[name="dato_ingresado"] {
    padding: 14px;
    font-size: 18px;
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    border: 2px solid #B4F22E;
    border-radius: 35px;
    text-align: center;
    color: #112551;
    background-color: white;
}

#form_clave input::placeholder {
    color: #aaa;
    font-style: italic;
}

#form_clave input[type="submit"] {
    padding: 14px;
    background-color: #B4F22E;
    color: #112551;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 35px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
}

#form_clave input[type="submit"]:hover {
    background-color: #a2d91d;
}

#mensaje_recuperar_clave {
    max-width: 500px;
    margin: 40px auto;
    padding: 25px 30px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-style: italic;
    text-align: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    line-height: 1.6;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

#mensaje_recuperar_clave.success {
    background-color: rgba(255, 255, 255, 0.95);
    border: 3px solid #B4F22E;
    color: #112551;
}

#mensaje_recuperar_clave.success small {
    color: #666;
    font-size: 0.9rem;
}

#mensaje_recuperar_clave.error {
    background-color: rgba(255, 255, 255, 0.95);
    border: 3px solid #F03D3D;
    color: #112551;
    padding: 25px 30px;
    border-radius: 16px;
    font-weight: 600;
}

/* Contenedor de restablecer contraseña */
#contenedor_restablecer {
    background-color: white;
    max-width: 500px;
    margin: 40px auto 0 auto;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

#contenedor_restablecer .auth-content {
    padding: 30px;
}

#titulo_restablecer {
    font-size: 1.7rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    color: #112551;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #112551;
    font-family: 'Barlow Condensed', sans-serif;
}

.texto_restablecer {
    color: #333;
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 17px;
    font-style: italic;
    text-align: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
}

#form_restablecer input[type="password"] {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border: 2px solid #B4F22E;
    border-radius: 35px;
    font-size: 16px;
    box-sizing: border-box;
    text-align: center;
    font-family: 'Barlow Condensed', sans-serif;
    color: #112551;
}

#form_restablecer input[type="password"]:focus {
    outline: none;
    border-color: #a2d91d;
}

#form_restablecer input[type="password"]::placeholder {
    color: #aaa;
    font-style: italic;
}

#form_restablecer input[type="submit"] {
    width: 100%;
    padding: 14px;
    background: #B4F22E;
    color: #112551;
    border: none;
    border-radius: 35px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    text-transform: uppercase;
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    transition: background-color 0.3s ease;
}

#form_restablecer input[type="submit"]:hover {
    background: #a2d91d;
}

/* Indicador de fortaleza de contraseña */
.password-strength-container {
    margin: 10px 0 20px 0;
}

.password-strength-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

.password-strength-text {
    font-size: 13px;
    font-weight: bold;
    text-align: center;
}

.strength-muy-debil .password-strength-fill { width: 20%; background: #F03D3D; }
.strength-debil .password-strength-fill { width: 40%; background: #fd7e14; }
.strength-media .password-strength-fill { width: 60%; background: #ffc107; }
.strength-fuerte .password-strength-fill { width: 80%; background: #B4F22E; }
.strength-muy-fuerte .password-strength-fill { width: 100%; background: #8ec91f; }

.strength-muy-debil .password-strength-text { color: #F03D3D; font-family: 'Barlow Condensed', sans-serif; font-style: italic; }
.strength-debil .password-strength-text { color: #fd7e14; font-family: 'Barlow Condensed', sans-serif; font-style: italic; }
.strength-media .password-strength-text { color: #ffc107; font-family: 'Barlow Condensed', sans-serif; font-style: italic; }
.strength-fuerte .password-strength-text { color: #4a8020; font-family: 'Barlow Condensed', sans-serif; font-style: italic; font-weight: 700; }
.strength-muy-fuerte .password-strength-text { color: #2d5016; font-family: 'Barlow Condensed', sans-serif; font-style: italic; font-weight: 700; }

/* Requisitos de contraseña */
.requisitos-password {
    background: rgba(180, 242, 46, 0.08);
    border: 2px solid #B4F22E;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.requisitos-password h4 {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: #112551;
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    font-weight: 700;
}

.requisito {
    font-size: 15px;
    color: #333;
    margin: 8px 0;
    padding-left: 25px;
    position: relative;
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    font-weight: 500;
}

.requisito:before {
    content: "○";
    position: absolute;
    left: 0;
    color: #ccc;
}

.requisito.cumplido {
    color: #2d5016;
    font-weight: 700;
}

.requisito.cumplido:before {
    content: "●";
    color: #4a8020;
}

/* Mensajes */
.mensaje-error {
    background: rgba(255, 255, 255, 0.95);
    color: #F03D3D;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 3px solid #F03D3D;
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    font-weight: 700;
    text-align: center;
    font-size: 16px;
}

.mensaje-exito {
    background: rgba(255, 255, 255, 0.95);
    color: #112551;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 3px solid #B4F22E;
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    font-weight: 700;
    text-align: center;
    font-size: 16px;
}

/* Botones */
.btn-volver {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 30px;
    background-color: #B4F22E;
    color: #112551;
    border-radius: 30px;
    text-transform: uppercase;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 16px;
    font-style: italic;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-volver:hover {
    background-color: #a1da2b;
    color: #0c1b38;
}

/* Logo */
.logo-auth {
    display: block;
    margin: 0 auto;
    max-width: 180px;
    height: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .background-auth {
        padding: 10px;
    }
    
    #contenedor_recuperar_clave,
    #contenedor_restablecer {
        margin: 20px 10px 0 10px;
    }
    
    .auth-header {
        padding: 15px;
    }
    
    .auth-content {
        padding: 20px !important;
    }
    
    #titulo_recuperar_clave,
    #titulo_restablecer {
        font-size: 1.3rem;
    }
    
    .logo-auth {
        max-width: 140px;
    }
}
