* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --do-navy-900: #0B1B3A;
    --do-navy-700: #142C58;
    --do-navy-base: #071227;
    --do-accent: #4E7CFF;
    --do-accent-soft: #8FB0FF;
    --do-ink: #2b3a52;
    --do-muted: #8c97ab;
    --do-line: #e2e8f0;
}

body.login {
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background: radial-gradient(
        ellipse 120% 90% at 50% -10%,
        var(--do-navy-700) 0%,
        var(--do-navy-900) 55%,
        var(--do-navy-base) 100%
    );
    overflow-x: hidden;
}

.login-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* ========================================================= */
/* FUNDO */
/* ========================================================= */

.login-painel-imagem {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Malha técnica fina */
.login-grid-fina {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image:
        linear-gradient(var(--do-accent-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--do-accent-soft) 1px, transparent 1px);
    background-size: 14px 14px;
}

/* Malha técnica grossa */
.login-grid-grossa {
    position: absolute;
    inset: 0;
    opacity: 0.09;
    background-image:
        linear-gradient(var(--do-accent-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--do-accent-soft) 1px, transparent 1px);
    background-size: 70px 70px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 78%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 78%);
}

/* Halos de luz */
.login-halo {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
}

.login-halo-a {
    width: 620px;
    height: 620px;
    top: -260px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(78, 124, 255, 0.32) 0%, transparent 62%);
}

.login-halo-b {
    width: 480px;
    height: 480px;
    bottom: -200px;
    right: -120px;
    background: radial-gradient(circle, rgba(78, 124, 255, 0.18) 0%, transparent 65%);
}

/* Silhueta arquitetonica */
.login-skyline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 44vh;
    opacity: 0.16;
}

/* Vinheta */
.login-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 75% 65% at 50% 50%,
        transparent 40%,
        rgba(4, 10, 24, 0.55) 100%
    );
}

/* ========================================================= */
/* CARD CENTRAL */
/* ========================================================= */

.login-painel-form {
    position: relative;
    z-index: 5;
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-form-inner {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-card2 {
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    box-shadow:
        0 32px 70px rgba(3, 10, 26, 0.55),
        0 2px 0 rgba(255, 255, 255, 0.6) inset;
}

.login-card2 > div {
    width: 100%;
}

/* ========================================================= */
/* BRAND */
/* ========================================================= */

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 26px;
}

.login-brand img {
    width: 56px;
}

.login-brand span {
    font-family: "Boldonse", system-ui;
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 1.15;
    color: #717d8f;
    text-align: center;
}

.login-tagline {
    font-size: 10.5px;
    letter-spacing: 1.6px;
    font-weight: 600;
    color: #b46991;
    margin-top: 10px;
    text-align: center;
}

/* ========================================================= */
/* CONTAINERS DE ETAPA */
/* ========================================================= */

.conteiner_login,
.conteiner_esqueci_a_senha {
    width: 100%;
}

.conteiner_esqueci_a_senha {
    display: none;
}

/* ========================================================= */
/* TITULOS */
/* ========================================================= */

.login-form-inner h2 {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.3px;
    color: var(--do-ink);
    margin-bottom: 6px;
    text-align: center;
}

.login-subtitulo {
    font-size: 13.5px;
    color: var(--do-muted);
    margin-bottom: 28px;
    text-align: center;
}

/* ========================================================= */
/* FORM */
/* ========================================================= */

body.login label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #3d4a61;
    margin-bottom: 8px;
}

.login-input-wrap {
    position: relative;
    margin-bottom: 20px;
}

.login-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa6bb;
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
}

body.login .login-input-wrap input {
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--do-line);
    border-radius: 10px;
    padding: 0 44px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: #fbfcfe;
    outline: none;
    color: var(--do-navy-900);
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

body.login .login-input-wrap input::placeholder {
    color: #b3bccb;
}

body.login .login-input-wrap input:focus {
    border-color: var(--do-accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(78, 124, 255, 0.12);
}

body.login .login-input-wrap input:disabled {
    background: #f1f4f9;
    color: #7d8ba3;
}

.login-toggle-senha {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #9aa6bb;
    cursor: pointer;
    display: flex;
    padding: 0;
    z-index: 2;
}

.login-toggle-senha:hover {
    color: var(--do-accent);
}

/* Regras de senha (convite) */
body.login .check {
    font-size: 12.5px;
    color: var(--do-muted);
    margin-bottom: 7px;
}

body.login .check .bi-check-lg {
    color: #5fca55;
}

/* ========================================================= */
/* EXTRA */
/* ========================================================= */

.login-linha-extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.login-salvar-senha {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: #3d4a61;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.login-salvar-senha input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--do-accent);
    cursor: pointer;
}

.forgot {
    font-size: 12.5px;
    color: var(--do-accent);
    font-weight: 500;
    text-decoration: none;
}

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

.login-voltar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
}

/* ========================================================= */
/* BOTAO */
/* ========================================================= */

.login-form-inner .botao-entrar {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #4e7cff 0%, #3a63ec 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 0;
    box-shadow: 0 10px 24px rgba(78, 124, 255, 0.34);
    transition: transform 0.18s, box-shadow 0.18s;
}

.login-form-inner .botao-entrar:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(78, 124, 255, 0.42);
}

/* ========================================================= */
/* MENSAGENS */
/* ========================================================= */

.msg-erro,
.msg-sucesso {
    margin-top: 14px;
    font-size: 13px;
    text-align: center;
}

/* ========================================================= */
/* RODAPES */
/* ========================================================= */

.login-rodape-card {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #eef1f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #a5afbf;
}

.login-versao {
    color: #c2c9d6;
}

.login-copyright {
    margin-top: 22px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

/* ========================================================= */
/* RESPONSIVO */
/* ========================================================= */

@media (max-width: 480px) {

    .login-wrapper {
        padding: 28px 16px;
    }

    .login-card2 {
        padding: 34px 24px 26px;
        border-radius: 14px;
    }

    .login-form-inner h2 {
        font-size: 19px;
    }

}

/* ========================================================= */
/* OVERRIDE ALTURA DO CARD */
/* ========================================================= */

.login-painel-form {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    height: auto !important;
}

.login-form-inner {
    height: auto !important;
}

.login-card2 {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block !important;
    align-items: initial !important;
    justify-content: initial !important;
    border-left: none !important;
}

.login-card2 > div {
    height: auto !important;
}