:root {
    --navy-950: #031432;
    --navy-900: #061d43;
    --navy-800: #0b2c5d;
    --cor-primaria: #075ed1;
    --cor-secundaria: #0a4fac;
    --blue-600: var(--cor-primaria);
    --blue-500: var(--cor-secundaria);
    --text: #14233b;
    --muted: #728198;
    --line: #dce5f0;
    --surface: #ffffff;
    --background: #eef3f9;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--background);
    font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.access-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
}

.access-shell.direct-login { grid-template-columns: minmax(0, 1fr); }
.direct-login .login-panel { width: 100%; }

.profile-panel {
    position: sticky;
    top: 0;
    min-height: 100vh;
    padding: 42px 38px 28px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(180deg, rgba(3, 20, 50, .98), rgba(6, 35, 82, .99));
}

.profile-panel::before,
.profile-panel::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(90, 164, 255, .11);
    transform: rotate(-18deg);
    pointer-events: none;
}

.profile-panel::before { width: 520px; height: 520px; left: -290px; bottom: -280px; }
.profile-panel::after { width: 310px; height: 310px; right: -190px; top: 70px; }

.brand,
.profile-title,
.profile-list,
.panel-footer { position: relative; z-index: 1; }

.brand { text-align: center; margin-bottom: 32px; }
.brand img {
    display: block;
    width: 230px;
    height: 112px;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .22));
}
.brand span { display: block; margin-top: 7px; color: #79c4ff; font-size: 13px; }

.profile-title { text-align: center; margin-bottom: 22px; }
.profile-title h1 { margin: 0 0 7px; font-size: 20px; }
.profile-title p { margin: 0; color: #9fb4d1; font-size: 13px; }
.profile-list { display: grid; gap: 10px; }

.profile-button {
    width: 100%;
    min-height: 68px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid rgba(130, 180, 244, .3);
    border-radius: 11px;
    color: #fff;
    background: rgba(13, 45, 91, .46);
    text-align: left;
    cursor: pointer;
    transition: transform .22s ease, border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.profile-button:hover,
.profile-button:focus-visible {
    transform: translateX(5px);
    border-color: var(--cor-primaria);
    background: rgba(19, 66, 127, .76);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
    outline: none;
}

.profile-button.is-active {
    border-color: rgba(115, 184, 255, .85);
    background: rgba(19, 66, 127, .78);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .16);
}

.profile-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--profile-a), var(--profile-b));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 5px 14px rgba(0, 0, 0, .2);
}
.profile-icon svg { width: 23px; height: 23px; fill: #fff; }
.profile-copy strong { display: block; margin-bottom: 3px; font-size: 14px; }
.profile-copy small { display: block; color: #adc0db; font-size: 11px; }
.profile-arrow { color: #b7d5f6; font-size: 27px; line-height: 1; }
.profile-tag { color: #95abc9; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.profile-admin { --profile-a: #6d2ce8; --profile-b: #b035e7; }
.profile-franquia { --profile-a: #ec8d0a; --profile-b: #f2b322; }
.profile-corretor { --profile-a: #08a2b9; --profile-b: #25c7d3; }
.profile-proprietario { --profile-a: #3ca539; --profile-b: #7bcf3c; }
.profile-inquilino { --profile-a: #087ddb; --profile-b: #18a8ef; }
.panel-footer { margin: 22px 0 0; text-align: center; color: #8197b7; font-size: 11px; }

/* A identidade das áreas de acesso é derivada integralmente da paleta configurada. */
.profile-panel {
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--cor-secundaria) 58%, #07131f),
        color-mix(in srgb, var(--cor-primaria) 72%, #06131f));
}
.profile-panel::before,.profile-panel::after { border-color: color-mix(in srgb, var(--cor-primaria) 36%, transparent); }
.brand span { color: color-mix(in srgb, var(--cor-primaria) 32%, white); }
.profile-title p,.profile-copy small,.profile-tag,.panel-footer { color: color-mix(in srgb, var(--cor-primaria) 20%, white); }
.profile-button { border-color: color-mix(in srgb, var(--cor-primaria) 42%, transparent); background: color-mix(in srgb, var(--cor-secundaria) 24%, transparent); }
.profile-button:hover,.profile-button:focus-visible,.profile-button.is-active { border-color: color-mix(in srgb, var(--cor-primaria) 72%, white); background: color-mix(in srgb, var(--cor-primaria) 48%, transparent); }
.profile-arrow { color: color-mix(in srgb, var(--cor-primaria) 35%, white); }
.login-panel {
    background:
        radial-gradient(circle at 80% 16%, color-mix(in srgb, var(--cor-primaria) 22%, transparent), transparent 32%),
        radial-gradient(circle at 18% 86%, color-mix(in srgb, var(--cor-secundaria) 14%, transparent), transparent 30%),
        linear-gradient(135deg, color-mix(in srgb, var(--cor-primaria) 3%, white), color-mix(in srgb, var(--cor-secundaria) 12%, white));
}

.login-panel {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 48px;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 16%, rgba(23, 142, 235, .2), transparent 32%),
        radial-gradient(circle at 18% 86%, rgba(5, 58, 135, .1), transparent 30%),
        linear-gradient(135deg, #f8fbff, #e8f1fa);
}

.login-panel::before,
.login-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-panel::before {
    width: 360px;
    height: 360px;
    top: -190px;
    right: -120px;
    border: 1px solid rgba(8, 105, 222, .12);
    box-shadow: 0 0 0 55px rgba(8, 105, 222, .025), 0 0 0 110px rgba(8, 105, 222, .018);
}

.login-panel::after {
    width: 210px;
    height: 210px;
    left: 7%;
    bottom: -135px;
    background: linear-gradient(145deg, rgba(8, 105, 222, .1), rgba(19, 156, 233, .02));
}

.login-card {
    position: relative;
    z-index: 1;
    width: min(100%, 510px);
    padding: 38px 46px 31px;
    overflow: hidden;
    border: 1px solid rgba(199, 216, 234, .95);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 28px 75px rgba(13, 48, 94, .17), 0 2px 5px rgba(24, 74, 132, .05);
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--cor-secundaria), var(--cor-primaria), var(--cor-secundaria));
}

.login-symbol {
    width: 172px;
    height: 76px;
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}
.login-symbol img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.login-heading { margin-bottom: 24px; }
.eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--blue-600);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.login-heading h2 { margin: 0 0 7px; color: #061a3d; font-size: clamp(26px, 3vw, 32px); letter-spacing: -.03em; }
.login-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.login-form { display: grid; gap: 15px; }
.form-field { display: grid; gap: 6px; }
.form-field label, .label-row { color: #263954; font-size: 12px; font-weight: 700; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.text-button { padding: 0; border: 0; color: var(--blue-600); background: none; font-size: 11px; }
.text-button:disabled { opacity: .65; }
.input-wrap { position: relative; }
.input-wrap > svg {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 17px;
    height: 17px;
    fill: #8494aa;
    transform: translateY(-50%);
    pointer-events: none;
}
.input-wrap input {
    width: 100%;
    height: 43px;
    padding: 0 43px 0 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
    color: var(--text);
    background: #fbfcfe;
    font-size: 12px;
    transition: border-color .2s, box-shadow .2s;
}
.input-wrap input::placeholder { color: #9aa8ba; }
.input-wrap input:focus { border-color: var(--cor-primaria); box-shadow: 0 0 0 4px rgba(8, 105, 222, .09); }
.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
}
.password-toggle:hover { color: var(--cor-secundaria); background: #edf4fc; }
.password-toggle svg { width: 17px; height: 17px; fill: #71829a; }
.remember-option { display: flex; align-items: center; gap: 9px; color: #5c6d84; font-size: 12px; cursor: pointer; }
.remember-option input { width: 16px; height: 16px; accent-color: var(--cor-primaria); }
.login-button {
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
    box-shadow: 0 11px 22px rgba(7, 94, 209, .2);
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.login-button:hover { background: linear-gradient(135deg, var(--cor-secundaria), var(--cor-primaria)); transform: translateY(-1px); box-shadow: 0 14px 27px rgba(7, 94, 209, .27); }
.login-button:disabled { cursor: wait; opacity: .72; transform: none; }
.form-message { min-height: 17px; margin: -7px 0 0; color: #6d7d92; text-align: center; font-size: 11px; }
.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 21px;
    padding-top: 18px;
    border-top: 1px solid #e8edf4;
    color: #8491a3;
    font-size: 10px;
}
.security-note svg { flex: 0 0 15px; width: 15px; height: 15px; fill: #64809d; }

@media (max-width: 900px) {
    .access-shell { grid-template-columns: 330px minmax(0, 1fr); }
    .profile-panel { padding-inline: 25px; }
    .login-panel { padding: 30px; }
}

@media (max-width: 720px) {
    .access-shell { display: block; }
    .profile-panel { position: relative; min-height: auto; padding: 26px 20px; }
    .brand { margin-bottom: 20px; }
    .brand img { width: 205px; height: 100px; }
    .profile-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-button { min-height: 62px; }
    .login-panel { min-height: auto; padding: 35px 18px; }
}

@media (max-width: 520px) {
    .profile-list { grid-template-columns: 1fr; }
    .login-card { padding: 32px 23px 26px; }
    .login-symbol { width: 150px; height: 67px; }
}
.recovery-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:22px;background:rgba(3,17,38,.68);opacity:0;visibility:hidden;transition:.2s}.recovery-backdrop.is-open{opacity:1;visibility:visible}.recovery-dialog{position:relative;width:min(440px,100%);padding:34px;border-radius:17px;background:#fff;box-shadow:0 28px 90px rgba(0,0,0,.3)}.recovery-dialog>span{color:var(--cor-primaria);font-size:10px;font-weight:800;letter-spacing:.1em}.recovery-dialog h2{margin:8px 0;font-size:25px}.recovery-dialog>p{margin:0 0 20px;color:#718198;font-size:13px;line-height:1.55}.recovery-dialog .login-button{width:100%;margin-top:18px}.recovery-close{position:absolute;right:16px;top:15px;width:34px;height:34px;border:1px solid #e1e8f0;border-radius:8px;background:#fff;color:#6f7f93;font-size:22px;cursor:pointer}.text-button:not(:disabled){cursor:pointer}
.recovery-dialog .form-message{min-height:20px;margin:12px 0 0;padding:0 4px;line-height:1.45}
.global-loader{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:20px;background:rgba(5,19,41,.48);backdrop-filter:blur(3px);opacity:0;visibility:hidden;transition:opacity .18s,visibility .18s}.global-loader.is-visible{opacity:1;visibility:visible}.global-loader-card{min-width:230px;display:grid;justify-items:center;gap:8px;padding:24px 28px;border:1px solid rgba(255,255,255,.75);border-radius:15px;background:#fff;box-shadow:0 24px 70px rgba(3,18,40,.28);color:#172b49;text-align:center}.global-loader-spinner{width:38px;height:38px;margin-bottom:3px;border:4px solid #dce8f5;border-top-color:var(--cor-primaria);border-radius:50%;animation:global-loader-spin .72s linear infinite}.global-loader-card strong{font-size:15px}.global-loader-card small{color:#75859a;font-size:11px}@keyframes global-loader-spin{to{transform:rotate(360deg)}}@media(max-width:520px){.global-loader-card{width:min(300px,calc(100vw - 36px))}}
.swal2-popup.system-success-toast{padding:13px 14px;border:1px solid #bfe9d0;border-left:5px solid #24a663;border-radius:11px;background:#f5fff9;box-shadow:0 14px 38px rgba(19,63,43,.18)}.swal2-popup.system-success-toast .swal2-icon{width:30px;height:30px;margin:0 11px 0 0}.swal2-popup.system-success-toast .swal2-icon .swal2-success-ring{width:30px;height:30px}.swal2-popup.system-success-toast .swal2-icon .swal2-success-line-tip{top:16px;left:5px;width:10px}.swal2-popup.system-success-toast .swal2-icon .swal2-success-line-long{top:14px;right:3px;width:18px}.swal2-popup.system-success-toast .swal2-title{margin:0;padding:0;color:#183a2a;font-size:14px;line-height:1.35;text-align:left}.swal2-popup.system-success-toast .swal2-html-container{margin:3px 24px 0 0;color:#557165;font-size:11px;line-height:1.45;text-align:left}.swal2-popup.system-success-toast .swal2-close{top:3px;right:4px;color:#668277;font-size:23px}.swal2-popup.system-success-toast .swal2-timer-progress-bar{background:#24a663}@media(max-width:520px){.swal2-container.swal2-top-end{padding:10px}.swal2-popup.system-success-toast{width:calc(100vw - 20px)!important}}
