﻿:root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --border: #e9ebef;
    --border-strong: #dde1e7;
    --text-primary: #181d27;
    --text-secondary: #667085;
    --text-muted: #98a2b3;
    --blue-600: #004277;
    --blue-700: #003257;
    --blue-50: #f0f3ff;
    --green-600: #12a26b;
    --red-600: #d3453f;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 8px;
    --shadow-card: 0 1px 2px rgba(23,27,38,.04), 0 24px 48px -16px rgba(23,27,38,.16), 0 12px 24px -12px rgba(23,27,38,.10);
}

html, body.BackGroundImg {
    height: 100%;
    overflow: hidden;
}

body.BackGroundImg {
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
}

    body.BackGroundImg .body-content {
        flex: 1 1 auto;
        min-height: 0;
        padding-top: 0;
        overflow: hidden;
    }

.page-acesso {
    height: 100%;
    display: flex;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.navbar {
    padding-top: .35rem;
    padding-bottom: .35rem;
    flex: none;
}

    .navbar-brand img {
        height: 30px;
        width: auto;
    }

.visual-panel {
    flex: 1 1 46%;
    position: relative;
    background: var(--surface);
    border-right: 1px solid var(--border);
    color: var(--text-primary);
    padding: 32px 52px 28px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.visual-center {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

    .visual-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image:
            radial-gradient(circle at 12% 18%, rgba(0,66,119,.08) 0, transparent 42%),
            radial-gradient(circle at 90% 82%, rgba(0,66,119,.06) 0, transparent 45%);
        pointer-events: none;
    }

.brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 11px;
}

    .brand .logo-mark {
        width: 44px;
        height: 44px;
        display: block;
        background: var(--blue-600);
        border-radius: 10px;
        padding: 6px;
        box-sizing: border-box;
        object-fit: contain;
    }

.brand-text {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.01em;
    white-space: nowrap;
}

    .brand-text .light {
        font-weight: 500;
        color: var(--text-secondary);
    }

.visual-illustration {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 460px;
}

.illustration-img {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
    margin: -8px 0 -4px -6px;
    filter: brightness(0) saturate(100%) invert(19%) sepia(89%) saturate(1955%) hue-rotate(199deg) brightness(94%) contrast(97%);
}

.visual-illustration h1 {
    font-size: 30px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -.01em;
    line-height: 1.22;
    color: var(--blue-600);
}

.visual-illustration p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.visual-badges {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 460px;
}

.visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--blue-50);
    border: 1px solid rgba(0,66,119,.18);
    color: var(--blue-700);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.visual-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--text-muted);
}

    .visual-footer .dev {
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .visual-footer .dev strong {
        color: var(--text-secondary);
        font-weight: 700;
    }

/* ---------- Painel direito: formulário ---------- */
.form-panel {
    flex: 1 1 54%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 28px 24px;
    background:
        radial-gradient(620px 420px at 82% 8%, rgba(0,66,119,.06), transparent 60%),
        radial-gradient(520px 420px at 12% 96%, rgba(124,92,255,.05), transparent 55%),
        var(--bg);
    position: relative;
}

.form-card {
    width: 100%;
    max-width: 460px;
    background: var(--surface);
    border: 1px solid rgba(23,27,38,.05);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    padding: 26px 40px 26px;
    position: relative;
}

.form-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--blue-600);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 10px;
}

.form-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.form-card > p.lead {
    margin: 0 0 26px;
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
}

    .field label {
        font-size: 13px;
        font-weight: 700;
        color: var(--text-primary);
    }

    .field label .req {
        color: var(--red-600);
        font-weight: 700;
    }

.input-wrap {
    position: relative;
}

    .input-wrap i.leading {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        font-size: 13.5px;
        pointer-events: none;
    }

    .input-wrap input {
        width: 100%;
        font-family: inherit;
        font-size: 13.5px;
        color: var(--text-primary);
        background: #fff;
        border: 1px solid var(--border-strong);
        border-radius: var(--radius-sm);
        padding: 11px 12px 11px 38px;
        outline: none;
        transition: border-color .15s ease, box-shadow .15s ease;
    }

        .input-wrap input:focus {
            border-color: var(--blue-600);
            box-shadow: 0 0 0 3px rgba(0,66,119,.12);
        }

    .input-wrap.has-error input {
        border-color: var(--red-600);
    }

        .input-wrap.has-error input:focus {
            box-shadow: 0 0 0 3px rgba(211,69,63,.12);
        }

    .input-wrap .toggle-pass {
        position: absolute;
        right: 11px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        font-size: 13px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
    }

        .input-wrap .toggle-pass:hover {
            color: var(--text-secondary);
        }

.field-error-msg {
    display: none;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--red-600);
    gap: 5px;
    align-items: center;
}

    .field-error-msg.show {
        display: flex;
    }

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 18px;
    gap: 16px;
}

.forgot-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--blue-600);
    text-decoration: none;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

.btn-primary-custom {
    width: 100%;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--blue-600);
    color: #fff;
    transition: background .15s ease, transform .1s ease;
}

    .btn-primary-custom:active {
        transform: translateY(1px);
    }

    .btn-primary-custom:hover {
        background: var(--blue-700);
        color: #fff;
        text-decoration: none;
    }

    .btn-primary-custom:disabled {
        opacity: .7;
        cursor: default;
    }

.form-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 18px 0 0;
}

.form-footer {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

    .form-footer a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: var(--blue-600);
        font-weight: 600;
        text-decoration: none;
    }

        .form-footer a i {
            font-size: 12px;
        }

        .form-footer a:hover {
            text-decoration: underline;
        }

    .form-footer.secondary {
        margin-top: 8px;
    }

/* ---------- Dicas de segurança e privacidade ---------- */
.security-wrap {
    width: 100%;
    max-width: 460px;
    margin: 10px auto 0;
    position: relative;
}

.security-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: none;
    border: none;
    padding: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: color .15s ease, background .15s ease;
}

    .security-toggle:hover {
        color: var(--text-secondary);
        background: #f2f3f5;
    }

    .security-toggle i.chev {
        font-size: 9px;
        transition: transform .18s ease;
    }

    .security-toggle.open i.chev {
        transform: rotate(180deg);
    }

.security-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(23,27,38,.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: 1055;
}

    .security-backdrop.open {
        opacity: 1;
        pointer-events: auto;
    }

.security-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 92%;
    max-width: 380px;
    z-index: 1060;
    opacity: 0;
    transform: translate(-50%,-50%) scale(.97);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

    .security-panel.open {
        opacity: 1;
        transform: translate(-50%,-50%) scale(1);
        pointer-events: auto;
    }

.security-panel-inner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 24px 48px -12px rgba(23,27,38,.28), 0 8px 20px -8px rgba(23,27,38,.12);
    padding: 17px 19px;
    max-height: min(420px, 72vh);
    overflow-y: auto;
    box-sizing: border-box;
}

.security-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--border);
}

.security-modal-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-primary);
}

    .security-modal-title i {
        color: var(--blue-600);
        font-size: 12px;
    }

.security-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 6px;
    transition: color .15s ease, background .15s ease;
}

    .security-close:hover {
        color: var(--text-secondary);
        background: #f2f3f5;
    }

.security-tip {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

    .security-tip + .security-tip {
        margin-top: 8px;
    }

    .security-tip i {
        color: var(--blue-600);
        font-size: 11px;
        margin-top: 3px;
        flex: none;
        width: 12px;
    }

.security-lgpd {
    margin-top: 12px;
    padding: 11px 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border-top: none;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    display: flex;
    gap: 7px;
    align-items: flex-start;
}

    .security-lgpd i {
        color: var(--text-muted);
        font-size: 11px;
        margin-top: 2px;
        flex: none;
    }

    .security-lgpd a {
        color: var(--blue-600);
        font-weight: 600;
        text-decoration: none;
    }

        .security-lgpd a:hover {
            text-decoration: underline;
        }

/* ---------- Modal: escolha do tipo de cadastro ---------- */
.cadastro-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(23,27,38,.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: 1050;
}

    .cadastro-backdrop.open {
        opacity: 1;
        pointer-events: auto;
    }

.cadastro-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 92%;
    max-width: 420px;
    z-index: 1055;
    opacity: 0;
    transform: translate(-50%,-50%) scale(.97);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

    .cadastro-panel.open {
        opacity: 1;
        transform: translate(-50%,-50%) scale(1);
        pointer-events: auto;
    }

.cadastro-panel-inner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 24px 48px -12px rgba(23,27,38,.28), 0 8px 20px -8px rgba(23,27,38,.12);
    padding: 19px 21px 21px;
    max-height: min(480px, 78vh);
    overflow-y: auto;
    box-sizing: border-box;
}

.cadastro-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.cadastro-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
}

    .cadastro-title i {
        color: var(--blue-600);
        font-size: 13px;
    }

.cadastro-back {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 6px 4px 0;
    line-height: 1;
    border-radius: 6px;
    flex: none;
}

    .cadastro-back:hover {
        color: var(--text-primary);
    }

.cadastro-question {
    margin: 0 0 14px;
    font-size: 13.5px;
    color: var(--text-secondary);
}

.cadastro-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cadastro-option {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 13px 14px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

    .cadastro-option:hover {
        border-color: var(--blue-600);
        background: var(--blue-50);
        box-shadow: 0 0 0 3px rgba(0,66,119,.08);
    }

    .cadastro-option .icon {
        flex: none;
        width: 38px;
        height: 38px;
        border-radius: 9px;
        background: var(--blue-50);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--blue-600);
        font-size: 15px;
    }

    .cadastro-option .text {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

        .cadastro-option .text strong {
            font-size: 13.5px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .cadastro-option .text span {
            font-size: 12px;
            color: var(--text-secondary);
            line-height: 1.4;
        }

    .cadastro-option .arrow {
        flex: none;
        font-size: 12px;
        color: var(--text-muted);
    }

.cadastro-desc {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.cadastro-checklist {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

    .cadastro-checklist li {
        display: flex;
        align-items: center;
        gap: 9px;
        font-size: 12.5px;
        color: var(--text-secondary);
    }

        .cadastro-checklist li i {
            color: var(--green-600);
            font-size: 11px;
        }

@media (max-width: 900px) {
    .visual-panel {
        display: none;
    }

    .form-panel {
        flex: 1 1 100%;
    }
}

@media (max-width: 440px) {
    .form-panel {
        padding: 32px 16px;
    }

    .form-card {
        padding: 26px 22px 26px;
    }
}
