/* ===== ESTILOS UNIFICADOS PARA RECUPERACIÓN DE CONTRASEÑA ===== */

/* Reset y base */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, #006400, #008000);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
    box-sizing: border-box;
}

/* Contenedor principal */
.recuperar-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
    margin: 20px;
}

/* Header */
.recuperar-header {
    margin-bottom: 30px;
}

.recuperar-header h1 {
    font-size: 28px;
    font-weight: bold;
    color: #006400;
    margin-bottom: 10px;
}

.recuperar-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #006400;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.2);
}

/* Código de 6 dígitos (estilo especial) */
#id_codigo {
    text-align: center;
    letter-spacing: 5px;
    font-size: 24px;
    font-weight: bold;
}

/* Password wrapper (input + eye icon) */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group .password-wrapper input,
.form-group .password-wrapper .form-control {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-group .password-wrapper input:focus,
.form-group .password-wrapper .form-control:focus {
    border-color: #006400;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.2);
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.toggle-password:hover {
    background: rgba(0, 100, 0, 0.08);
}

.toggle-password:hover .eye-icon {
    stroke: #006400;
}

/* Password requirements */
.password-requirements {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #ccc;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.password-requirements.all-met {
    border-color: #c3e6cb;
    border-left-color: #28a745;
    background-color: #f0faf3;
}

.password-requirements.has-error {
    border-color: #f5c6cb;
    border-left-color: #dc3545;
    background-color: #fef8f8;
}

.requirements-title {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin: 0 0 8px 0;
    text-align: left;
}

.requirement {
    font-size: 13px;
    color: #888;
    padding: 3px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    transition: color 0.25s ease;
    line-height: 1.6;
}

.requirement .req-icon {
    font-size: 13px;
    width: 16px;
    height: 16px;
    min-width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.requirement.unmet {
    color: #888;
}

.requirement.unmet .req-icon {
    color: #dc3545;
}

.requirement.met {
    color: #28a745;
}

.requirement.met .req-icon {
    color: #28a745;
}

/* Botón */
.btn-verificar {
    background-color: #006400;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-verificar:hover {
    background-color: #004d00;
}

/* Enlace para reenviar */
.resend-link {
    margin-top: 20px;
    text-align: center;
}

.resend-link a {
    color: #006400;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.resend-link a:hover {
    text-decoration: underline;
}

/* Mensajes de error */
.errorlist {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    color: #e74c3c;
    font-size: 12px;
}

/* Alertas de Django messages */
.alerta {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: left;
}

.alerta-exito {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alerta-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alerta-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Responsive */
@media (max-width: 480px) {
    .recuperar-container {
        padding: 25px;
        margin: 15px;
    }
    
    .recuperar-header h1 {
        font-size: 24px;
    }
    
    .form-group input {
        padding: 10px 12px;
    }
    
    #id_codigo {
        font-size: 20px;
        letter-spacing: 3px;
    }

    .toggle-password {
        right: 8px;
    }
}