/* ============================================================
   Tema claro / escuro das telas de entrada do PAINEL (Etapa 7D1)
   Login, código de duas etapas, esqueci a senha, criar/redefinir senha.
   O <html data-ws-tema="..."> vem do _Tema.cshtml.
   ============================================================ */

/* Botão flutuante (criado pelo ws-tema.js) */
.ws-tema-flutuante {
    position: fixed; top: 14px; right: 14px; z-index: 50;
    width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; cursor: pointer; padding: 0; transition: all .2s;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff;
}
.ws-tema-flutuante:hover { border-color: #ff0000; color: #ff0000; }
html[data-ws-tema="claro"] .ws-tema-flutuante { background: #fff; border-color: #d6d6d6; color: #1c1c1c; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
html[data-ws-tema="claro"] .ws-tema-flutuante:hover { border-color: #ff0000; color: #ff0000; }

/* ---------- Claro ---------- */
html[data-ws-tema="claro"] body { background: #eef0f3 !important; }
html[data-ws-tema="claro"] .login-card,
html[data-ws-tema="claro"] .card,
html[data-ws-tema="claro"] .card-auth { box-shadow: 0 10px 34px rgba(0,0,0,.08) !important; border-top: 3px solid #1c1c1c; }

/* ---------- Escuro ---------- */
html[data-ws-tema="escuro"] body { background: #0b0b0b !important; }
html[data-ws-tema="escuro"] .login-card,
html[data-ws-tema="escuro"] .card,
html[data-ws-tema="escuro"] .card-auth {
    background: #171717 !important; color: #ddd !important;
    border: 1px solid #262626; border-top: 3px solid #ff0000;
    box-shadow: 0 14px 40px rgba(0,0,0,.6) !important;
}
html[data-ws-tema="escuro"] .login-card h1,
html[data-ws-tema="escuro"] .card h1,
html[data-ws-tema="escuro"] .card-auth h1 { color: #fff !important; }
html[data-ws-tema="escuro"] .login-card label,
html[data-ws-tema="escuro"] .card label,
html[data-ws-tema="escuro"] .card-auth label { color: #bbb !important; }
html[data-ws-tema="escuro"] .login-card p,
html[data-ws-tema="escuro"] .card p,
html[data-ws-tema="escuro"] .card-auth p,
html[data-ws-tema="escuro"] .check { color: #9a9a9a !important; }
html[data-ws-tema="escuro"] .login-card input:not([type=checkbox]):not([type=hidden]),
html[data-ws-tema="escuro"] .card input:not([type=checkbox]):not([type=hidden]),
html[data-ws-tema="escuro"] .card-auth input:not([type=checkbox]):not([type=hidden]) {
    background: #0d0d0d !important; border-color: #333 !important; color: #eee !important;
}
html[data-ws-tema="escuro"] input::placeholder { color: #666 !important; }
html[data-ws-tema="escuro"] .btn-entrar,
html[data-ws-tema="escuro"] .btn-full { background: #ff0000 !important; border-color: #ff0000 !important; color: #fff !important; }
html[data-ws-tema="escuro"] .btn-entrar:hover,
html[data-ws-tema="escuro"] .btn-full:hover { background: #d40000 !important; border-color: #d40000 !important; }
html[data-ws-tema="escuro"] .login-card a,
html[data-ws-tema="escuro"] .card a,
html[data-ws-tema="escuro"] .card-auth a,
html[data-ws-tema="escuro"] .links button { color: #aaa !important; }
html[data-ws-tema="escuro"] .login-card a:hover,
html[data-ws-tema="escuro"] .card a:hover,
html[data-ws-tema="escuro"] .card-auth a:hover,
html[data-ws-tema="escuro"] .links button:hover { color: #ff4d4d !important; }
html[data-ws-tema="escuro"] .sep { color: #444 !important; }
html[data-ws-tema="escuro"] .ok,
html[data-ws-tema="escuro"] .sucesso { background: #10251a !important; border-color: #1e5c33 !important; color: #7fd69a !important; }
html[data-ws-tema="escuro"] .erro,
html[data-ws-tema="escuro"] .field-validation-error,
html[data-ws-tema="escuro"] .validation-summary-errors { color: #ff7b6e !important; }

/* Bloco "instalar o aplicativo" do login (Etapa 7C) */
html[data-ws-tema="escuro"] .app-instalar { border-top-color: #2a2a2a !important; }
html[data-ws-tema="escuro"] .app-botao { background: transparent !important; color: #eee !important; border-color: #444 !important; }
html[data-ws-tema="escuro"] .app-botao:hover { border-color: #ff0000 !important; color: #fff !important; }
html[data-ws-tema="escuro"] .app-sub { color: #888 !important; }
html[data-ws-tema="escuro"] .app-ios { background: #0d0d0d !important; color: #bbb !important; }
html[data-ws-tema="escuro"] .app-agora-nao { color: #777 !important; }

/* Link "Voltar ao site" nas telas de entrada (7D4) */
.ws-voltar-site {
    position: fixed; top: 14px; left: 14px; z-index: 50; height: 42px; padding: 0 14px 0 10px;
    display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; text-decoration: none !important;
    font-family: Montserrat, "Segoe UI", Arial, sans-serif; border-radius: 21px; transition: all .2s;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff !important;
}
.ws-voltar-site:hover { border-color: #ff0000; color: #ff0000 !important; }
html[data-ws-tema="claro"] .ws-voltar-site { background: #fff; border-color: #d6d6d6; color: #1c1c1c !important; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
html[data-ws-tema="claro"] .ws-voltar-site:hover { border-color: #ff0000; color: #ff0000 !important; }
