:root {
	--accent: #00b583;
	--accent-color: #ffffff;
	--sidenav-background: #295361;
	--sidenav-color: #ffffff;
	--error: #f44336;
	--error-o-5: rgba(244, 67, 54, 0.5);
}

html {
	height: 100%;
	width: 100%;
	font-size: 20px;

	font-family: Roboto, "Helvetica Neue", sans-serif !important;
	line-height: 1.2rem;
}

body {
	margin: 0;
	padding: 0;
	font-size: 0.7rem;

	height: 100%;
	width: 100%;
	display: grid;
	grid-template: "branding right-panel" / 2fr minmax(320px, 1fr);
}

span.icon {
	font-family: "Material Symbols Outlined";
	font-size: 1.2rem;
}

header {
	grid-area: "branding";
	display: flex;
	align-items: center;
	justify-content: center;

	span {
		font-size: 50px;
	}
	img {
		height: 80px;
		width: 80px;
		margin: 0;
	}
}

main {
	grid-area: "right-panel";
	padding-top: 1rem;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	background: var(--sidenav-background);
	color: var(--sidenav-color);

	.error {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 300px;
		margin-bottom: 2rem;
		border: solid 1px var(--error);
		padding: 0.5rem 1rem;
		border-radius: 0.25rem;
		box-sizing: border-box;
		background: var(--error-o-5);
	}

	h1 {
		width: 300px;
		font-weight: 400;
		font-size: 1.4rem;
		line-height: normal;
		margin: 0;
	}

	h2 {
		width: 300px;
		font-weight: 400;
		font-size: 1.1rem;
		line-height: normal;
		margin: 0 0 2rem;
	}
	h5 {
		font-weight: 400;
		margin: 0;
	}

	.strength-wrapper {
		margin-top: -1rem;
		border-radius: 0.25rem;
		height: 0.5rem;
		border: solid 1px var(--sidenav-border-color);
		display: flex;
		align-items: stretch;
	}

	#strength {
		background: var(--accent);
	}

	#no-match,
	#too-short {
		margin-top: -0.75rem;
		overflow: hidden;
		padding: 0 0.5rem;
		border-radius: 0.25rem;
		line-height: normal;
		box-sizing: border-box;
		background: var(--error-o-5);
		transition: all 0.4s ease;
	}

	form {
		display: flex;
		gap: 1rem;
		flex-direction: column;
		width: 300px;
		margin-bottom: 1rem;

		input[type="submit"] {
			display: flex;
			align-items: center;
			justify-content: center;
			width: 300px;
			height: 2.5rem;
			font-weight: 500;
			font-size: 0.9rem;
			border-radius: 5px;
			background: var(--sidenav-background);
			color: var(--accent-color);
			border: solid 1px var(--sidenav-color);
			cursor: pointer;

			&[disabled] {
				opacity: 0.5;
				cursor: default;
			}

			&.secondary {
				border: none;
				font-weight: 400;
				font-size: 0.7rem;

				&:hover {
					background: rgba(0, 0, 0, 0.15);
					box-shadow:
						0px 2px 4px -1px rgba(0, 0, 0, 0.2),
						0px 4px 5px 0px rgba(0, 0, 0, 0.14),
						0px 1px 10px 0px rgba(0, 0, 0, 0.12);
				}
			}

			&:hover {
				background: rgba(255, 255, 255, 0.1);
			}
			&:focus {
				outline: solid 2px white;
				outline-offset: 2px;
			}
		}

		input[type="text"],
		input[type="password"] {
			border: none;
			background: none;
			width: 300px;
			padding: 5px 20px;
			height: 1.5rem;
			outline: none;
			color: inherit;
		}

		.input-row {
			display: flex;
			align-items: center;
			border-bottom: solid 1px var(--sidenav-color);
		}

		.input-hint {
			margin-top: -1rem;
			color: var(--sidenav-color);
			opacity: 0.7;
			font-size: 75%;
		}

		.remember-me {
			margin-top: 0.5rem;
			display: flex;
			align-items: center;
			gap: 5px;

			input {
				accent-color: var(--accent);
			}
		}
	}
}
@media (max-width: 768px) {
	body {
		grid-template:
			"branding" max-content
			"right-panel" auto !important;
	}

	main {
		justify-content: flex-start !important;
	}
}
