@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Roboto:wght@500;700&display=swap');

:root {
	color-scheme: light;
	font-family: 'DM Sans', sans-serif;
	color: #38291f;
	background: #f5eee6;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
}

* {
	box-sizing: border-box;
}

body {
	min-height: 100vh;
	min-height: 100svh;
	margin: 0;
	display: grid;
	grid-template-rows: auto 1fr auto;
	background:
		radial-gradient(ellipse at 15% 15%, rgb(239 207 170 / 58%), transparent 36rem),
		#f5eee6;
}

header {
	padding: clamp(2rem, 7vh, 5rem) 1.5rem 1.25rem;
	text-align: center;
}

header h1 {
	margin: 0;
	font-family: 'Roboto', sans-serif;
	font-size: clamp(2.5rem, 8vw, 4.75rem);
	font-weight: 700;
	line-height: 1.05;
	color: #8e4b24;
}

header p {
	margin: 0.8rem 0 0;
	font-family: 'Roboto', sans-serif;
	font-size: clamp(1rem, 2.5vw, 1.2rem);
	color: #796452;
}

main {
	width: min(100% - 2rem, 27rem);
	margin: 0 auto;
	align-self: center;
	padding: 1.5rem 0 2rem;
}

main section {
	padding: clamp(1.4rem, 5vw, 2.25rem);
	border: 1px solid #e5d5c5;
	border-radius: 0.75rem;
	background: rgb(255 252 247 / 94%);
	box-shadow: 0 1.25rem 3.5rem rgb(91 57 32 / 10%);
}

#login-heading {
	margin: 0 0 1.75rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid #edddcd;
	font-size: 1.7rem;
	font-weight: 700;
	color: #8e4b24;
}

form p {
	margin: 0 0 1.15rem;
}

label {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.9rem;
	font-weight: 700;
	color: #57402f;
}

input {
	width: 100%;
	min-height: 3rem;
	padding: 0.75rem 0.85rem;
	border: 1px solid #d9c6b2;
	border-radius: 0.4rem;
	background: #fff;
	font: inherit;
	color: #38291f;
}

input::placeholder {
	color: #978474;
}

input:focus-visible,
a:focus-visible,
button:focus-visible {
	outline: 3px solid #dc7a36;
	outline-offset: 3px;
}

.btn {
	width: 100%;
	min-height: 3rem;
	padding: 0.75rem 1rem;
	white-space: normal;
}

a {
	color: inherit;
	text-decoration: none;
}

footer {
	padding: 1.25rem 1rem;
	text-align: center;
	font-size: 0.85rem;
	color: #79695a;
}

footer p {
	margin: 0;
}

footer a {
	font-weight: 700;
	color: #a95525;
}

footer a:hover {
	text-decoration: underline;
}

@media (max-width: 22rem) {
	header {
		padding-inline: 1rem;
	}

	main {
		width: min(100% - 1.25rem, 27rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}
}