/* Tela de Logon inspirada no diálogo clássico do Windows 98 */

:root {
    --w98-desktop: #008080;
    --w98-face: #c0c0c0;
    --w98-face-light: #dfdfdf;
    --w98-hi: #ffffff;
    --w98-shadow: #808080;
    --w98-dark: #0a0a0a;
    --w98-navy: #000080;
    --w98-blue: #1084d0;
    --w98-ink: #000000;
    --w98-muted: #404040;
    --w98-err: #a80000;
    --w98-bevel-out:
        inset -1px -1px 0 var(--w98-dark),
        inset 1px 1px 0 var(--w98-hi),
        inset -2px -2px 0 var(--w98-shadow),
        inset 2px 2px 0 var(--w98-face-light);
    --w98-bevel-in:
        inset -1px -1px 0 var(--w98-hi),
        inset 1px 1px 0 var(--w98-shadow),
        inset -2px -2px 0 var(--w98-face-light),
        inset 2px 2px 0 var(--w98-dark);
    --w98-bevel-pressed:
        inset 1px 1px 0 var(--w98-dark),
        inset -1px -1px 0 var(--w98-hi),
        inset 2px 2px 0 var(--w98-shadow),
        inset -2px -2px 0 var(--w98-face-light);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Tahoma", "MS Sans Serif", "Microsoft Sans Serif", "Segoe UI", Arial, sans-serif;
    background: var(--w98-desktop);
    color: var(--w98-ink);
    font-size: 13px;
    line-height: 1.45;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.login-wrap {
    width: 100%;
    max-width: 470px;
    background: var(--w98-face);
    box-shadow: var(--w98-bevel-out), 6px 6px 0 rgba(0, 0, 0, .35);
    padding: 3px;
}

.login-topo {
    background: linear-gradient(90deg, var(--w98-navy) 0%, var(--w98-blue) 100%);
    color: #fff;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    user-select: none;
}

.login-topo-titulo {
    display: flex;
    align-items: center;
    gap: 7px;
}

.login-topo h1 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.login-winbtns {
    display: flex;
    gap: 2px;
}

.login-winbtn {
    width: 17px;
    height: 15px;
    background: var(--w98-face);
    color: var(--w98-ink);
    box-shadow: var(--w98-bevel-out);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.login-card {
    padding: 16px 18px 14px;
}

.login-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.login-icone-box {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--w98-face-light);
    box-shadow: var(--w98-bevel-in);
    color: var(--w98-navy);
}

.login-corpo {
    flex: 1;
    min-width: 0;
}

.login-card h2 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--w98-navy);
}

.login-card .dica {
    margin: 0 0 12px;
    color: var(--w98-muted);
    font-size: 12px;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.campo span {
    font-size: 12px;
    font-weight: 700;
    color: var(--w98-ink);
}

.campo input {
    border: none;
    border-radius: 0;
    box-shadow: var(--w98-bevel-in);
    padding: 6px 8px;
    font: inherit;
    font-size: 13px;
    color: var(--w98-ink);
    background: #fff;
    width: 100%;
    min-height: 28px;
}

.campo input:focus {
    outline: 1px dotted var(--w98-navy);
    outline-offset: -3px;
}

.login-acoes {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0;
    padding: 6px 18px;
    min-height: 28px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primario {
    background: var(--w98-navy);
    color: #fff;
    box-shadow:
        0 0 0 1px var(--w98-dark),
        inset -1px -1px 0 #000040,
        inset 1px 1px 0 #6ca6ff,
        inset -2px -2px 0 #000060,
        inset 2px 2px 0 var(--w98-blue);
}

.btn-primario:hover { background: #00009c; }
.btn-primario:active {
    box-shadow: 0 0 0 1px var(--w98-dark), inset 1px 1px 0 #000040;
    transform: translate(1px, 1px);
}
.btn-primario:focus-visible { outline: 1px dotted #fff; outline-offset: -4px; }

.alerta-erro {
    background: #ffffe1;
    border: 1px solid var(--w98-err);
    box-shadow: 2px 2px 0 var(--w98-shadow);
    color: var(--w98-err);
    padding: 8px 10px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Campo-armadilha (honeypot) do login: fora da tela para humanos,
   mas presente no HTML para atrair robôs de formulário. */
.hp-campo {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.rodape {
    margin: 0;
    padding: 4px 8px;
    border-top: 1px solid var(--w98-shadow);
    box-shadow: inset 0 1px 0 var(--w98-hi);
    font-size: 11px;
    color: var(--w98-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 480px) {
    .login-layout { flex-direction: column; }
    .login-icone-box { display: none; }
    .login-card { padding: 14px; }
}
