/* Boyish Society sign-up — sizes measured from the original RegistrationMagic form
   (form 428px wide, 388px fields, 38px tall inputs, 30px between fields, 150 x 50 ENTER button). */

/* ---------- full-screen welcome ----------
   Fixed to the screen on top of the page: no page margins (white borders) show,
   the theme's own top bar is covered (no duplicate), and the page can't scroll,
   so the video stays still on desktop, tablet and phone. */
html:has(.bsu-welcome), body:has(.bsu-welcome) { overflow: hidden !important; height: 100%; }
body.bsu-page { margin: 0; background: #000; }
.bsu-welcome {
	position: fixed;
	inset: 0;
	z-index: 99990;
	width: 100%;
	height: 100%;
	margin: 0;
	overflow-x: hidden;
	overflow-y: auto;            /* only the form scrolls, and only on very short screens */
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	background: var(--bsu-bg, #000);
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}
.admin-bar .bsu-welcome { top: 32px; height: calc(100% - 32px); }
@media (max-width: 782px) { .admin-bar .bsu-welcome { top: 46px; height: calc(100% - 46px); } }
.bsu-video {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	pointer-events: none;
}
.bsu-overlay {
	position: fixed;
	inset: 0;
	z-index: 1;
	background: #000;
	opacity: var(--bsu-overlay, 0);
	pointer-events: none;
}
.bsu-topbar {
	position: relative;
	z-index: 2;
	background: #000;
	color: #fff;
	text-align: center;
	font: 500 11px/20px Arial, "Helvetica Neue", Helvetica, sans-serif;
	text-transform: uppercase;
	padding: 5px 15px;
}
.bsu-badge { display: inline-block; background: #f40909; color: #fff; padding: 0 7px; margin-left: 6px; }
.bsu-center {
	position: relative;
	z-index: 2;
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 20px 60px;
	box-sizing: border-box;
}
.bsu-logo { display: block; width: var(--bsu-logo, 128px); height: var(--bsu-logo, 128px); max-width: 60vw; object-fit: contain; margin: 0 0 21px; }

/* ---------- the form ---------- */
.bsu-wrap { width: 428px; max-width: 100%; }
.bsu-form { padding: 10px; margin: 0; box-sizing: border-box; }
.bsu-intro {
	margin: 25px 0 13px;
	padding: 0 5px;
	text-align: center;
	color: #fff;
	font: 400 12px/18px "Roboto", Arial, sans-serif;
	text-transform: uppercase;
}
.bsu-field { padding: 0 10px; margin: 0 0 20px; position: relative; }
.bsu-field label {
	display: block;
	margin: 0 0 6px;
	color: #fff;
	font: 700 13px/20.8px Arial, "Helvetica Neue", Helvetica, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0;
}
.bsu-req { color: rgba(240, 0, 41, .75); margin-left: 3px; }
.bsu-form .bsu-field input,
.bsu-form .bsu-field input[type] {
	display: block;
	width: 100%;
	height: 38px;
	box-sizing: border-box;
	margin: 0;
	padding: 6px 10px;
	border: 1px solid rgba(128, 128, 128, .5);
	border-radius: 3px;
	background: rgba(255, 255, 255, .33);
	color: rgba(0, 0, 0, .75);
	font: 400 13px/16.9px "Roboto", Arial, sans-serif;
	box-shadow: none;
	outline: 0;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s, background-color .2s;
}
.bsu-form .bsu-field input::placeholder { color: #909097; opacity: 1; text-transform: uppercase; }
.bsu-form .bsu-field input:focus { border-color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .55); }
.bsu-form .bsu-field.has-error input { border-color: rgba(240, 0, 41, .75); }
.bsu-error {
	display: block;
	min-height: 0;
	margin-top: 4px;
	color: #fff;
	font: 400 11px/14px "Roboto", Arial, sans-serif;
}
.bsu-error:empty { display: none; }

.bsu-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.bsu-actions { text-align: center; margin-top: 54px; }
.bsu-form .bsu-submit {
	display: inline-block;
	min-width: 150px;
	height: 50px;
	padding: 10px 15px;
	box-sizing: border-box;
	background-color: rgba(0, 0, 0, .8);
	color: #fff;
	border: 1px solid rgba(0, 0, 0, .9);
	border-radius: 0;
	font: 500 16px/28px "Roboto", Arial, sans-serif;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: none;
	/* smooth fade to red on hover */
	transition: background-color .5s cubic-bezier(.22, .61, .36, 1),
	            border-color .5s cubic-bezier(.22, .61, .36, 1),
	            color .5s cubic-bezier(.22, .61, .36, 1);
}
.bsu-form .bsu-submit:hover,
.bsu-form .bsu-submit:focus-visible {
	background-color: #f40909;
	border-color: #f40909;
	color: #fff;
}
.bsu-form .bsu-submit:focus { outline: none; }
.bsu-form .bsu-submit:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }
.bsu-form .bsu-submit[disabled] { opacity: .6; cursor: wait; }
.bsu-form-error { margin: 14px 0 0; text-align: center; color: #fff; font: 400 12px/18px "Roboto", Arial, sans-serif; }
.bsu-form-error:empty { display: none; }

.bsu-success { text-align: center; color: #fff; padding: 20px 10px 100px; }
.bsu-success p { margin: 0 0 18px; font: 400 12px/18px "Roboto", Arial, sans-serif; }

@media (max-width: 480px) {
	.bsu-logo { width: min(var(--bsu-logo, 128px), 100px); height: min(var(--bsu-logo, 128px), 100px); }
	.bsu-center { padding: 30px 16px 50px; }
}
