/* ==========================================
   BSINE AUTH: DESIGN TOKENS (VARIÁVEIS)
   ========================================== */
:root {
    /* Tenta herdar do Elementor/Tema, se falhar, usa as cores da Graph A */
    --bsine-brand-primary: var(--e-global-color-primary, #EF002F);
    --bsine-brand-text: var(--e-global-color-text, #333333);
    --bsine-brand-link: var(--e-global-color-accent, #EF002F);
    
    /* Cores Semânticas de Feedback (Essas não mudam com o tema) */
    --bsine-success-color: #0f834d;
    --bsine-success-bg: #f2fdf5;
    --bsine-error-color: #e2401c;
    --bsine-error-bg: #fff5f5;
    
    /* Estrutura */
    --bsine-border-color: #eaeaea;
    --bsine-muted-text: #888888;
}

/* ==========================================
   ESTRUTURA GERAL
   ========================================== */
.bsine-auth-container {
    max-width: 800px;
    margin: 0 auto;
}

.bsine-auth-title {
    text-align: center;
    margin-bottom: 25px;
    color: var(--bsine-brand-text);
}

.bsine-form-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.bsine-form-col {
    flex: 1;
    min-width: 300px;
}

.bsine-auth-container a {
    color: var(--bsine-brand-link);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.bsine-auth-container a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ==========================================
   INTELIGÊNCIA VISUAL: DICAS DE SENHA
   ========================================== */
.bsine-password-hints {
    font-size: 12px;
    list-style: none;
    padding-left: 0;
    margin-top: -10px;
    margin-bottom: 20px;
}

.bsine-password-hints .hint-item {
    color: var(--bsine-muted-text);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.bsine-password-hints .hint-item::before {
    content: '○';
    font-size: 14px;
    font-weight: bold;
}

/* Validação Visual Baseada nas Cores Semânticas */
.bsine-password-hints .hint-item.is-valid {
    color: var(--bsine-success-color);
}
.bsine-password-hints .hint-item.is-valid::before {
    content: '✓'; 
}

.bsine-password-hints .hint-item.is-invalid {
    color: var(--bsine-error-color);
}
.bsine-password-hints .hint-item.is-invalid::before {
    content: '✕';
}

/* ==========================================
   RODAPÉ (TERMOS E BOTÃO)
   ========================================== */
.bsine-form-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--bsine-border-color);
}

.bsine-terms-text {
    font-size: 13px;
    color: var(--bsine-muted-text);
}

.bsine-form-footer .button {
    width: auto;
    min-width: 250px;
    margin: 0 auto;
    background-color: var(--bsine-brand-primary) !important;
    color: #fff !important;
    border: none;
}

.bsine-form-footer .button:hover {
    opacity: 0.9;
}

/* ==========================================
   FEEDBACKS (SUCESSO E ERRO INJETADOS VIA JS)
   ========================================== */
.bsine-msg-success {
    background: var(--bsine-success-bg);
    color: var(--bsine-success-color);
    border-left: 4px solid var(--bsine-success-color);
    padding: 12px 15px;
    font-size: 14px;
}

.bsine-msg-error {
    background: var(--bsine-error-bg);
    color: var(--bsine-error-color);
    border-left: 4px solid var(--bsine-error-color);
    padding: 12px 15px;
    font-size: 14px;
}

/* ==========================================
   WRAPPER DE SENHA E ÍCONE "OLHO"
   ========================================== */
.bsine-password-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.bsine-password-wrapper input {
    width: 100% !important;
    padding-right: 45px !important; /* Respiro pro texto não passar por baixo do olho */
}

.bsine-pwd-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--bsine-muted-text);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    z-index: 10;
    transition: color 0.2s ease;
}

.bsine-pwd-toggle:hover {
    color: var(--bsine-brand-primary);
}