@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
	--theme-green: #2f9f62;
	--theme-yellow: #f3d667;
	--theme-turquoise: #2dc3b2;
	--theme-bg: #102d24;
	--theme-panel: rgba(12, 42, 33, 0.88);
	--theme-text: #f4fff7;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;

	background-image: url("../img/abstract-gradient-circles-background-with-yellow-and-green-colors-vector.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;

	color: var(--theme-text);
	font-family: "Poppins", sans-serif;
	font-size: 20px;
	font-weight: 500;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.75));
	z-index: -1;
}

h1 {
	margin: 0 0 22px;
	text-align: center;
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: 30px;
	letter-spacing: 1px;
}

form {
	width: min(92vw, 520px);
	padding: 28px;
	border: 2px solid var(--theme-turquoise);
	border-radius: 12px;
	background: linear-gradient(to bottom, var(--theme-panel) 65%, rgba(47, 159, 98, 0.85));
	box-shadow: 0 0 22px rgba(45, 195, 178, 0.24);
}

label {
	display: block;
	margin-bottom: 14px;
	font-size: 20px;
}

input {
	width: 100%;
	margin-top: 8px;
	padding: 12px 14px;
	border: 2px solid var(--theme-green);
	border-radius: 10px;
	background: rgba(8, 32, 25, 0.82);
	color: var(--theme-text);
	font-family: "Poppins", sans-serif;
	font-size: 18px;
	box-sizing: border-box;
}

input:focus {
	outline: none;
	border-color: var(--theme-yellow);
	box-shadow: 0 0 0 3px rgba(243, 214, 103, 0.28);
}

button {
	width: 100%;
	padding: 14px;
	margin-top: 8px;
	border: 2px solid var(--theme-yellow);
	border-radius: 10px;
	cursor: pointer;

	color: var(--theme-text);
	font-family: "Poppins", sans-serif;
	font-size: 22px;
	font-weight: 700;
	background: linear-gradient(to bottom, rgba(8, 32, 25, 0.95) 60%, var(--theme-green));
}

button:hover {
	filter: brightness(1.08);
}

button:active {
	transform: translateY(1px);
}

#result {
	width: min(92vw, 520px);
	margin: 14px auto 8px;
	padding: 10px 14px;
	border-radius: 10px;
	background: rgba(8, 32, 25, 0.78);
	text-align: center;
	font-size: 17px;
}

p:last-of-type {
	width: min(92vw, 520px);
	margin: 10px auto 0;
	padding: 12px;
	border-radius: 10px;
	background: rgba(8, 32, 25, 0.78);
	text-align: center;
	line-height: 1.7;
}

a {
	color: var(--theme-turquoise);
	text-decoration: none;
	font-weight: 700;
}

a:hover {
	color: white;
	text-decoration: underline;
}

@media (max-width: 700px) {
	body {
		padding: 16px;
	}

	form {
		padding: 20px;
	}

	h1 {
		font-size: 24px;
		margin-bottom: 16px;
	}

	label {
		font-size: 18px;
	}

	input {
		font-size: 16px;
	}

	button {
		font-size: 20px;
	}
}

@media (max-width: 420px) {
	h1 {
		font-size: 20px;
	}

	form {
		border-width: 3px;
		border-radius: 10px;
		padding: 16px;
	}

	label {
		font-size: 16px;
	}

	input {
		padding: 10px 12px;
	}

	button {
		font-size: 18px;
		padding: 12px;
	}

	#result,
	p:last-of-type {
		font-size: 15px;
	}
}
