/**
 * ============================================================
 * recovery.css — Estilos del módulo de Recuperación de Contraseña
 * ============================================================
 * 
 * Estilos para los 3 modales de recuperación:
 *   - forgotPasswordModal (solicitar código)
 *   - verifyCodeModal (verificar código de 5 dígitos)
 *   - newPasswordModal (establecer nueva contraseña)
 * 
 * Depende de las variables CSS definidas en styles.css
 *   (--color-primary, --color-stone-*, --color-white)
 * 
 * ============================================================
 */

/* ===== LAYOUT DEL MODAL DE RECUPERACIÓN ===== */
.modal-recovery {
    max-width: 420px;
}

.modal-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: var(--color-stone-50);
    border-radius: 50%;
    margin: 0 auto 1rem auto;
}

.modal-description {
    font-size: 0.875rem;
    color: var(--color-stone-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ===== FORMULARIO CON ICONOS ===== */
.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-stone-700);
    margin-bottom: 0.375rem;
    text-align: left;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    pointer-events: none;
}

.form-input-icon {
    padding-left: 2.5rem;
}

/* ===== INPUTS DE CÓDIGO DE VERIFICACIÓN (5 DÍGITOS) ===== */
.code-inputs-container {
    display: flex;
    gap: 0.625rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.code-input {
    width: 3rem;
    height: 3.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--color-stone-300);
    border-radius: 0.75rem;
    background: var(--color-white);
    color: var(--color-stone-800);
    transition: all 0.2s ease;
    font-family: inherit;
}

.code-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--focus-ring-soft);
}

/* ===== MENSAJES DE ESTADO (ÉXITO/ERROR) ===== */
.modal-message {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.modal-message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.modal-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ===== BOTÓN DE RECUPERACIÓN ===== */
.btn-recovery {
    background: var(--color-primary);
    font-weight: 600;
    letter-spacing: 0.025em;
}

.btn-recovery:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== HINT DE CONTRASEÑA ===== */
.password-hint {
    font-size: 0.75rem;
    color: var(--color-stone-500);
    margin-bottom: 1rem;
    text-align: left;
    line-height: 1.5;
}

/* ===== TEXTO DE SEGURIDAD ===== */
.modal-security {
    font-size: 0.75rem;
    color: var(--color-stone-400);
    margin-top: 1rem;
}

/* ===== LINK DE RECUPERACIÓN EN MODAL LOGIN ===== */
.recovery-link {
    margin-top: 0.5rem !important;
}

/* ===== RESPONSIVE — los 5 inputs del código no deben desbordar en móvil ===== */
@media (max-width: 480px) {
    .code-inputs-container { gap: 0.4rem; margin: 1.25rem 0; }
    .code-input { width: 2.75rem; height: 3.25rem; font-size: 1.25rem; }
}

@media (max-width: 360px) {
    .code-inputs-container { gap: 0.3rem; }
    .code-input { width: 2.4rem; height: 3rem; font-size: 1.1rem; }
}