* {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 (128px tile) anchored at the center, so resizing grows it evenly on all sides; plain green while it loads */
	background: #2e7d32 url(/portal/cheap-bg.png) center;
}
main {place-self: center; width: min(100%, 20em); padding: 1em;}
/* a slightly darker panel, so white text stays readable over the pattern */
[data-view] {background: rgb(0 0 0 / .45); 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;}
