/* =============================================
   LOGIN/CADASTRO PAGE — full-screen split layout
   ============================================= */

.dn-header-top,
.dn-header-info,
.dn-navbar,
.dn-footer,
#header,
.menu-home,
.rodape {
    display: none !important;
}

.main-container {
    padding: 0 !important;
    margin: 0 !important;
}

body {
    margin: 0;
    padding: 0;
    background: #f5f4f0;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* =============================================
   LAYOUT SPLIT
   ============================================= */
.login-split {
    display: grid;
    grid-template-columns: 46% 54%;
    min-height: 100vh;
}

/* --- lado esquerdo: imagem --- */
.login-left {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: #1a2b4a;
}

.login-left-bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/LeftPanel.png');
    background-size: cover;
    background-position: center;
    filter: brightness(.92);
}

.login-left-logo {
    position: absolute;
    top: 28px;
    left: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    z-index: 2;
    text-decoration: none;
}

/* Só a imagem da logo fica com fundo branco */
.login-left-logo img {
    height: 36px;
    background: rgba(255,255,255,.92);
    border-radius: 10px;
    padding: 8px 10px;
    backdrop-filter: blur(4px);
    display: block;
}

.login-left-logo-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,.35);
}

.login-left-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.login-left-logo-text span:first-child {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.7);
    font-weight: 600;
}

.login-left-logo-text span:last-child {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

@media (max-width: 600px) {
    /* Mobile: logo mantém fundo branco, sem o container semi-transparente */
    .login-left-logo {
        top: 16px;
        left: 16px;
        gap: 10px;
    }
    .login-left-logo img {
        background: rgba(255,255,255,.92);
        border-radius: 8px;
        padding: 6px 10px;
    }
}

/* --- lado direito: formulário --- */
.login-right {
    display: flex;
    justify-content: center;
    padding: 48px 64px;
    background: #f5f4f0;
    overflow-y: auto;
}

.login-box {
    width: 100%;
    max-width: 460px;
    padding-top: 8px;
}

/* flash */
.login-flash { margin-bottom: 20px; }

/* =============================================
   TABS
   ============================================= */
.login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e2e6ed;
    margin-bottom: 28px;
}

.login-tab {
    padding: 14px 0;
    font-size: 15px;
    font-weight: 600;
    color: #a8b8d8;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: color .2s, border-color .2s;
    margin-bottom: -1px;
    text-decoration: none;
    display: block;
}

.login-tab.active {
    color: #1a2b4a;
    border-bottom-color: #1a2b4a;
    font-weight: 700;
}

.login-tab:hover { color: #1a2b4a; }

/* painéis */
.login-panel { display: none; }
.login-panel.active { display: block; }

/* =============================================
   CAMPOS COMPARTILHADOS
   ============================================= */
.lf-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #6b7a99;
    margin-bottom: 6px;
    display: block;
}
.lf-required {
    color: #e74c3c;
    margin-left: 2px;
}

.lf-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.lf-row .lf-label { margin-bottom: 0; }

.lf-esqueceu {
    font-size: 12px;
    font-weight: 600;
    color: #1a2b4a;
    text-decoration: none;
}
.lf-esqueceu:hover { text-decoration: underline; }

.lf-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.lf-input,
.lf-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #dde2ea;
    border-radius: 8px;
    font-size: 14px;
    color: #1a2b4a;
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
    appearance: none;
}
.lf-input,
.lf-select { font-weight: 500; }
.lf-input:focus,
.lf-select:focus { border-color: #1a2b4a; box-shadow: 0 0 0 3px rgba(26,43,74,.07); }
.lf-input::placeholder { color: #a8b8d8; font-weight: 400; }
.lf-input.has-icon { padding-right: 46px; }

/* select arrow */
.lf-select-wrapper {
    position: relative;
    margin-bottom: 16px;
}
.lf-select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #6b7a99;
    pointer-events: none;
}

/* grid de dois campos lado a lado */
.lf-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lf-grid-auto {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
}

/* eye button */
.lf-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #a8b8d8;
    padding: 0;
    display: flex;
    align-items: center;
}
.lf-eye:hover { color: #1a2b4a; }

/* radio buttons */
.lf-radio-group {
    display: flex;
    gap: 28px;
    margin-bottom: 20px;
    align-items: center;
}

.lf-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #1a2b4a;
}

.lf-radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #1a2b4a;
    cursor: pointer;
}

/* seção interna (ex: ENDEREÇO, ACESSO AO SISTEMA) */
.lf-section-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #1a2b4a;
    margin: 24px 0 16px;
    padding-top: 8px;
    border-top: 1px solid #e8edf5;
}

/* força da senha */
.lf-forca-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.lf-forca-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #6b7a99;
    font-weight: 600;
}
.lf-forca-bar {
    width: 80px;
    height: 5px;
    background: #e2e6ed;
    border-radius: 99px;
    overflow: hidden;
}
.lf-forca-fill {
    height: 100%;
    border-radius: 99px;
    width: 0%;
    transition: width .3s, background .3s;
}

.lf-hint {
    font-size: 11px;
    color: #8a99b8;
    line-height: 1.5;
    margin-top: -10px;
    margin-bottom: 16px;
}

/* =============================================
   BOTÕES
   ============================================= */
.btn-primary-full {
    width: 100%;
    padding: 14px;
    background: #1a2b4a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background .2s;
    font-family: inherit;
}
.btn-primary-full:hover { background: #243d6a; }

.btn-outline-full {
    width: 100%;
    padding: 13px;
    background: transparent;
    color: #1a2b4a;
    border: 1.5px solid #dde2ea;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    display: block;
}
.btn-outline-full:hover { border-color: #1a2b4a; background: #f0f1f3; color: #1a2b4a; }

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 860px) {
    .login-split { grid-template-columns: 1fr; }
    .login-left { display: none; }
    .login-right { padding: 40px 24px; }
    .lf-grid-2, .lf-grid-auto { grid-template-columns: 1fr; }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 600px) {
    .login-split { grid-template-columns: 1fr; min-height: 100vh; }

    .login-left {
        display: block;
        position: relative;
        height: 140px;
        min-height: 140px;
    }
    .login-left-bg { filter: brightness(.85); }

    .login-left-logo-text span:last-child { font-size: 13px; }
    .login-left-logo img { height: 28px; padding: 6px 8px; }

    .login-right {
        padding: 24px 20px 32px;
        background: #f5f4f0;
        min-height: calc(100vh - 140px);
        display: flex;
        flex-direction: column;
    }
    .login-box { max-width: 100%; padding-top: 0; flex: 1; display: flex; flex-direction: column; }

    .login-tabs {
        margin-bottom: 24px;
    }
    .login-tab { font-size: 14px; padding: 12px 0; }

    .lf-input, .lf-select { font-size: 15px; padding: 13px 14px; }
    .lf-label { font-size: 10px; }

    .lf-grid-2, .lf-grid-auto { grid-template-columns: 1fr; gap: 0; }

    .btn-primary-full {
        font-size: 15px;
        padding: 15px;
        margin-top: auto;
    }
    .btn-outline-full { font-size: 14px; padding: 13px; }

    .lf-section-title { font-size: 10px; }
    .lf-hint { font-size: 11px; }
    .lf-row { flex-direction: column; gap: 4px; align-items: flex-start; }
    .lf-esqueceu { font-size: 13px; display: block; text-align: center; width: 100%; margin-top: 4px; }
}

/* Cadastro Parana2 — campos bloqueados até consulta de CPF/CNPJ */
.js-cadastro-bloqueado[readonly],
.js-cadastro-acesso[readonly] {
    background-color: #f4f6f8;
    cursor: not-allowed;
}

.lf-select.js-cadastro-bloqueado:disabled {
    background-color: #f4f6f8;
    cursor: not-allowed;
    opacity: 1;
}

#cadastro-cpf-msg.lf-hint-erro { color: #c0392b; }
#cadastro-cpf-msg.lf-hint-ok { color: #1a7a5a; }

#cadastro-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* =============================================
   CENTRAL DE AJUDA — trigger + modal
   ============================================= */
.login-panel .login-ajuda {
    display: block !important;
    width: 100% !important;
    margin: 20px 0 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.4;
    color: #1a2b4a !important;
    font-weight: 700 !important;
}

.login-panel .login-ajuda-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    margin-right: 6px;
    border-radius: 50%;
    border: 1.5px solid #6b7a99;
    color: #6b7a99;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.login-panel .login-ajuda a {
    color: #2563eb !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}
.login-panel .login-ajuda a:hover,
.login-panel .login-ajuda a:focus {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
}

.ajuda-modal-dialog {
    width: 92%;
    max-width: 640px;
    margin: 1.75rem auto;
}

.ajuda-modal-content {
    position: relative;
    border: none;
    border-radius: 16px;
    padding: 36px 32px 28px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
}

.ajuda-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.ajuda-modal-close:hover { color: #475569; }

.ajuda-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.ajuda-modal-header-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
}

.ajuda-modal-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.ajuda-modal-subtitle {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.ajuda-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ajuda-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 18px;
    text-align: center;
    background: #fff;
}

.ajuda-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ajuda-card-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.ajuda-card-desc {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
    min-height: 38px;
}

.ajuda-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #2563eb;
    border-radius: 8px;
    color: #2563eb;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.ajuda-card-btn:hover,
.ajuda-card-btn:focus {
    background: #eff6ff;
    color: #1d4ed8;
    text-decoration: none;
}

.ajuda-modal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    font-size: 12px;
    color: #64748b;
    text-align: center;
}
.ajuda-modal-footer svg { color: #2563eb; flex-shrink: 0; }

@media (max-width: 575px) {
    .ajuda-modal-content { padding: 28px 18px 22px; }
    .ajuda-modal-body { grid-template-columns: 1fr; }
    .ajuda-card-desc { min-height: 0; }
}

/* =============================================
   MODAL PRÉ-CADASTRO
   ============================================= */
.precadastro-modal-dialog {
    width: 94%;
    max-width: 860px;
    margin: 1.5rem auto;
}

.precadastro-modal-content {
    position: relative;
    border: none;
    border-radius: 16px;
    padding: 32px 32px 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
}

.precadastro-header {
    text-align: center;
    margin-bottom: 18px;
    padding-right: 20px;
}

.precadastro-header-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.precadastro-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #1a2b4a;
}

.precadastro-subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #64748b;
}

.precadastro-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0 0 18px;
}

.precadastro-question {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: #1a2b4a;
    text-align: center;
}

.precadastro-opcoes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.precadastro-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 18px 18px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.precadastro-card--servidor {
    background: #f5f8fc;
    border-color: #c8d6ea;
}

.precadastro-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.precadastro-card-icon--azul {
    background: #1a2b4a;
    color: #fff;
}

.precadastro-card-icon--verde {
    background: #1a7a5a;
    color: #fff;
}

.precadastro-card-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
}

.precadastro-card-title--azul { color: #1a2b4a; }
.precadastro-card-title--verde { color: #1a7a5a; }

.precadastro-card-desc {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
    text-align: center;
    flex: 1;
}

.precadastro-card-desc strong { color: #1a2b4a; }

.precadastro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background .15s, color .15s, border-color .15s;
    line-height: 1.3;
}

.precadastro-btn--azul {
    background: #1a2b4a;
    color: #fff;
}
.precadastro-btn--azul:hover,
.precadastro-btn--azul:focus {
    background: #243d6a;
    color: #fff;
    text-decoration: none;
}

.precadastro-btn--verde {
    background: #1a7a5a;
    color: #fff;
}
.precadastro-btn--verde:hover,
.precadastro-btn--verde:focus {
    background: #156b4e;
    color: #fff;
}

.precadastro-btn--outline {
    background: #fff;
    color: #1a2b4a;
    border: 1.5px solid #1a2b4a;
}
.precadastro-btn--outline:hover,
.precadastro-btn--outline:focus {
    background: #eff4fb;
    color: #1a2b4a;
}

.precadastro-ou {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}
.precadastro-ou::before,
.precadastro-ou::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dbe3ef;
}
.precadastro-ou span { flex-shrink: 0; }

.precadastro-alerta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 10px;
    background: #fff8e6;
    border: 1px solid #f5e6b8;
    margin-bottom: 20px;
    text-align: center;
}
.precadastro-alerta-titulo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.precadastro-alerta-titulo svg {
    flex-shrink: 0;
    color: #c48a0a;
}
.precadastro-alerta-titulo strong {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a2b4a;
}
.precadastro-alerta p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #475569;
    font-weight: 500;
}

.precadastro-manuais {
    margin-bottom: 16px;
}

.precadastro-manuais-titulo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #1a2b4a;
}
.precadastro-manuais-titulo svg { color: #1a2b4a; }

.precadastro-manuais-lista {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.precadastro-manual {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    background: #fff;
    transition: border-color .15s, background .15s;
}
.precadastro-manual:hover,
.precadastro-manual:focus {
    text-decoration: none;
    background: #f8fafc;
}

.precadastro-manual-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.precadastro-manual--verde .precadastro-manual-icon {
    background: #e8f5ef;
    color: #1a7a5a;
}
.precadastro-manual--azul .precadastro-manual-icon {
    background: #e8eef8;
    color: #1a2b4a;
}

.precadastro-manual-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.precadastro-manual-text strong {
    font-size: 13px;
    font-weight: 700;
    color: #1a2b4a;
    line-height: 1.3;
}
.precadastro-manual-text small {
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
}

.precadastro-manual-dl {
    flex-shrink: 0;
    color: #94a3b8;
}
.precadastro-manual--verde:hover .precadastro-manual-dl { color: #1a7a5a; }
.precadastro-manual--azul:hover .precadastro-manual-dl { color: #1a2b4a; }

.precadastro-suporte {
    margin: 0;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}
.precadastro-suporte a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: underline;
}
.precadastro-suporte a:hover,
.precadastro-suporte a:focus {
    color: #1d4ed8;
}

@media (max-width: 767px) {
    .precadastro-modal-content { padding: 28px 16px 20px; }
    .precadastro-opcoes,
    .precadastro-manuais-lista { grid-template-columns: 1fr; }
    .precadastro-title { font-size: 19px; }
    .precadastro-question { font-size: 15px; }
}
