* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100vh;
}

body {
    background:
        radial-gradient(circle at 78% 22%, rgba(34, 211, 238, .18), transparent 34%),
        radial-gradient(circle at 20% 80%, rgba(14, 165, 233, .14), transparent 34%),
        linear-gradient(120deg, #050b14 0%, #071827 48%, #031018 100%);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    display: grid;
    grid-template-columns: minmax(320px, 480px) 1fr;
    overflow: hidden;
}

.login-lateral {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
    background: rgba(3, 10, 22, .72);
    border-right: 1px solid rgba(56, 189, 248, .16);
    box-shadow: 24px 0 70px rgba(0, 0, 0, .35);
}

.login-box {
    width: 100%;
    max-width: 390px;
    padding: 28px;
    border-radius: 22px;
    text-align: center;
    background: linear-gradient(180deg, rgba(30, 41, 59, .94), rgba(15, 23, 42, .96));
    border: 1px solid rgba(56, 189, 248, .22);
    box-shadow: 0 22px 65px rgba(0, 0, 0, .46), 0 0 24px rgba(56, 189, 248, .12);
}

.logo {
    margin-bottom: 18px;
}

.logo img {
    max-width: 230px;
    width: 78%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 0 22px rgba(56, 189, 248, .3);
}

.login-box h2 {
    margin: 0 0 6px;
    font-size: 25px;
    font-weight: 900;
}

.subtitulo {
    margin: 0 0 20px;
    color: #9ccff5;
    font-size: 13px;
}

.erro-login {
    margin: 0 0 14px;
    padding: 11px 12px;
    border: 1px solid rgba(251, 113, 133, .35);
    border-radius: 12px;
    color: #fda4af;
    background: rgba(127, 29, 29, .16);
    font-size: 13px;
    font-weight: 800;
}

.campo-login {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 12px 0;
    padding: 0 12px;
    border: 1px solid rgba(125, 211, 252, .22);
    border-radius: 11px;
    background: rgba(2, 8, 23, .72);
}

.campo-login span {
    color: #38bdf8;
    font-weight: 800;
}

.campo-login input,
.login-box form > input {
    width: 100%;
    padding: 14px 4px;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font-size: 14px;
}

.login-box form > input {
    margin: 12px 0;
    padding: 14px 12px;
    border: 1px solid rgba(125, 211, 252, .22);
    border-radius: 11px;
    background: rgba(2, 8, 23, .72);
}

.campo-login input::placeholder,
.login-box form > input::placeholder {
    color: #86a4bd;
}

.validador-login {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(34, 211, 238, .42);
    border-radius: 12px;
    color: #dff7ff;
    background: rgba(8, 47, 73, .46);
    text-align: left;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    box-shadow: inset 0 0 18px rgba(34, 211, 238, .05);
    cursor: pointer;
}

.validador-login input {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    accent-color: #22c55e;
    cursor: pointer;
}

.aviso-validacao {
    display: none;
    align-items: center;
    gap: 10px;
    margin: -4px 0 14px;
    padding: 11px 13px;
    border: 1px solid rgba(251, 191, 36, .55);
    border-radius: 13px;
    color: #fde68a;
    background:
        radial-gradient(circle at 12% 50%, rgba(251, 191, 36, .18), transparent 28%),
        rgba(24, 18, 8, .86);
    text-align: left;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    box-shadow:
        0 0 18px rgba(251, 191, 36, .16),
        inset 0 0 18px rgba(251, 191, 36, .04);
    animation: avisoNeon .28s ease-out both;
}

.aviso-validacao::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: 0 0 14px rgba(249, 115, 22, .38);
}

.aviso-validacao.visivel {
    display: flex;
}

button {
    width: 100%;
    padding: 13px 20px;
    border: 1px solid rgba(34, 211, 238, .35);
    border-radius: 12px;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
    box-shadow: 0 0 20px rgba(34, 211, 238, .22);
    transition: transform .2s ease, box-shadow .2s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 26px rgba(34, 211, 238, .34);
}

.login-enviando button {
    opacity: .78;
    cursor: wait;
    transform: none;
}

.login-enviando button::after {
    content: "...";
}

.login-submit-frame {
    position: absolute;
    width: 1px;
    height: 1px;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.login-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 7vw 60px 60px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(3, 7, 18, .72), rgba(3, 16, 24, .46)),
        radial-gradient(circle at 65% 38%, rgba(34, 211, 238, .16), transparent 32%),
        #031018;
}

.login-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 7, 18, .98) 0%, rgba(3, 7, 18, .78) 38%, rgba(3, 7, 18, .35) 100%),
        linear-gradient(0deg, rgba(3, 7, 18, .52), rgba(3, 7, 18, .52)),
        url("../img/login-hero-site-otimizado.jpg") center right / cover no-repeat;
    opacity: .82;
    pointer-events: none;
    animation: fundoSiteSuave 18s ease-in-out infinite;
}

.login-hero::after {
    content: "";
    position: absolute;
    inset: -15%;
    background:
        radial-gradient(circle at 76% 34%, rgba(34, 211, 238, .18), transparent 18%),
        radial-gradient(circle at 82% 60%, rgba(132, 204, 22, .1), transparent 16%);
    filter: blur(18px);
    animation: pulsoLogin 7s ease-in-out infinite;
}

.mapa-fundo {
    position: absolute;
    inset: 0;
    opacity: .34;
    background:
        linear-gradient(rgba(125, 211, 252, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 211, 252, .08) 1px, transparent 1px);
    background-size: 58px 58px;
    transform: perspective(900px) rotateX(62deg) translateY(120px);
    transform-origin: bottom;
    animation: gridLogin 12s linear infinite;
}

.hero-conteudo {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    max-width: 980px;
}

.hero-conteudo h1 {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(48px, 4.6vw, 82px);
    line-height: 1.12;
    font-weight: 760;
    letter-spacing: -.028em;
    text-shadow:
        0 5px 20px rgba(0, 0, 0, .54),
        0 0 26px rgba(2, 8, 23, .72);
}

.titulo-hero {
    position: relative;
}

.titulo-hero span {
    display: block;
    opacity: .76;
    transform: translateY(0);
    filter: none;
    will-change: opacity, transform;
    animation: tituloRespira 9s ease-in-out infinite;
}

.assinatura-hero {
    position: relative;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    max-width: 570px;
    margin-top: 26px;
    padding: 9px 16px;
    border: 1px solid rgba(34, 211, 238, .22);
    border-radius: 999px;
    color: rgba(216, 237, 250, .72);
    font-size: 16px;
    line-height: 1.35;
    letter-spacing: .02em;
    background: rgba(2, 8, 23, .36);
    box-shadow:
        0 0 24px rgba(34, 211, 238, .08),
        inset 0 0 16px rgba(34, 211, 238, .04);
    overflow: hidden;
    text-shadow: 0 0 18px rgba(2, 8, 23, .88);
    animation: assinaturaRespira 8s ease-in-out infinite;
}

.assinatura-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .14) 45%, transparent 62%);
    transform: translateX(-120%);
    animation: brilhoAssinatura 5s ease-in-out infinite;
}

.assinatura-hero strong {
    color: rgba(155, 196, 45, .86);
    font-weight: 900;
    text-shadow: 0 0 16px rgba(155, 196, 45, .24);
}

@keyframes pulsoLogin {
    0%, 100% { opacity: .34; transform: scale(1); }
    50% { opacity: .62; transform: scale(1.05) translate(-1.5%, 1%); }
}

@keyframes fundoSiteSuave {
    0%, 100% {
        transform: scale(1);
        filter: brightness(.82) saturate(.92);
    }
    50% {
        transform: scale(1.045) translateX(-1.2%);
        filter: brightness(.95) saturate(1.04);
    }
}

@keyframes gridLogin {
    from { background-position: 0 0, 0 0; }
    to { background-position: 58px 58px, 58px 58px; }
}

@keyframes avisoNeon {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(.985);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes tituloRespira {
    0%, 100% {
        opacity: .18;
        transform: translateY(8px);
    }
    16%, 72% {
        opacity: .78;
        transform: translateY(0);
    }
    86% {
        opacity: .32;
        transform: translateY(-4px);
    }
}

@keyframes assinaturaRespira {
    0%, 100% {
        opacity: .72;
        transform: translateY(0);
    }
    50% {
        opacity: .96;
        transform: translateY(-2px);
    }
}

@keyframes brilhoAssinatura {
    0%, 38% {
        transform: translateX(-120%);
        opacity: 0;
    }
    52% {
        opacity: .65;
    }
    72%, 100% {
        transform: translateX(130%);
        opacity: 0;
    }
}

body.pagina-corban {
    min-height: 100vh;
    padding: 18px;
    display: flex;
    grid-template-columns: none;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
}

.corban-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(56, 189, 248, .22);
    border-radius: 14px;
    background: rgba(10, 18, 32, .82);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.corban-label {
    color: #38bdf8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
}

.corban-topo h1 {
    margin: 4px 0 0;
    font-size: 24px;
    line-height: 1.2;
}

.corban-acoes {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.corban-acoes a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, .32);
    background: rgba(15, 23, 42, .82);
    color: #e0f2fe;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.corban-aviso {
    padding: 10px 14px;
    border: 1px solid rgba(250, 204, 21, .26);
    border-radius: 10px;
    background: rgba(113, 63, 18, .18);
    color: #fde68a;
    font-size: 13px;
    font-weight: 800;
}

.corban-frame {
    width: 100%;
    flex: 1 1 auto;
    min-height: 520px;
    border: 1px solid rgba(56, 189, 248, .22);
    border-radius: 14px;
    background: #fff;
}

@media (max-width: 900px) {
    body {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .login-lateral {
        min-height: 100vh;
    }

    .login-hero {
        display: none;
    }
}

/* Mantem usuario e senha salvos no mesmo tema dark do formulario. */
.campo-login input:-webkit-autofill,
.campo-login input:-webkit-autofill:hover,
.campo-login input:-webkit-autofill:focus,
.campo-login input:-webkit-autofill:active,
.login-box form > input:-webkit-autofill,
.login-box form > input:-webkit-autofill:hover,
.login-box form > input:-webkit-autofill:focus,
.login-box form > input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0 1000px #071426 inset !important;
    box-shadow: 0 0 0 1000px #071426 inset !important;
    border-radius: 9px;
    transition: background-color 9999s ease-out 0s;
}

.campo-login input:autofill,
.login-box form > input:autofill {
    color: #ffffff !important;
    caret-color: #ffffff !important;
    background: #071426 !important;
}

.campo-login:focus-within {
    border-color: rgba(56, 189, 248, .72);
    background: rgba(2, 12, 28, .92);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, .09), 0 0 18px rgba(56, 189, 248, .12);
}
