* {box-sizing: border-box;}
html, body {margin: 0; min-height: 100dvh; overscroll-behavior: none;}
body {
	display: grid; font-family: system-ui, sans-serif; color: #fff;
	/* repeating pattern (80x50 tile from ~/septante-bg.png), centered on the page, darkened by a
	   90% black layer on top; plain black while it loads */
	background: linear-gradient(rgb(0 0 0 / .9), rgb(0 0 0 / .9)), #000 url(/portal/septante-bg.webp) center;
}
main {place-self: center; width: min(100%, 20em); padding: 1em;}
/* an opaque black panel: the pattern does not show through the form */
[data-view] {background: #000; padding: 1em; border-radius: .5em;}
a {color: #fff;}
form, [data-view] {display: grid; gap: .75em;}
[data-view] form {display: grid;}
p {margin: 0;}
/* 16px: no automatic zoom on focus (iPhone) */
input, button {font-size: 16px; padding: .8em; touch-action: manipulation;}
label {display: flex; gap: .5em; align-items: center;}
label input {width: 1.2em; height: 1.2em; margin: 0;}
.error {color: #ffd2d2; font-weight: bold;}
/* password field + its "show" button on one line */
.pw {display: grid; grid-template-columns: 1fr auto; gap: .5em;}
.pw input {min-width: 0;}
[data-view="done"] p {text-align: center;}
[hidden] {display: none !important;}
