/************************************************************************************/
/*	Account pages (login, sign up, activate, reset, change password)				*/
/*	Same layout as the pubquiz login: one card in the middle of the screen.			*/
/*	Colours: the dark of the game with the orange of the header image.				*/
/************************************************************************************/
:root {
	--bg: #0b0d12;
	--card: #161a22;
	--line: #2c3340;
	--text: #e9edf3;
	--muted: #9aa5b5;
	--accent: #e8590c;			/* orange, from the header image */
	--accent-dark: #c44a08;
	--link: #b5cefc;			/* the link colour of the game pages */
	--error: #ff6b6b;
	--ok: #5bd17a;
	font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: var(--link); }

.auth-page { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.auth-box {
	width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line);
	border-top: 6px solid var(--accent); border-radius: 10px; overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.auth-hero { display: block; width: 100%; height: auto; aspect-ratio: 720 / 347; object-fit: cover; }
/* the flags: Nederlands / English (MGi18n.php), top right on the picture */
.auth-box { position: relative; }
.auth-box > .lang-flags { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; gap: 8px; padding: 6px 8px; border-radius: 8px; background: rgba(0, 0, 0, .55); }
.lang-flag { display: inline-flex; width: 30px; height: 21px; border-radius: 3px; overflow: hidden; opacity: .55; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
.lang-flag:hover, .lang-flag:focus-visible { opacity: .9; }
.lang-flag.is-active { opacity: 1; box-shadow: 0 0 0 2px #e8590c; }
.lang-flag .flag { display: block; width: 100%; height: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.auth-body { padding: 24px 28px 8px; }
.auth-body h1 { margin: 0 0 4px; font-size: 1.5rem; color: #fff; }
.auth-intro { margin: 0 0 8px; color: var(--muted); font-size: .95rem; }

.auth-body form { margin: 0; }
.auth-body label { display: block; margin: 14px 0 6px; font-size: .9rem; font-weight: 600; }
.auth-body input[type=text], .auth-body input[type=email], .auth-body input[type=password] {
	width: 100%; padding: 11px 12px; font: inherit; font-size: 16px;	/* 16px: phones do not zoom in */
	color: #111; background: #f4f6f9; border: 1px solid var(--line); border-radius: 6px;
}
.auth-body input:focus, .btn:focus-visible, .linkbtn:focus-visible, a:focus-visible { outline: 3px solid #f59f6b; outline-offset: 1px; }
.field-note { margin: 4px 0 0; color: var(--muted); font-size: .8rem; }
.auth-body input[readonly] { background: #d9dee6; }

.btn {
	display: inline-block; width: 100%; margin-top: 18px; padding: 12px 20px; border: none; border-radius: 6px;
	background: var(--accent); color: #fff; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none;
}
.btn:hover { background: var(--accent-dark); }
.btn.secondary { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.secondary:hover { border-color: var(--muted); }
.linkbtn { background: none; border: none; padding: 0; color: var(--link); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.auth-links { margin: 18px 0 6px; padding: 0; list-style: none; font-size: .95rem; }
.auth-links li { margin: 6px 0; }
.auth-links .muted { color: var(--muted); }

.auth-msg { margin: 12px 0; padding: 10px 12px; border-radius: 6px; font-size: .95rem; }
.auth-msg-error { background: rgba(255, 107, 107, .12); border-left: 4px solid var(--error); }
.auth-msg-ok { background: rgba(91, 209, 122, .12); border-left: 4px solid var(--ok); }
.auth-msg-info { background: rgba(181, 206, 252, .1); border-left: 4px solid var(--link); }

/* hidden field that only robots fill in */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.auth-foot { padding: 10px 28px 18px; border-top: 1px solid var(--line); margin-top: 16px; text-align: center; font-size: .9rem; }

/* Disclaimer pop-up */
.auth-dialog {
	max-width: min(520px, calc(100vw - 32px)); padding: 22px 24px; border: 1px solid var(--line); border-top: 6px solid var(--accent);
	border-radius: 10px; background: var(--card); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
}
.auth-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.auth-dialog h2 { margin: 0 0 10px; font-size: 1.2rem; color: #fff; }
.auth-dialog p { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.auth-dialog .btn { width: auto; margin-top: 8px; }

@media (max-width: 420px) {
	.auth-page { padding: 0; align-items: flex-start; }
	.auth-box { border-radius: 0; border-left: none; border-right: none; min-height: 100vh; min-height: 100dvh; }
	.auth-body { padding: 20px 18px 6px; }
	.auth-foot { padding: 10px 18px 70px; }		/* room for the help button */
}
