* {
	border: 0;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--white: #fff;
	--lightGray: #cccccc;
	--gray: #a8a8a8;
	--red: #ff0000;
	--darkRed: #810000;

	--background: #151515;
	--border: #1a1a1a;
	--gridItem: #232323;

	--radius: 15px;
	--gap: 100px;
	--cardMin: 400px;

	--inputTextSize: 20px;

	--newsGothic: "NewsGothic", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
		"DejaVu Sans Mono", system-ui, Arial, sans-serif;
}

@font-face {
	font-family: "Volux";
	src: url("../fonts/fonnts.com-volux.ttf");
}

@font-face {
	font-family: "NewsGothic";
	src: url("../fonts/fonnts.com-newsgothic-light.otf");
}

html,
body {
	height: 100%;
}

body {
	background: var(--background);
	color: var(--white);
}

/* Typography */
h1 {
	grid-column: 1/4;
	font-family: "Volux";
	color: var(--white);
	text-align: center;
	letter-spacing: 0.7rem;
	font-size: 6rem;
	margin: 50px;
	opacity: 90%;
}

h2 {
	font-family: var(--newsGothic);
	color: var(--white);
	font-size: 5rem;
	letter-spacing: 1rem;
	margin-top: 100px;
}

h3 {
	font-family: var(--newsGothic);
	color: var(--lightGray);
	font-size: 2rem;
	letter-spacing: 0.5rem;
	text-align: center;
	margin: 50px;
	opacity: 90%;
}

p {
	font-family: var(--newsGothic);
	font-size: 1.2rem;
	color: var(--gray);
	letter-spacing: 0.2rem;
	overflow-wrap: anywhere;
	text-align: center;
	margin-top: 10px;
}

h2,
h3,
p {
	line-height: 1.5;
}

h1,
h2,
h3,
p {
	-webkit-font-smoothing: antialiased;
	text-rendering: geometricPrecision;
}

.redText {
	color: var(--red);
}

html,body {
	height:100%;
	background:
		radial-gradient(circle at top right, rgba(129, 0, 0, 0.22), transparent 28%),
		linear-gradient(180deg, #1a1a1a, #101010 68%);
	overflow:hidden;
}

canvas {
	display:block;
	z-index: 0;
	width: 100%;
}

.loginDiv {
	z-index: 1;
	position:fixed;
	inset:0;
	display:flex;
	flex-direction: column;
	align-items:center;
	justify-content:space-between;
	pointer-events:none;
	padding: 2rem 1.25rem;
	gap: 1rem;
}

.loginBox {
	z-index: 2;
	pointer-events: auto;
	background-color: rgba(35, 35, 35, 0.92);
	padding: 1.25rem;
	border-radius: var(--radius);
	opacity: 90%;
	width: min(100%, 28rem);
	border: 1px solid rgba(255, 255, 255, 0.06);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

input, input::placeholder, label {
	text-align: center;
	color: var(--lightGray);
	font-family: "ui-monospace";
	font-size: var(--inputTextSize);

}

input {
	background-color: var(--border);
	border-radius: var(--radius);
	margin-block: 10px;
	padding-block: 10px;
	border: 1px solid var(--border);
	width: 100%;
	padding-inline: 1rem;
	transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

/* Red border, even on autofill */
input:hover, input:focus, input:focus-visible, input:-webkit-autofill:focus, input:-webkit-autofill:focus-visible {
	transform: translateY(-2px);
	border: 1px solid var(--red);
}

input:focus, input:focus-visible {
	outline: none;
}

/* Autofill styling on all browsers to remove the ugly yellow autofill highlight (hopefully) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active{
	-webkit-text-fill-color: var(--lightGray);
	caret-color: var(--lightGray);
	/* Hack fix to stop that ugly yellow autofill highlight */
	transition: background-color 999999s ease-out 0s;
}

#submit {
	width: 100%;
	background-color: var(--darkRed);
	cursor: pointer;
	letter-spacing: 0.18rem;
	text-transform: uppercase;
}

.flash-stack {
	display: grid;
	gap: 0.75rem;
	margin-top: 1rem;
}

.flash {
	padding: 0.9rem 1rem;
	border-radius: 1rem;
	border: 1px solid transparent;
	font-family: var(--newsGothic);
	font-size: 1rem;
	letter-spacing: 0.08rem;
	text-align: center;
}

.flash-error {
	background: rgba(129, 0, 0, 0.22);
	border-color: rgba(255, 0, 0, 0.45);
	color: var(--white);
}

.flash-success {
	background: rgba(24, 94, 67, 0.22);
	border-color: rgba(88, 211, 166, 0.45);
	color: var(--white);
}

.flash-info {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.12);
	color: var(--lightGray);
}

@media (max-width: 960px) {
	h1 {
		font-size: 4rem;
		margin: 2rem 0 1rem;
		letter-spacing: 0.4rem;
	}

	h3 {
		font-size: 1.4rem;
		margin: 1rem 0 2rem;
		letter-spacing: 0.25rem;
	}

	.loginDiv {
		justify-content: center;
	}
}

@media (max-width: 640px) {
	body,
	html {
		overflow: auto;
	}

	h1 {
		font-size: 2.35rem;
		letter-spacing: 0.2rem;
		margin: 1rem 0;
	}

	h3 {
		font-size: 1rem;
		letter-spacing: 0.12rem;
		margin: 0.75rem 0 0;
	}

	.loginDiv {
		padding: 1rem;
	}

	.loginBox {
		width: 100%;
		padding: 1rem;
	}

	input,
	input::placeholder,
	label {
		font-size: 1rem;
	}
}


