:root {
    color-scheme: dark;
    --fundo: #040510;
    --fundo-secundario: #080b1c;
    --painel: rgba(10, 14, 36, 0.82);
    --texto: #f8fafc;
    --texto-suave: #aeb6cb;
    --linha: rgba(132, 89, 255, 0.5);
    --roxo: #9b22ff;
    --roxo-claro: #c044ff;
    --azul: #0879ff;
    --azul-claro: #2fa8ff;
}

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

html {
    min-width: 320px;
    font-size: 16px;
    background: var(--fundo);
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
    background: var(--fundo);
    color: var(--texto);
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button,
a,
label {
    -webkit-tap-highlight-color: transparent;
}

.login-layout {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(520px, 1.04fr) minmax(500px, 0.96fr);
    overflow: hidden;
    background:
        radial-gradient(circle at 68% 45%, rgba(36, 57, 184, 0.15), transparent 27%),
        radial-gradient(circle at 8% 72%, rgba(133, 13, 236, 0.12), transparent 28%),
        linear-gradient(115deg, #03040c 0%, #050716 52%, #090d26 100%);
}

.login-layout::before,
.login-layout::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.login-layout::before {
    inset: 0;
    opacity: 0.42;
    background-image:
        linear-gradient(rgba(84, 69, 164, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(84, 69, 164, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 75%, transparent);
}

.login-layout::after {
    left: -8%;
    right: 42%;
    bottom: -240px;
    height: 430px;
    border-radius: 50%;
    opacity: 0.68;
    transform: rotate(-5deg);
    background:
        repeating-radial-gradient(
            ellipse at center,
            transparent 0 13px,
            rgba(156, 34, 255, 0.24) 14px,
            transparent 15px 28px
        );
    filter: drop-shadow(100px -35px 22px rgba(0, 92, 255, 0.25));
}

.login-apresentacao {
    position: relative;
    min-height: 100%;
    padding: clamp(42px, 5vw, 82px) clamp(44px, 6vw, 94px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.marca {
    width: min(100%, 430px);
    margin-bottom: clamp(52px, 7vh, 94px);
    display: block;
}

.marca-logo {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 18px rgba(74, 50, 255, 0.16));
}

.marca-fallback {
    width: 100%;
    color: #fff;
    line-height: 1;
}

.marca-fallback strong {
    display: block;
    font-size: clamp(31px, 3vw, 50px);
    font-weight: 750;
    letter-spacing: 0.08em;
}

.marca-fallback strong b,
.simbolo-fallback {
    color: transparent;
    background: linear-gradient(135deg, #ed35ff, #7528ff 48%, #03a7ff);
    background-clip: text;
    -webkit-background-clip: text;
}

.marca-fallback small {
    margin-top: 9px;
    display: block;
    color: #f4f4fb;
    font-size: clamp(8px, 0.75vw, 12px);
    letter-spacing: 0.35em;
}

.simbolo-fallback {
    font-size: 27px;
    font-style: normal;
    font-weight: 900;
}

.apresentacao-conteudo {
    width: min(100%, 710px);
}

.login-apresentacao h1 {
    margin-bottom: 24px;
    font-size: clamp(44px, 4.4vw, 74px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.login-apresentacao h1 span {
    display: inline-block;
    color: transparent;
    background: linear-gradient(90deg, #a400ff 0%, #7a22ff 48%, #0789ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
}

.login-apresentacao .apresentacao-conteudo > p {
    max-width: 670px;
    color: #d1d3df;
    font-size: clamp(17px, 1.45vw, 23px);
    line-height: 1.45;
}

.login-apresentacao p strong,
.login-apresentacao p em {
    color: #ba34ff;
    font-style: normal;
    font-weight: 600;
}

.login-apresentacao p em {
    color: #159cff;
}

.linha-destaque {
    width: 176px;
    height: 2px;
    margin: 40px 0 44px;
    background: linear-gradient(90deg, #c21cff, #791cff 55%, #0288ff 86%, transparent);
    box-shadow: 0 0 12px rgba(152, 32, 255, 0.42);
}

.recursos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.recurso {
    min-width: 0;
    padding: 0 20px;
    text-align: center;
    border-right: 1px solid rgba(174, 181, 211, 0.26);
}

.recurso:first-child {
    padding-left: 0;
}

.recurso:last-child {
    padding-right: 0;
    border-right: 0;
}

.recurso-icone {
    width: 58px;
    height: 58px;
    margin: 0 auto 17px;
    display: grid;
    place-items: center;
    border: 2px solid #9330ff;
    border-radius: 18px;
    color: #8070ff;
    font-size: 31px;
    font-weight: 700;
    line-height: 1;
    box-shadow: inset 0 0 20px rgba(89, 37, 255, 0.08), 0 0 18px rgba(130, 31, 255, 0.11);
}

.recurso strong {
    display: block;
    margin-bottom: 9px;
    color: #f7f7fb;
    font-size: 15px;
    line-height: 1.3;
}

.recurso > span:last-child {
    display: block;
    color: #bdc0ce;
    font-size: 12px;
    line-height: 1.55;
}

.login-area {
    position: relative;
    min-height: 100%;
    padding: clamp(32px, 5vw, 80px) clamp(32px, 5vw, 76px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-area::before {
    content: "";
    position: absolute;
    width: 70%;
    height: 75%;
    border-radius: 50%;
    background: rgba(29, 55, 175, 0.13);
    filter: blur(90px);
    pointer-events: none;
}

.login-cartao {
    position: relative;
    width: min(100%, 650px);
    padding: clamp(34px, 4vw, 56px);
    border: 1px solid rgba(154, 84, 255, 0.72);
    border-radius: 22px;
    background:
        radial-gradient(circle at 80% 18%, rgba(39, 71, 174, 0.13), transparent 38%),
        linear-gradient(145deg, rgba(10, 12, 31, 0.94), rgba(11, 17, 45, 0.87));
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 0 42px rgba(58, 34, 180, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.login-topo {
    margin-bottom: 34px;
}

.login-saudacao {
    display: none;
}

.login-topo h2 {
    margin-bottom: 9px;
    font-size: clamp(26px, 2.2vw, 37px);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.login-topo p {
    color: #c1c4d0;
    font-size: clamp(16px, 1.25vw, 20px);
    line-height: 1.5;
}

.mensagem-erro,
.mensagem-sucesso {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.mensagem-erro {
    border: 1px solid rgba(248, 113, 113, 0.4);
    background: rgba(127, 29, 29, 0.19);
    color: #fecaca;
}

.mensagem-sucesso {
    border: 1px solid rgba(74, 222, 128, 0.38);
    background: rgba(20, 83, 45, 0.22);
    color: #bbf7d0;
}

.campo {
    margin-bottom: 23px;
}

.campo > label {
    display: block;
    margin-bottom: 10px;
    color: #f4f4f8;
    font-size: 15px;
    font-weight: 700;
}

.campo-controle {
    position: relative;
}

.campo-controle input {
    width: 100%;
    min-height: 64px;
    padding: 0 54px;
    border: 1px solid #3d4866;
    border-radius: 12px;
    outline: none;
    background: rgba(5, 9, 24, 0.64);
    color: #f8fafc;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.campo-controle input::placeholder {
    color: #959aad;
    opacity: 1;
}

.campo-controle input:hover {
    border-color: #616d91;
}

.campo-controle input:focus {
    border-color: #a22dff;
    background: rgba(7, 11, 29, 0.82);
    box-shadow: 0 0 0 1px rgba(162, 45, 255, 0.28), 0 0 22px rgba(104, 34, 255, 0.13);
}

.campo-icone {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 20px;
    width: 20px;
    height: 18px;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.8;
}

.campo-email .campo-icone {
    border: 1.8px solid #b6bbce;
    border-radius: 4px;
}

.campo-email .campo-icone::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 1px;
    width: 10px;
    height: 8px;
    border-right: 1.8px solid #b6bbce;
    border-bottom: 1.8px solid #b6bbce;
    transform: rotate(45deg);
}

.campo-senha .campo-icone {
    top: calc(50% + 2px);
    width: 17px;
    height: 15px;
    border: 1.8px solid #b6bbce;
    border-radius: 3px;
}

.campo-senha .campo-icone::before {
    content: "";
    position: absolute;
    left: 3px;
    top: -10px;
    width: 7px;
    height: 9px;
    border: 1.8px solid #b6bbce;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
}

.campo-senha input {
    padding-right: 65px;
}

.mostrar-senha {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 17px;
    width: 25px;
    height: 25px;
    overflow: hidden;
    transform: translateY(-50%);
    border: 0;
    outline: none;
    cursor: pointer;
    background: transparent;
    color: transparent;
    font-size: 0;
}

.mostrar-senha::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 7px;
    width: 17px;
    height: 11px;
    border: 1.7px solid #b7bbcc;
    border-radius: 50% 50%;
}

.mostrar-senha::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 10px;
    width: 5px;
    height: 5px;
    border: 1.7px solid #b7bbcc;
    border-radius: 50%;
}

.mostrar-senha:focus-visible {
    border-radius: 6px;
    box-shadow: 0 0 0 3px rgba(162, 45, 255, 0.35);
}

.opcoes-login {
    margin: 5px 0 27px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lembrar {
    width: fit-content;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #d4d5df;
    font-size: 15px;
}

.link-esqueci-senha {
    color: #a88cff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.link-esqueci-senha:hover {
    color: #c6b4ff;
    text-shadow: 0 0 14px rgba(147, 70, 255, 0.42);
}

.link-esqueci-senha:focus-visible {
    border-radius: 5px;
    outline: 3px solid rgba(162, 89, 255, 0.48);
    outline-offset: 3px;
}

.lembrar input {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    border-radius: 5px;
    accent-color: #921dff;
}

.botao-entrar {
    width: 100%;
    min-height: 64px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    background: linear-gradient(105deg, #a900ee 0%, #6626ff 52%, #087af1 100%);
    box-shadow: 0 14px 32px rgba(89, 28, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.19);
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.botao-entrar span {
    font-size: 23px;
    line-height: 1;
}

.botao-entrar:hover {
    transform: translateY(-2px);
    filter: brightness(1.1) saturate(1.05);
    box-shadow: 0 18px 40px rgba(83, 33, 255, 0.33), inset 0 1px 0 rgba(255, 255, 255, 0.23);
}

.botao-entrar:active {
    transform: translateY(0);
}

.botao-entrar:focus-visible,
.botao-cadastro:focus-visible {
    outline: 3px solid rgba(162, 89, 255, 0.48);
    outline-offset: 3px;
}

.separador {
    margin: 27px 0 21px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #afb2c1;
    font-size: 14px;
}

.separador::before,
.separador::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(158, 164, 190, 0.34));
}

.separador::after {
    transform: scaleX(-1);
}

.cadastro-acoes {
    text-align: center;
}

.cadastro-chamada {
    margin-bottom: 13px;
    color: #c3c5d1;
    font-size: 14px;
}

.botao-cadastro {
    width: 100%;
    min-height: 58px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #8e3dfa;
    border-radius: 11px;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 750;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.botao-cadastro-principal {
    background: rgba(9, 12, 29, 0.58);
    color: #f6f4ff;
}

.botao-cadastro:hover {
    transform: translateY(-2px);
    border-color: #b764ff;
    background: rgba(105, 36, 220, 0.14);
    box-shadow: 0 12px 28px rgba(81, 26, 193, 0.18);
}

.rodape-login {
    margin-top: 28px;
    color: #777e96;
    text-align: center;
    font-size: 12px;
}

@media (max-width: 1180px) {
    .login-layout {
        grid-template-columns: minmax(430px, 0.9fr) minmax(480px, 1.1fr);
    }

    .login-apresentacao {
        padding-left: 42px;
        padding-right: 34px;
    }

    .marca {
        margin-bottom: 52px;
    }

    .recursos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 0;
    }

    .recurso:nth-child(2) {
        border-right: 0;
    }

    .recurso:nth-child(3) {
        padding-left: 0;
    }
}

@media (max-width: 900px) {
    .login-layout {
        display: block;
        min-height: 100dvh;
    }

    .login-layout::after {
        right: -20%;
        bottom: -280px;
    }

    .login-apresentacao {
        min-height: auto;
        padding: 42px 28px 34px;
        align-items: center;
        text-align: center;
    }

    .marca {
        width: min(100%, 430px);
        margin-bottom: 30px;
    }

    .apresentacao-conteudo {
        width: min(100%, 680px);
    }

    .login-apresentacao h1 {
        font-size: clamp(38px, 8vw, 58px);
    }

    .login-apresentacao .apresentacao-conteudo > p {
        margin: 0 auto;
    }

    .linha-destaque {
        margin: 30px auto 34px;
    }

    .recursos {
        display: none;
    }

    .login-area {
        min-height: auto;
        padding: 20px 22px 48px;
    }

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

@media (max-width: 560px) {
    .login-apresentacao {
        padding: 29px 18px 22px;
    }

    .marca {
        width: min(100%, 330px);
        margin-bottom: 24px;
    }

    .login-apresentacao h1 {
        margin-bottom: 16px;
        font-size: clamp(31px, 10vw, 43px);
    }

    .login-apresentacao .apresentacao-conteudo > p {
        max-width: 390px;
        font-size: 15px;
    }

    .linha-destaque {
        width: 130px;
        margin: 22px auto 4px;
    }

    .login-area {
        padding: 17px 14px 30px;
    }

    .login-cartao {
        padding: 27px 20px;
        border-radius: 18px;
    }

    .login-topo {
        margin-bottom: 27px;
        display: flex;
        align-items: center;
        gap: 13px;
    }

    .login-saudacao {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        display: grid;
        place-items: center;
        border-radius: 12px;
        overflow: hidden;
        background: rgba(8, 11, 30, 0.72);
        box-shadow: 0 10px 24px rgba(98, 30, 237, 0.26);
    }

    .login-saudacao img {
        width: 34px;
        height: auto;
        display: block;
    }

    .login-topo h2 {
        margin-bottom: 3px;
        font-size: 22px;
    }

    .login-topo p {
        font-size: 13px;
    }

    .campo {
        margin-bottom: 18px;
    }

    .campo-controle input,
    .botao-entrar {
        min-height: 56px;
    }

    .campo-controle input {
        padding-left: 49px;
        font-size: 15px;
    }

    .campo-icone {
        left: 17px;
    }

    .campo-senha input {
        padding-right: 57px;
    }

    .opcoes-login {
        margin-bottom: 23px;
        align-items: flex-start;
    }

    .lembrar,
    .link-esqueci-senha {
        font-size: 14px;
    }

    .botao-entrar {
        font-size: 15px;
    }

    .separador {
        margin: 23px 0 18px;
    }

    .botao-cadastro {
        min-height: 54px;
        font-size: 14px;
    }

    .rodape-login {
        margin-top: 23px;
    }
}

@media (max-height: 760px) and (min-width: 901px) {
    .login-apresentacao,
    .login-area {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .marca {
        margin-bottom: 34px;
    }

    .linha-destaque {
        margin-top: 26px;
        margin-bottom: 27px;
    }

    .recurso-icone {
        width: 45px;
        height: 45px;
        margin-bottom: 11px;
        font-size: 25px;
    }

    .login-cartao {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .login-topo {
        margin-bottom: 24px;
    }

    .campo {
        margin-bottom: 17px;
    }

    .campo-controle input,
    .botao-entrar {
        min-height: 54px;
    }

    .lembrar {
        margin-bottom: 20px;
    }

    .separador {
        margin-top: 20px;
        margin-bottom: 16px;
    }

    .botao-cadastro {
        min-height: 50px;
    }

    .rodape-login {
        margin-top: 18px;
    }
}

.recuperacao-layout {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 32px 18px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 25%, rgba(55, 72, 205, 0.2), transparent 28%),
        radial-gradient(circle at 16% 82%, rgba(145, 22, 239, 0.18), transparent 30%),
        linear-gradient(125deg, #03040c, #080b21 58%, #0b1030);
}

.recuperacao-layout::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.38;
    background-image:
        linear-gradient(rgba(84, 69, 164, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(84, 69, 164, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

.recuperacao-cartao {
    width: min(100%, 560px);
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid rgba(154, 84, 255, 0.72);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(10, 12, 31, 0.96), rgba(11, 17, 45, 0.92));
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48), 0 0 42px rgba(75, 42, 200, 0.12);
}

.recuperacao-marca {
    width: min(100%, 350px);
    margin: 0 auto 34px;
    display: block;
}

.recuperacao-marca img {
    width: 100%;
    height: auto;
    display: block;
}

.recuperacao-cartao h1 {
    margin-bottom: 10px;
    font-size: clamp(27px, 5vw, 36px);
    line-height: 1.15;
}

.recuperacao-introducao {
    margin-bottom: 28px;
    color: var(--texto-suave);
    line-height: 1.6;
}

.recuperacao-cartao .campo-controle:not(.campo-email) input {
    padding: 0 18px;
}

.voltar-login {
    margin-top: 24px;
    display: block;
    color: #a88cff;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.voltar-login:hover {
    color: #d2c5ff;
}

@media (max-width: 520px) {
    .opcoes-login {
        flex-direction: column;
        gap: 13px;
    }

    .recuperacao-layout {
        padding: 15px;
    }

    .recuperacao-cartao {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .recuperacao-marca {
        width: min(100%, 290px);
        margin-bottom: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
