:root {
    --azul: #023e73;
    --texto: #172033;
    --muted: #6e7b90;
    --fundo: #f7f9fc;
    --campo: #f7f9fd;
    --borda: #dfe5ed;
    --branco: #fff
}

:root[data-tema="escuro"] {
    --texto: #edf4ff;
    --muted: #a6b3c5;
    --fundo: #101925;
    --campo: #172333;
    --borda: #2b3b4e;
    --branco: #121e2c
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--texto);
    background: var(--fundo)
}

.pagina-login {
    display: grid;
    grid-template-columns: minmax(400px, 48%) 1fr;
    min-height: 100vh
}

.apresentacao {
    position: relative;
    overflow: hidden;
    padding: clamp(32px, 5vw, 72px);
    color: #fff;
    background: radial-gradient(circle at 75% 22%, #1269a7 0, transparent 25%), linear-gradient(145deg, var(--azul) 0%, #012b51 76%);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.logo-apresentacao {
    position: relative;
    z-index: 1;
    width: 175px;
    max-width: 55%;
    height: auto;
    filter: brightness(0) invert(1)
}

.alternar-tema {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ffffff40;
    border-radius: 10px;
    color: #fff;
    background: #ffffff12;
    cursor: pointer
}

.alternar-tema svg {
    width: 18px
}

.mensagem-apresentacao {
    position: relative;
    z-index: 1;
    margin-top: clamp(100px, 20vh, 210px);
    max-width: 520px
}

.selo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid #ffffff30;
    border-radius: 20px;
    background: #ffffff12;
    color: #d9edff;
    font-size: 12px;
    font-weight: 650
}

.selo svg {
    width: 15px
}

.mensagem-apresentacao h1 {
    margin: 20px 0 17px;
    font-size: clamp(34px, 4vw, 57px);
    line-height: 1.08;
    letter-spacing: -2.2px
}

.mensagem-apresentacao p {
    max-width: 430px;
    color: #d6e6f5;
    font-size: 16px;
    line-height: 1.65
}

.rodape-apresentacao {
    position: absolute;
    z-index: 1;
    bottom: 28px;
    left: clamp(32px, 5vw, 72px);
    margin: 0;
    color: #afc8dc;
    font-size: 12px
}

.grade-decorativa {
    position: absolute;
    right: -100px;
    bottom: -150px;
    width: 520px;
    height: 520px;
    transform: rotate(25deg);
    border: 1px solid #ffffff1f;
    border-radius: 95px;
    box-shadow: 0 0 0 70px #ffffff08, 0 0 0 141px #ffffff05
}

.area-formulario {
    display: grid;
    place-items: center;
    padding: 30px;
    background: var(--branco)
}

.cartao-login {
    width: min(100%, 390px)
}

.rotulo {
    color: var(--azul);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em
}

.cartao-login h2 {
    margin: 10px 0 7px;
    font-size: 30px;
    letter-spacing: -.8px
}

.texto-apoio {
    margin: 0 0 31px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55
}

.cartao-login label {
    display: block;
    margin: 0 0 7px;
    color: var(--texto);
    font-size: 13px;
    font-weight: 680
}

.campo {
    display: flex;
    align-items: center;
    height: 48px;
    margin-bottom: 19px;
    padding: 0 13px;
    border: 1px solid var(--borda);
    border-radius: 9px;
    background: var(--campo)
}

.campo:focus-within {
    border-color: #3182bd;
    outline: 3px solid #3182bd1c
}

.campo svg {
    width: 18px;
    color: #718199
}

.campo input {
    width: 100%;
    height: 100%;
    margin-left: 10px;
    border: 0;
    outline: 0;
    color: var(--texto);
    background: transparent;
    font: inherit;
    font-size: 14px
}

.campo input::placeholder {
    color: #98a4b5
}

.campo button {
    display: grid;
    place-items: center;
    padding: 4px;
    border: 0;
    background: transparent;
    color: #718199;
    cursor: pointer
}

.campo button svg {
    width: 18px
}

.erro-login {
    min-height: 19px;
    margin: -7px 0 11px;
    color: #bf3030;
    font-size: 12px
}

.botao-entrar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    width: 100%;
    height: 49px;
    border: 0;
    border-radius: 9px;
    background: var(--azul);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 17px #023e732b
}

.botao-entrar:hover {
    background: #02518f
}

.botao-entrar:disabled {
    opacity: .7;
    cursor: wait
}

.botao-entrar svg {
    width: 17px
}

.ajuda-login {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 12px
}

.ajuda-login svg {
    width: 15px
}

@media(max-width:800px) {
    .pagina-login {
        display: block
    }

    .apresentacao {
        min-height: 165px;
        padding: 28px;
        border-bottom-right-radius: 10px;
        border-bottom-left-radius: 10px;
        border-top-right-radius: 0;
    }

    .logo-apresentacao {
        width: 120px
    }

    .mensagem-apresentacao,
    .rodape-apresentacao,
    .grade-decorativa {
        display: none
    }

    .alternar-tema {
        top: 25px;
        right: 25px
    }

    .area-formulario {
        min-height: calc(100vh - 165px)
    }
}