/* FCR Login & Cadastro — CSS
   Baseado no screenshot: fundo escuro #0d1117/#111827,
   logo oval com borda verde pulsante, abas com linha verde,
   campos escuros, botao verde arredondado
*/

/* ── VARIAVEIS ───────────────────────────────────────────────── */
:root {
    --fcrl-acento:      #00c851;
    --fcrl-fundo:       #0d1117;
    --fcrl-card:        #111827;
    --fcrl-card2:       #1a2233;
    --fcrl-borda:       #1f2d3d;
    --fcrl-input-bg:    #0d1117;
    --fcrl-input-borda: #2a3a4a;
    --fcrl-texto:       #e2e8f0;
    --fcrl-muted:       #8892a4;
    --fcrl-erro:        #e53e3e;
    --fcrl-sucesso:     #38a169;
    --fcrl-aviso:       #d69e2e;
    --fcrl-radius:      12px;
    --fcrl-font:        'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── WRAP EXTERNO ─────────────────────────────────────────────── */
.fcrl-wrap {
    width: 100%;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    font-family: var(--fcrl-font);
    box-sizing: border-box;
}

/* ── AVISO TOPO (saiu) ───────────────────────────────────────── */
.fcrl-aviso-topo {
    background: rgba(0, 200, 81, .12);
    border: 1px solid rgba(0,200,81,.3);
    color: var(--fcrl-acento);
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
    max-width: 480px;
    width: 100%;
}

/* ── CARD PRINCIPAL ──────────────────────────────────────────── */
.fcrl-card {
    background: var(--fcrl-card);
    border: 1px solid var(--fcrl-borda);
    border-radius: 16px;
    padding: 0 0 28px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
    overflow: hidden;
    position: relative;
}

/* ── LOGO OVAL ───────────────────────────────────────────────── */
.fcrl-logo-wrap {
    display: flex;
    justify-content: center;
    padding: 32px 0 0;
    margin-bottom: 4px;
}

.fcrl-logo-oval {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid var(--fcrl-acento);
    padding: 4px;
    background: var(--fcrl-card);
    box-shadow:
        0 0 0 1px rgba(0,200,81,.2),
        0 0 20px rgba(0,200,81,.3),
        0 0 40px rgba(0,200,81,.15);
    animation: fcrl-pulse-logo 2.5s ease-in-out infinite;
    overflow: hidden;
    flex-shrink: 0;
}

@keyframes fcrl-pulse-logo {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(0,200,81,.2),
            0 0 20px rgba(0,200,81,.3),
            0 0 40px rgba(0,200,81,.15);
    }
    50% {
        box-shadow:
            0 0 0 3px rgba(0,200,81,.15),
            0 0 30px rgba(0,200,81,.5),
            0 0 60px rgba(0,200,81,.25);
    }
}

.fcrl-logo-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.fcrl-logo-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fcrl-card2);
    color: var(--fcrl-acento);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;
}

/* ── ABAS ─────────────────────────────────────────────────────── */
.fcrl-tabs {
    display: flex;
    border-bottom: 1px solid var(--fcrl-borda);
    margin: 20px 0 0;
    padding: 0 24px;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.fcrl-tabs::-webkit-scrollbar { display: none; }

.fcrl-tab {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--fcrl-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 12px 8px 11px;
    cursor: pointer;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
    text-align: center;
    font-family: var(--fcrl-font);
    margin-bottom: -1px;
}

.fcrl-tab:hover {
    color: var(--fcrl-texto);
}

.fcrl-tab.fcrl-tab-ativo {
    color: var(--fcrl-acento);
    border-bottom-color: var(--fcrl-acento);
}

/* ── PAINEIS ──────────────────────────────────────────────────── */
.fcrl-painel {
    display: none;
    padding: 24px 28px 0;
    animation: fcrl-fadein .25s ease;
}

.fcrl-painel.fcrl-painel-ativo {
    display: block;
}

@keyframes fcrl-fadein {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fcrl-titulo-form {
    font-size: 18px;
    font-weight: 700;
    color: var(--fcrl-texto);
    margin: 0 0 6px;
}

.fcrl-desc-form {
    font-size: 13px;
    color: var(--fcrl-muted);
    margin: 0 0 20px;
    line-height: 1.5;
}

/* ── CAMPOS ───────────────────────────────────────────────────── */
.fcrl-campo {
    margin-bottom: 14px;
}

.fcrl-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--fcrl-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.fcrl-req { color: var(--fcrl-erro); }

.fcrl-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.fcrl-input-icon {
    position: absolute;
    left: 12px;
    font-size: 15px;
    pointer-events: none;
    line-height: 1;
}

.fcrl-input {
    width: 100%;
    background: var(--fcrl-input-bg);
    border: 1px solid var(--fcrl-input-borda);
    border-radius: 8px;
    color: var(--fcrl-texto);
    font-size: 14px;
    padding: 12px 40px 12px 38px;
    font-family: var(--fcrl-font);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    box-sizing: border-box;
}

.fcrl-input::placeholder { color: #4a5568; }

.fcrl-input:focus {
    border-color: var(--fcrl-acento);
    box-shadow: 0 0 0 3px rgba(0,200,81,.12);
}

.fcrl-input.fcrl-input-erro {
    border-color: var(--fcrl-erro);
    box-shadow: 0 0 0 3px rgba(229,62,62,.12);
}

.fcrl-input.fcrl-input-ok {
    border-color: var(--fcrl-sucesso);
}

/* Mostrar/ocultar senha */
.fcrl-toggle-senha {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--fcrl-muted);
    padding: 4px;
    transition: color .2s;
}
.fcrl-toggle-senha:hover { color: var(--fcrl-texto); }

.fcrl-campo-dica {
    font-size: 11px;
    color: var(--fcrl-muted);
    display: block;
    margin-top: 4px;
}

/* ── FORCA DA SENHA ───────────────────────────────────────────── */
.fcrl-forca-barra {
    height: 4px;
    background: #1f2d3d;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.fcrl-forca-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width .3s, background .3s;
}

.fcrl-forca-txt {
    font-size: 11px;
    display: block;
    margin-top: 3px;
}

/* ── CHECKBOX E TERMOS ────────────────────────────────────────── */
.fcrl-row-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 6px;
}

.fcrl-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--fcrl-muted);
    cursor: pointer;
    user-select: none;
}

.fcrl-check {
    width: 16px;
    height: 16px;
    accent-color: var(--fcrl-acento);
    cursor: pointer;
}

.fcrl-termos-label {
    margin-bottom: 18px;
}

/* ── BOTOES ───────────────────────────────────────────────────── */
.fcrl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 30px;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all .2s;
    font-family: var(--fcrl-font);
    letter-spacing: .02em;
}

.fcrl-btn:hover { transform: translateY(-1px); text-decoration: none; }
.fcrl-btn:active { transform: translateY(0); }

.fcrl-btn-principal {
    width: 100%;
    background: var(--fcrl-acento);
    color: #000;
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(0,200,81,.3);
}

.fcrl-btn-principal:hover {
    background: #00a844;
    box-shadow: 0 6px 22px rgba(0,200,81,.45);
    color: #000;
}

.fcrl-btn-principal:disabled {
    background: #2a3a4a;
    color: #4a5568;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.fcrl-btn-verde {
    background: var(--fcrl-acento);
    color: #000;
    padding: 12px 28px;
}

.fcrl-btn-outline {
    background: transparent;
    border: 1px solid var(--fcrl-borda);
    color: var(--fcrl-muted);
    padding: 12px 28px;
}

.fcrl-btn-outline:hover {
    border-color: var(--fcrl-texto);
    color: var(--fcrl-texto);
}

/* ── LINKS E ALTERNATIVAS ────────────────────────────────────── */
.fcrl-link-aba {
    background: none;
    border: none;
    color: var(--fcrl-acento);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-family: var(--fcrl-font);
    transition: opacity .2s;
}
.fcrl-link-aba:hover { opacity: .75; text-decoration: underline; }

.fcrl-link { color: var(--fcrl-acento); text-decoration: none; }
.fcrl-link:hover { text-decoration: underline; }

.fcrl-alternativa {
    text-align: center;
    font-size: 13px;
    color: var(--fcrl-muted);
    margin: 14px 0 0;
}

.fcrl-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 14px;
    color: var(--fcrl-muted);
    font-size: 12px;
}
.fcrl-divider::before,
.fcrl-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--fcrl-borda);
}

/* ── VOLTAR AO SITE ───────────────────────────────────────────── */
.fcrl-voltar-site {
    display: block;
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: var(--fcrl-muted);
    text-decoration: none;
    transition: color .2s;
}
.fcrl-voltar-site:hover { color: var(--fcrl-texto); text-decoration: none; }

/* ── MENSAGENS DE FEEDBACK ────────────────────────────────────── */
.fcrl-msg {
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.5;
    animation: fcrl-fadein .2s ease;
}

.fcrl-msg-erro {
    background: rgba(229,62,62,.12);
    border: 1px solid rgba(229,62,62,.3);
    color: #fc8181;
}

.fcrl-msg-ok {
    background: rgba(56,161,105,.12);
    border: 1px solid rgba(56,161,105,.3);
    color: #68d391;
}

.fcrl-msg-info {
    background: rgba(214,158,46,.1);
    border: 1px solid rgba(214,158,46,.25);
    color: #f6e05e;
}

/* ── PAINEL LOGADO ────────────────────────────────────────────── */
.fcrl-card-logado {
    text-align: center;
    padding: 0 0 32px;
}

.fcrl-card-logado .fcrl-logo-wrap { padding-top: 28px; }

.fcrl-user-av,
.fcrl-card-logado img.avatar {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50%;
    border: 3px solid var(--fcrl-acento);
    margin: 16px auto 0;
    display: block;
}

.fcrl-ola {
    color: var(--fcrl-texto);
    font-size: 22px;
    margin: 14px 0 6px;
}

.fcrl-logado-msg {
    color: var(--fcrl-muted);
    font-size: 14px;
    margin: 0 0 24px;
    padding: 0 20px;
}

.fcrl-logado-msg strong { color: var(--fcrl-acento); }

.fcrl-logado-acoes {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 0 28px;
    flex-wrap: wrap;
}

/* ── RODAPÉ ───────────────────────────────────────────────────── */
.fcrl-copy {
    font-size: 12px;
    color: #3a4a5a;
    margin-top: 16px;
    text-align: center;
}

.fcrl-zap { color: #25D366; text-decoration: none; font-weight: 600; }
.fcrl-zap:hover { text-decoration: underline; }

/* ── WIDGET NA SIDEBAR ────────────────────────────────────────── */
.fcrw-logado {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}
.fcrw-avatar { border-radius: 50%; border: 2px solid #00c851; }
.fcrw-info { display: flex; flex-direction: column; gap: 2px; }
.fcrw-ola { font-size: 11px; color: #888; }
.fcrw-nome { font-size: 14px; font-weight: 700; color: inherit; }
.fcrw-links { display: flex; gap: 10px; margin-top: 2px; }
.fcrw-links a { font-size: 12px; color: #00c851; text-decoration: none; }
.fcrw-links .fcrw-sair { color: #e53e3e; }
.fcrw-deslogado { display: flex; gap: 8px; }
.fcrw-btn { display: inline-block; padding: 7px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; text-decoration: none; }
.fcrw-btn-login { background: #111827; border: 1px solid #00c851; color: #00c851; }
.fcrw-btn-cadastro { background: #00c851; color: #000; }

/* ── MENU SHORTCODE [fcr_login_menu] ──────────────────────────── */
.fcrm-guest, .fcrm-user { display: flex; align-items: center; gap: 8px; }
.fcrm-link-login, .fcrm-link-cadastro { font-size: 13px; font-weight: 600; text-decoration: none; padding: 6px 12px; border-radius: 16px; }
.fcrm-link-login { color: #00c851; border: 1px solid #00c851; }
.fcrm-link-cadastro { background: #00c851; color: #000; }
.fcrm-nome { font-size: 13px; font-weight: 600; }
.fcrm-dropdown { display: flex; gap: 8px; }
.fcrm-dropdown a { font-size: 12px; color: #00c851; text-decoration: none; }

/* ── MOBILE ───────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .fcrl-card { max-width: 100%; border-radius: 12px; }
    .fcrl-painel { padding: 20px 18px 0; }
    .fcrl-tab { font-size: 11px; padding: 10px 4px 9px; }
    .fcrl-btn-principal { font-size: 14px; }
}
