/* ==========================================================
   SUPERPLUS AUTH FORMS — THEME COMMON
   Estilos base para todos los temas (light, dark, none)
   ========================================================== */

/* ----------------------------------------------------
   1. CONTENEDOR PRINCIPAL (LA TARJETA)
   ---------------------------------------------------- */
#customer_login,
#customer_recovery,
#customer_register {
    width: 95% !important;
    max-width: 440px !important;
    margin: 20px auto !important;
    padding: 32px 36px !important;
    border: 1px solid rgba(0,0,0,0.04) !important;
    border-radius: var(--sp-radius-card) !important;
    box-shadow: var(--sp-shadow-card) !important;
    box-sizing: border-box !important;
    font-family: var(--sp-font-family) !important;
}

#customer_login form.woocommerce-form,
#customer_recovery form,
#customer_register form {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* ----------------------------------------------------
   2. TÍTULOS Y DESCRIPCIONES
   ---------------------------------------------------- */
.txt_acceso {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 0 0 6px 0 !important;
    text-align: center !important;
    letter-spacing: -0.02em !important;
}

.sp-subtitle {
    font-size: 14px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

/* ----------------------------------------------------
   3. SEPARADORES
   ---------------------------------------------------- */
.sp_divider {
    display: flex !important;
    align-items: center !important;
    text-align: center !important;
    font-size: 12px !important;
    margin: 20px 0 !important;
}

.sp_divider::before,
.sp_divider::after {
    content: '' !important;
    flex: 1 !important;
    border-bottom: 1px solid var(--sp-border-color) !important;
}

.sp_divider::before { margin-right: 12px !important; }
.sp_divider::after { margin-left: 12px !important; }

/* ----------------------------------------------------
   4. CAMPOS DEL FORMULARIO
   ---------------------------------------------------- */
.woocommerce-form-row,
.form-row {
    width: 100% !important;
    margin-bottom: 14px !important;
}

.woocommerce-form-row label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
}

.woocommerce-Input,
input.input-text {
    width: 100% !important;
    height: var(--sp-height-element) !important;
    padding: 0 14px !important;
    font-size: 15px !important;
    border-radius: var(--sp-radius-element) !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

/* ----------------------------------------------------
   5. FILA SECUNDARIA (Recordarme / Link)
   ---------------------------------------------------- */
.segunda_fila_login {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: -4px !important;
    margin-bottom: 20px !important;
}

.woocommerce-form-login__rememberme {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    margin: 0 !important;
}

.lost_password a {
    text-decoration: none !important;
    font-size: 13px !important;
}

/* ----------------------------------------------------
   6. BOTONES
   ---------------------------------------------------- */
button.sp_btn,
.woocommerce-Button.button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: var(--sp-height-element) !important;
    border: none !important;
    border-radius: var(--sp-radius-element) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ----------------------------------------------------
   7. FOOTER
   ---------------------------------------------------- */
.auth_footer {
    margin-top: 24px !important;
    text-align: center !important;
    font-size: 14px !important;
    border-top: 1px solid var(--sp-border-color) !important;
    padding-top: 20px !important;
}

.auth_footer a {
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* ----------------------------------------------------
   8. ALERTAS Y ERRORES
   ---------------------------------------------------- */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    max-width: 440px !important;
    margin: 0 auto 15px auto !important;
    padding: 14px 20px !important;
    border-radius: var(--sp-radius-element) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    list-style: none !important;
    text-align: left !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* Eliminar iconos por defecto de WooCommerce que causan el texto "D or" */
.woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before {
    display: none !important;
}

/* ----------------------------------------------------
   9. RESPONSIVE
   ---------------------------------------------------- */
@media (max-width: 480px) {
    #customer_login, #customer_register {
        padding: 24px 20px !important;
        margin: 10px auto !important;
    }
}
