/* ====================================================================
   FRANCISCO CURSOS � Plugin Stylesheet
   ==================================================================== */

/* 1. BOX SIZING GLOBAL DO PLUGIN */
.fc-login-split,
.fc-login-split *,
.fc-shell,
.fc-shell * {
    box-sizing: border-box;
}

/* 2. ESCONDER ELEMENTOS DO TEMA NA PAGINA DO PLUGIN
   Alvos: Hello Elementor header, footer, titulo da pagina, logos         */
body.page-id-962 .site-header,
body.page-id-962 .site-footer,
body.page-id-962 .entry-header,
body.page-id-962 .entry-title,
body.page-id-962 .site-branding,
body.page-id-962 .custom-logo-link,
body.page-id-962 .elementor-location-header,
body.page-id-962 .elementor-location-footer,
body.page-id-962 .dynamic-footer,
.fc-app-login-page .site-header,
.fc-app-login-page .site-footer,
.fc-app-login-page .entry-header,
.fc-app-login-page .entry-title,
.fc-app-login-page .site-branding,
.fc-app-login-page .custom-logo-link,
.fc-app-login-page .elementor-location-header,
.fc-app-login-page .elementor-location-footer,
.fc-app-login-page .dynamic-footer {
    display: none !important;
}

/* Remover padding/margin dos wrappers internos do WordPress */
body.page-id-962 .site-main,
body.page-id-962 .site-content,
body.page-id-962 .content-area,
body.page-id-962 .page-content,
body.page-id-962 .entry-content,
body.page-id-962 article.page,
.fc-app-login-page .site-main,
.fc-app-login-page .site-content,
.fc-app-login-page .content-area,
.fc-app-login-page .page-content,
.fc-app-login-page .entry-content,
.fc-app-login-page article.page {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* ====================================================================
   3. LOGIN SPLIT-SCREEN (tela cheia, cobre o tema)
   ==================================================================== */

.fc-login-split {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    overflow: hidden;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter",
                 Tahoma, Verdana, sans-serif;
}

/* ---- Painel Esquerdo � Branding / Hero ---- */
.fc-ls-left {
    width: 45%;
    min-width: 280px;
    background: linear-gradient(155deg, #1d4275 0%, #0f2547 55%, #080f1f 100%);
    display: flex;
    flex-direction: column;
    padding: 52px 56px;
    overflow-y: auto;
}

/* Logo / Nome do sistema */
.fc-ls-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 56px;
}

.fc-ls-brand svg {
    color: #e8891a;
    flex-shrink: 0;
}

.fc-ls-brand span {
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Hero text */
.fc-ls-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fc-ls-hero h1 {
    color: #ffffff !important;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.22;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    text-decoration: none !important;
}

.fc-ls-hero h1 em {
    color: #e8891a !important;
    font-style: normal;
    text-decoration: none !important;
}

.fc-ls-hero > p {
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 40px;
}

/* Lista de features */
.fc-ls-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fc-ls-features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 15px;
    line-height: 1.45;
}

.fc-ls-features li svg {
    color: #e8891a;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Rodape esquerdo */
.fc-ls-copy {
    margin-top: 56px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.30) !important;
    font-size: 12px;
}

/* ---- Painel Direito � Formulario ---- */
.fc-ls-right {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    overflow-y: auto;
}

.fc-ls-form-wrap {
    width: 100%;
    max-width: 420px;
}

.fc-ls-form-wrap h2 {
    margin: 0 0 10px;
    color: #0c1f30 !important;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.fc-ls-subtitle {
    margin: 0 0 36px;
    color: #5a7083 !important;
    font-size: 15px;
    line-height: 1.6;
}

/* Formulario */
.fc-ls-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.fc-lf-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fc-lf-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fc-lf-field label,
.fc-lf-label-row label {
    color: #1a3246 !important;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
}

.fc-lf-forgot {
    color: #1666a8 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.fc-lf-forgot:hover {
    text-decoration: underline;
}

/* Botão "Esqueceu a senha?" linkado — igual ao .fc-lf-forgot mas como button */
.fc-lf-forgot-link {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    color: #1666a8 !important;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    box-shadow: none !important;
    outline: none;
}
.fc-lf-forgot-link:hover { text-decoration: underline; }

/* Botão "← Voltar ao login" */
.fc-lf-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 4px;
    cursor: pointer;
    color: #486478 !important;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    box-shadow: none !important;
    outline: none;
}
.fc-lf-back-link:hover { color: #1666a8 !important; }

/* Alertas de erro e sucesso */
.fc-lf-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 4px;
}
.fc-lf-alert svg { flex-shrink: 0; margin-top: 1px; }
.fc-lf-alert--error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239 !important;
}
.fc-lf-alert--error svg { color: #e11d48; }
.fc-lf-alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #14532d !important;
}
.fc-lf-alert--success svg { color: #16a34a; }

/* Input com icone */
.fc-lf-input-wrap {
    position: relative !important;
    display: flex !important;
    align-items: center;
}

.fc-lf-input-wrap > svg {
    position: absolute !important;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    color: #96b0bf;
    pointer-events: none;
    flex-shrink: 0;
}

.fc-lf-input-wrap input {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1.5px solid #d0dde8;
    border-radius: 12px;
    background: #f7fbfd !important;
    color: #0c1f30 !important;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-text-fill-color: #0c1f30 !important;
    box-shadow: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.fc-lf-input-wrap input::placeholder {
    color: #a6bdc9 !important;
    -webkit-text-fill-color: #a6bdc9 !important;
}

.fc-lf-input-wrap input:focus {
    border-color: #1666a8;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(22, 102, 168, 0.13);
}

/* Input com botão de olho — padding extra à direita */
.fc-lf-input-wrap input.fc-has-eye {
    padding-right: 48px !important;
}

/* Botão show/hide senha */
.fc-lf-eye {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 4px !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    min-height: unset !important;
    cursor: pointer !important;
    color: #96b0bf !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    outline: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2 !important;
    transition: color 0.15s !important;
}
.fc-lf-eye:hover {
    color: #1666a8 !important;
    background: none !important;
}
.fc-lf-eye svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 18px !important;
    height: 18px !important;
    pointer-events: none !important;
    flex-shrink: 0 !important;
}
/* ícone de olho fechado: oculto por padrão */
.fc-lf-eye .fc-eye-hide {
    display: none !important;
}
/* quando senha está visível, inverte os ícones */
.fc-lf-eye--visible .fc-eye-show {
    display: none !important;
}
.fc-lf-eye--visible .fc-eye-hide {
    display: block !important;
}

/* Botao de submit */
.fc-lf-submit {
    width: 100%;
    height: 52px;
    margin-top: 4px;
    border: none !important;
    outline: none !important;
    border-radius: 12px;
    background: linear-gradient(135deg, #1d4275 0%, #0f2547 100%) !important;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: filter 0.2s, box-shadow 0.2s, transform 0.1s;
    box-shadow: 0 4px 20px rgba(8, 15, 31, 0.40);
    -webkit-appearance: none;
    appearance: none;
}

.fc-lf-submit:hover {
    filter: brightness(1.18);
    box-shadow: 0 6px 26px rgba(8, 15, 31, 0.50);
}

.fc-lf-submit:active {
    transform: translateY(1px);
    filter: brightness(0.95);
}

.fc-lf-submit:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(29, 66, 117, 0.40);
}

/* Nota de admin */
.fc-ls-admin-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 24px;
    padding: 14px 18px;
    border-radius: 10px;
    background: #f0f6fc;
    border: 1px solid #d4e8f5;
    color: #486478 !important;
    font-size: 13px;
    line-height: 1.5;
}

.fc-ls-admin-note svg {
    color: #1666a8;
    flex-shrink: 0;
    margin-top: 1px;
}

.fc-ls-admin-note strong {
    color: #1a3a5c !important;
    font-weight: 700;
}

/* ====================================================================
   4. RESPONSIVO � telas menores que 768px
   ==================================================================== */

@media (max-width: 768px) {
    .fc-login-split {
        flex-direction: column;
    }

    /* Painel esquerdo vira um header compacto no mobile */
    .fc-ls-left {
        width: 100%;
        min-width: unset;
        padding: 20px 24px;
        background: linear-gradient(135deg, #1d4275 0%, #0f2547 100%);
        flex-direction: row;
        align-items: center;
        flex: 0 0 auto;
    }

    .fc-ls-brand {
        margin-bottom: 0;
    }

    /* Esconder hero e features no mobile, manter apenas o brand */
    .fc-ls-hero,
    .fc-ls-copy {
        display: none;
    }

    .fc-ls-right {
        flex: 1;
        padding: 36px 24px 48px;
        overflow-y: auto;
        align-items: flex-start;
        justify-content: center;
    }

    .fc-ls-form-wrap {
        max-width: 100%;
    }

    .fc-ls-form-wrap h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .fc-ls-subtitle {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .fc-lf-input-wrap input {
        height: 50px;
        font-size: 16px; /* evita zoom no iOS */
    }

    .fc-lf-submit {
        height: 50px;
        font-size: 17px;
    }
}

/* ====================================================================
   5. SHELL GERAL (Dashboard pos-login e outras views)
   ==================================================================== */

.fc-shell {
    max-width: 1040px;
    margin: 32px auto;
    padding: 24px;
    border: 1px solid #d8dde6;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
    box-shadow: 0 16px 40px rgba(13, 38, 59, 0.08);
    color: #183247;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.fc-shell h2,
.fc-shell h3,
.fc-shell p,
.fc-shell li,
.fc-shell label,
.fc-shell a,
.fc-shell span {
    color: inherit !important;
}

.fc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.fc-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.fc-card {
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #dbe2ea;
    background: #ffffff;
}

.fc-kicker {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #d9edf9;
    color: #0f5d8c !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fc-link {
    color: #0b5cab !important;
    text-decoration: none;
    font-weight: 600;
}

/* Botao padrao do shell */
.fc-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 0;
    border-radius: 12px;
    background: #1b5fa0;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.fc-submit:hover {
    background: #154e8a;
}

/* Formulario generico do shell */
.fc-form {
    margin: 24px 0;
}

.fc-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.fc-form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.fc-form-row input {
    flex: 1 1 280px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #c8d2de;
    border-radius: 10px;
}

.fc-form-row button {
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    background: #1b5fa0;
    color: #ffffff;
    cursor: pointer;
}

.fc-status-valid {
    border-color: #8bc34a;
}

.fc-status-invalid {
    border-color: #d9534f;
}

/* ====================================================================
   6. RESPONSIVO DO SHELL
   ==================================================================== */

@media (max-width: 640px) {
    .fc-shell {
        margin: 16px !important;
        padding: 18px;
    }

    .fc-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
