:root {
    color-scheme: dark;
    --bg: #080808;
    --panel: #111111;
    --border: #303030;
    --text: #eeeeee;
    --muted: #b0b0b0;
    --green: #39e525;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 Arial, Helvetica, sans-serif;
}
main {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 28px 16px;
}
.panel {
    width: min(100%, 400px);
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
    text-align: center;
}
/* Soft, downward-only green shadow on sign-in and dashboard. */
.panel-glow {
    box-shadow: 0 28px 60px -30px rgba(57, 229, 37, .2996),
                0 12px 30px -19px rgba(57, 229, 37, .1605);
}
.logo {
    display: block;
    width: 100px;
    height: 76px;
    object-fit: contain;
    margin: 0 auto 15px;
    filter: drop-shadow(0 0 5px #39e52535);
}
h1 { font-size: 23px; line-height: 1.25; margin: 0 0 22px; font-weight: 600; }
form { margin: 0; display: flex; flex-direction: column; text-align: left; }
label { font-size: 14px; margin-bottom: 6px; }
input:not([type=hidden]) {
    width: 100%;
    min-width: 0;
    min-height: 43px;
    padding: 10px 12px;
    margin: 0 0 15px;
    border: 1px solid #404040;
    border-radius: 5px;
    background: #090909;
    color: var(--text);
    font: inherit;
}
input[aria-describedby] { margin-bottom: 6px; }
button, .primary-button, .secondary-button {
    display: block;
    width: 100%;
    min-height: 43px;
    padding: 11px 14px;
    border-radius: 5px;
    border: 1px solid var(--green);
    background: var(--green);
    color: #080808;
    font: inherit;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
button:hover, .primary-button:hover { background: #65ed56; border-color: #65ed56; }
a { color: var(--green); }
a:hover { text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.hint { font-size: 12px; color: var(--muted); margin: 0 0 15px; line-height: 1.5; }
.switch { color: var(--muted); font-size: 13px; margin: 18px 0 0; }
.welcome { color: var(--muted); margin: -5px 0 22px; overflow-wrap: anywhere; }
.logout-form { margin-top: 10px; }
.secondary-button { color: var(--text); background: transparent; border-color: #444; font-weight: 400; }
.secondary-button:hover { background: #232323; border-color: #666; }
.alert { padding: 10px 12px; margin: 0 0 18px; border: 1px solid currentColor; border-radius: 5px; text-align: left; font-size: 13px; overflow-wrap: anywhere; }
.alert.success { color: #88e67b; }
.alert.warning { color: #f4ca77; }
.alert.danger { color: #ff9b9b; }
@media (max-width: 420px) { .panel { padding: 24px 20px; } }

/* Live password requirements: neutral until met; no decorative animation. */
.password-checklist { margin: 0 0 15px; }
.requirements-title { margin: 0 0 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.requirements-list { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.requirements-list li { display: flex; align-items: baseline; gap: 7px; margin: 3px 0; }
.rule-mark { flex: 0 0 13px; text-align: center; font-weight: 600; }
.requirements-list li.met { color: var(--green); }
.confirm-list { margin: 0 0 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
