/* =============================================
   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/Left%20Panel.svg');
    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-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; }
}
