/* Força as regras apenas para dentro do wrapper, evitando conflito de temas e aplicando o visual moderno */

.ump-plugin-scope {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Inter', sans-serif !important;
    /* Aplica a cor de fundo geral selecionada no admin */
    background-color: var(--ump-container-bg) !important;
    /* Garante que o fundo ocupe um espaço legível na tela */
    padding: 40px 20px !important;
    min-height: 100vh;
}

.ump-plugin-scope * {
    box-sizing: border-box !important;
}

/* Glass Card - Estilo Baseado no TMD */
.ump-plugin-scope .ump-form-container {
    width: 100%;
    max-width: 420px;
    margin: 20px auto;
    padding: 35px 30px !important;
    /* Puxa a cor do vidro configurada no admin */
    background: var(--ump-glass-bg) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4) !important;
    /* Puxa a cor do texto do admin */
    color: var(--ump-text) !important;
}

.ump-plugin-scope .ump-form-container h3 {
    margin: 0 0 25px 0 !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    /* Puxa a cor do texto do admin */
    color: var(--ump-text) !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    padding-bottom: 15px !important;
}

/* Campos */
.ump-plugin-scope .ump-field {
    margin-bottom: 18px !important;
    width: 100%;
}

.ump-plugin-scope .ump-field label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
    /* Puxa a cor do texto do admin */
    color: var(--ump-text) !important;
    font-size: 13px !important;
    opacity: 0.8;
}

.ump-plugin-scope .ump-field input[type="text"],
.ump-plugin-scope .ump-field input[type="email"],
.ump-plugin-scope .ump-field input[type="password"],
.ump-plugin-scope .ump-field select {
    width: 100% !important;
    background: rgba(0,0,0,0.2) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    /* Puxa a cor do texto do admin */
    color: var(--ump-text) !important;
    padding: 12px 15px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    outline: none !important;
    transition: all 0.3s !important;
    box-shadow: none !important;
}

.ump-plugin-scope .ump-field select option {
    /* O dropdown precisa ter fundo sólido para não bugar no navegador */
    background: var(--ump-container-bg) !important;
    color: var(--ump-text) !important;
}

.ump-plugin-scope .ump-field input:focus,
.ump-plugin-scope .ump-field select:focus {
    /* Borda recebe a cor de destaque (botões) do admin */
    border-color: var(--ump-accent) !important;
    background: rgba(0,0,0,0.4) !important;
}

/* Botão de Envio */
.ump-plugin-scope .ump-btn {
    width: 100% !important;
    padding: 14px !important;
    /* Puxa a cor de destaque do admin */
    background-color: var(--ump-accent) !important;
    color: #1e1e2e !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    margin-top: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.ump-plugin-scope .ump-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px) !important;
}

/* Google e Alertas */
.ump-plugin-scope .ump-divider {
    text-align: center; margin: 25px 0 20px 0; position: relative;
    color: rgba(255,255,255,0.5); font-size: 12px; text-transform: uppercase;
}
.ump-plugin-scope .ump-divider::before, .ump-plugin-scope .ump-divider::after {
    content: ""; position: absolute; top: 50%; width: 30%; height: 1px; background-color: rgba(255,255,255,0.1);
}
.ump-plugin-scope .ump-divider::before { left: 0; }
.ump-plugin-scope .ump-divider::after { right: 0; }

.ump-plugin-scope .g_id_signin { display: flex; justify-content: center; width: 100%; }

.ump-plugin-scope .ump-alert {
    width: 100%; max-width: 420px; padding: 15px; border-radius: 6px; margin-bottom: 20px; text-align: center;
    backdrop-filter: blur(10px);
}
.ump-plugin-scope .ump-alert-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.ump-plugin-scope .ump-alert-error { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }