/**
 * ============================================================================
 * OVERRIDE CSS - PROTEÇÃO CONTRA INTERFERÊNCIAS DO TEMA
 * ============================================================================
 * 
 * Este arquivo sobrescreve estilos do tema WordPress que podem interferir
 * no plugin. Usa !important para garantir precedência.
 * 
 * CARREGADO APÓS O CSS PRINCIPAL
 */

/* ==========================================================================
   RESET COMPLETO PARA O FORMULÁRIO DE LOGIN
   ========================================================================== */

/* Container e wrapper do login */
.moeble-login-wrapper,
.moeble-login-wrapper *,
.moeble-login-card,
.moeble-login-card * {
    box-sizing: border-box !important;
}

/* Campos de input - RESET TOTAL */
.moeble-login-form input[type="email"],
.moeble-login-form input[type="password"],
.moeble-login-form input[type="text"] {
    /* Reset de estilos do tema */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    
    /* Garantir transparência */
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    
    /* Remover bordas extras */
    border: none !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-left: none !important;
    box-shadow: none !important;
    outline: none !important;
    
    /* Reset de espaçamento */
    padding: 0 !important;
    margin: 0 !important;
}

/* Botão de visualizar senha - TRANSPARENTE SEMPRE */
.moeble-login-form .moeble-toggle-password,
.moeble-login-form button.moeble-toggle-password {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-left: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
}

.moeble-login-form .moeble-toggle-password:hover,
.moeble-login-form .moeble-toggle-password:focus,
.moeble-login-form .moeble-toggle-password:active {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

/* Shell do campo - controle total da borda */
.moeble-login-form .moeble-field-shell {
    border: 1px solid #6e6e73 !important;
    border-top: 1px solid #6e6e73 !important;
    border-right: 1px solid #6e6e73 !important;
    border-bottom: 1px solid #6e6e73 !important;
    border-left: 1px solid #6e6e73 !important;
    box-shadow: none !important;
    outline: none !important;
}

.moeble-login-form .moeble-field-shell:focus-within {
    border: 1px solid #86868b !important;
    border-top: 1px solid #86868b !important;
    border-right: 1px solid #86868b !important;
    border-bottom: 1px solid #86868b !important;
    border-left: 1px solid #86868b !important;
    box-shadow: none !important;
}

/* Botão entrar - BRANCO SEMPRE */
.moeble-login-form .moeble-btn-primary,
.moeble-login-form button.moeble-btn-primary,
.moeble-login-form input[type="submit"].moeble-btn-primary {
    background-color: #ffffff !important;
    background: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
    border: none !important;
    border-style: none !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    outline: none !important;
}

.moeble-login-form .moeble-btn-primary:hover,
.moeble-login-form .moeble-btn-primary:focus {
    background-color: #f5f5f5 !important;
    background: #f5f5f5 !important;
    background-image: none !important;
    color: #000000 !important;
    border: none !important;
    border-style: none !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2) !important;
}

/* Links de login - sem sublinhado */
.moeble-login-form .moeble-login-links a {
    text-decoration: none !important;
    text-underline-offset: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
}

.moeble-login-form .moeble-login-links a:hover {
    text-decoration: none !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* ==========================================================================
   RESET DE AUTOCOMPLETE DO NAVEGADOR
   ========================================================================== */

/* Remover fundo amarelo do autocomplete do Chrome */
.moeble-login-form input:-webkit-autofill,
.moeble-login-form input:-webkit-autofill:hover,
.moeble-login-form input:-webkit-autofill:focus,
.moeble-login-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #FFFFFF !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* ==========================================================================
   RESET DE SVG
   ========================================================================== */
.moeble-login-form svg,
.moeble-toggle-password svg {
    display: block !important;
    pointer-events: none !important;
}

 .moeble-cadastro-container {
     color-scheme: dark !important;
 }
 
 .moeble-cadastro-container .moeble-registration-form .moeble-field-select {
     color-scheme: dark !important;
     background-color: #0b0b0b !important;
     color: #ffffff !important;
     -webkit-appearance: none !important;
     -moz-appearance: none !important;
     appearance: none !important;
 }

 .moeble-cadastro-container .moeble-registration-form .moeble-field-select:focus {
     background-color: #0b0b0b !important;
     color: #ffffff !important;
 }
 
 .moeble-cadastro-container .moeble-registration-form .moeble-field-select option,
 .moeble-cadastro-container .moeble-registration-form .moeble-field-select optgroup {
     background-color: Canvas !important;
     color: CanvasText !important;
 }
