.container {
	background-image: linear-gradient(
        rgba(4,9,30,0.7),
        rgba(4,9,30,0.7)
    ), url(background.jpg);
}

/* ===============================
   BASE / DESKTOP
=============================== */

body_part {
	max-height: 78svh;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.main {
	width: 35%;
	background: rgba(100, 100, 100, 0.3);
	border-radius: 5px;
	margin: 10px auto;
	padding: 5svh;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

h1 {
	margin-top: 0;
	color: #dfcd81;
	text-align: center;
	font-size: clamp(1.2rem, 1.5vw, 1.8rem);
}

.main p {
	text-align: center;
	padding: 0.6rem 0;
	font-size: clamp(0.75rem, 0.8vw, 0.9rem);
}

.main p a {
	text-decoration: none;
	color: wheat;
	padding: 0.4rem 1.1rem;
	background-color: #222;
	border-radius: 4px;
}

.main p a:hover {
	background-color: #384E2D;
	color: white;
}

.input {
	width: 100%;
	padding: 0.3rem;
	margin: 0.3rem 0;
	box-sizing: border-box;
}

form label {
	display: block;
	padding: 0.15rem 0;
	color: #dfcd81;
	white-space: nowrap;
}

form input#username,
form input#password {
	height: 2.2rem;
	width: 85%;
	max-width: 420px;
	background-color: #222;
	border: 1px solid #444;
	padding: 0 0.45rem;
	font-size: 0.8rem;
	color: #fff;
	border-radius: 4px;
	box-sizing: border-box;
}

/* Password wrapper injected by JS */
.password-field {
	width: 85%;
	max-width: 420px;
	position: relative;
}

form input#username:focus,
form input#password:focus {
	border-color: #555;
	outline: none;
	background-color: #333;
}

.remember {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-left: 0.6rem;
}

form input#submit {
	font-size: 0.8rem;
	color: #dfcd81;
	background-color: rgba(100, 100, 100, 0.5);
	border: 1px solid #444;
	margin: 0.6rem;
	padding: 0.45rem 2rem;
	cursor: pointer;
	border-radius: 4px;
}

form input#submit:hover {
	border-color: #dfcd81;
	background: #384E2D;
	transition: 0.6s;
}

hr {
	height: 1px;
	background-color: #dfcd81;
	border: none;
	margin: 0.6rem 0;
	width: 100%;
}

.reset_register {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.reset_register p {
	text-align: left;
	font-size: clamp(0.6rem, 0.6vw, 0.7rem);
}

/* ===============================
   TABLET VIEW
   Desktop layout, scaled down
=============================== */

@media (min-width: 601px) and (max-width: 1024px) {

	body_part {
		max-height: 85svh;
		padding: 1rem;
	}

	.main {
		width: 55%;
		padding: 4svh;
	}

	h1 {
		font-size: clamp(1.3rem, 2.2vw, 1.6rem);
	}

	.main p {
		font-size: clamp(0.85rem, 1.4vw, 1rem);
	}

	form input#username,
	form input#password,
	.password-field {
		width: 90%;
		max-width: 480px;
	}

	form input#submit {
		font-size: 0.85rem;
		padding: 0.5rem 2.2rem;
	}

	.reset_register p {
		font-size: clamp(0.75rem, 1.2vw, 0.85rem);
	}
}

/* ===============================
   MOBILE VIEW
=============================== */

@media (max-width: 600px) {

	body_part {
		max-height: 70svh;
		padding: 0.6rem;
	}

	.main {
		width: 95%;
		min-height: 60svh;
		margin: 0 auto;
		padding: 0.4rem;
		align-items: stretch;
	}

	h1 {
		font-size: 5vw;
	}

	.main p {
		font-size: 3.5vw;
	}

	form input#username,
	form input#password,
	.password-field {
		width: 100%;
		max-width: none;
	}

	.reset_register {
		align-items: center;
		width: 100%;
	}

	.reset_register p {
		text-align: center;
		font-size: 3vw;
	}
}
