/* Tela de acesso: cartão claro sobre o fundo de rede neural. */

/* Mesmas cores do menu lateral: cartão carvão com detalhes dourados. */
:root {
    --cartao:    rgba(47, 48, 54, .96);
    --campo:     #26272c;
    --borda:     #3f4048;
    --texto:     #ffffff;
    --suave:     #c9cad1;
    --apagado:   #8a8b95;
    --dourado:   #e5a72e;
    --erro:      #ffb3ac;
    --erro-bg:   rgba(255, 90, 80, .14);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    /* Degradê amarelo → laranja → vermelho, nas cores da arara. */
    background: linear-gradient(145deg, #ffc93c 0%, #f79420 42%, #d93a22 76%, #b31e1e 100%);
    color: var(--texto);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    overflow: hidden;
}

/* O canvas cobre a janela inteira e fica atrás de tudo. */
#rede-neural {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    opacity: .9;
}

/* Vinheta discreta: escurece as bordas sem apagar o degradê. */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(75% 65% at 50% 50%, rgba(0, 0, 0, 0) 45%, rgba(90, 20, 10, .22) 100%);
}

.acesso {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 210px;
    padding: .8rem .9rem .75rem;
    background: var(--cartao);
    border: 1px solid var(--borda);
    border-radius: 16px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .4), 0 2px 6px rgba(0, 0, 0, .2);
    animation: surgir .5s ease-out both;
}

@keyframes surgir {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

.marca {
    text-align: center;
    margin-bottom: .55rem;
}

.marca img {
    max-width: 94px;
    max-height: 74px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45));
}

.marca p {
    margin: .2rem 0 0;
    font-size: .66rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--suave);
    font-weight: 600;
}

.campo { margin-bottom: .4rem; }

.campo label {
    display: block;
    font-size: .6rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--suave);
    margin-bottom: .14rem;
}

.campo input {
    width: 100%;
    padding: .34rem .55rem;
    font-size: .82rem;
    font-family: inherit;
    color: var(--texto);
    background: var(--campo);
    border: 1px solid var(--borda);
    border-radius: 10px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.campo input:focus {
    border-color: var(--dourado);
    box-shadow: 0 0 0 3px rgba(229, 167, 46, .22);
}

.campo input::placeholder { color: var(--apagado); }

button[type="submit"] {
    width: 100%;
    margin-top: .4rem;
    padding: .42rem;
    font: inherit;
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .03em;
    color: #2f3036;
    background: var(--dourado);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .12s, background .18s, box-shadow .18s;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}

button[type="submit"]:hover  { background: #f0b544; }
button[type="submit"]:active { transform: translateY(1px); }

.aviso {
    margin: 0 0 .5rem;
    padding: .32rem .55rem;
    font-size: .74rem;
    color: var(--erro);
    background: var(--erro-bg);
    border: 1px solid rgba(255, 120, 110, .35);
    border-radius: 9px;
}

.rodape {
    margin: .5rem 0 0;
    text-align: center;
    font-size: .62rem;
    color: var(--apagado);
}

@media (max-height: 560px) {
    body { overflow: auto; align-items: flex-start; }
    .marca img { max-height: 50px; }
}
