:root {
    color-scheme: dark;
    font-family: system-ui, sans-serif;
    background: #000;
    color: #f9f5ed;
}
body { margin: 0; }
main {
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: 100svh;
    box-sizing: border-box;
    padding: 1.5rem;
    text-align: center;
}
img { display: block; width: min(100%, 34rem); height: auto; }
h1 {
    margin: -1rem 0 1.6rem;
    color: #f4cf80;
    font-size: clamp(1.05rem, 3vw, 1.45rem);
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}
nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
a {
    display: inline-block;
    padding: .65rem 1rem;
    border: 1px solid #8e713f;
    border-radius: .4rem;
    color: #f4cf80;
    text-decoration: none;
}
a:hover, a:focus-visible { outline: 2px solid #f4cf80; outline-offset: 3px; }
form {
    display: grid;
    gap: .75rem;
    width: min(100%, 20rem);
    text-align: start;
}
form label { display: grid; gap: .25rem; }
form input, form button {
    box-sizing: border-box;
    padding: .65rem .8rem;
    border: 1px solid #8e713f;
    border-radius: .4rem;
    font: inherit;
}
form input { background: #141414; color: #f9f5ed; }
form button { background: #f4cf80; color: #241803; cursor: pointer; }
form :focus-visible { outline: 2px solid #f4cf80; outline-offset: 3px; }
#loginStatus { margin: 0; min-height: 1.5em; color: #f4cf80; }

.password-field label { margin-bottom: .25rem; }
.password-control { position: relative; }
.password-control input { width: 100%; padding-inline-end: 3.25rem; }
#togglePreviewPassword {
    position: absolute;
    inset-inline-end: .12rem;
    inset-block: 0;
    width: 2.85rem;
    border: 0;
    padding: 0;
    background: transparent;
    color: #f4cf80;
}
#togglePreviewPassword svg { vertical-align: middle; }
#previewPassword[type="password"] ~ button .eye-slash { display: none; }
