:root {
    color-scheme: light dark;
    --bg: #f4f5f7;
    --card: #ffffff;
    --fg: #1c1f23;
    --muted: #5c6570;
    --line: #dfe3e8;
    --accent: #1f6feb;
    --erro: #b3261e;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14171a;
        --card: #1d2126;
        --fg: #e7eaee;
        --muted: #9aa4b0;
        --line: #2e343b;
        --accent: #4c8dff;
        --erro: #ff6b60;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg);
    color: var(--fg);
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.card {
    width: 100%;
    max-width: 620px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px;
}

h1 { margin: 0 0 4px; font-size: 22px; }
h2 { margin: 28px 0 10px; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

.topo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sair { color: var(--muted); font-size: 14px; text-decoration: none; }
.sair:hover { color: var(--accent); text-decoration: underline; }

.sub { margin: 0 0 22px; color: var(--muted); font-size: 15px; }

label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--muted); }

input[type=text], input[type=password] {
    display: block;
    width: 100%;
    margin-bottom: 16px;
    padding: 11px 13px;
    font-size: 16px;
    color: var(--fg);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

/* campo de senha com botao de revelar */
.campo-senha { position: relative; }
.campo-senha input { padding-right: 46px; }

.olho {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
}
.olho:hover { color: var(--fg); filter: none; }
.olho:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.olho[aria-pressed="true"] { color: var(--accent); }
.olho svg[hidden] { display: none; }

button, .botao {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: var(--accent);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}
button:hover, .botao:hover { filter: brightness(1.08); }

.erro {
    margin: 0 0 18px;
    padding: 11px 13px;
    font-size: 14px;
    color: var(--erro);
    background: color-mix(in srgb, var(--erro) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--erro) 35%, transparent);
    border-radius: 8px;
}

.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 22px; font-size: 15px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }

.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13px; word-break: break-all; }

.aviso { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.aviso code { background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: 13px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 7px 8px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }

.rodape { margin: 24px 0 0; font-size: 13px; color: var(--muted); }
