/* CSS Styles */
:root {
	--hl-primary: #10886f;
	--bg-primary: #ffffff;
	--bg-secondary: #eaf6f4;
	--bg-subtle: #e2e6e9;
	--text-primary: #0e1723;
	--text-black: #0e1723;
	--text-white: #ffffff;
	--font-primary: 'Roboto', sans-serif;
	--color-valid: #4bb543;
	--color-invalid: #d32f2f;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	overflow-x: hidden;
	margin: 0;
	padding: 0;
	font-family: var(--font-primary);
	background-color: var(--bg-secondary);
	color: var(--text-primary);
}

.layout {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 100vh;
	width: 100vw;
	overflow-y: auto;
}

header {
	width: 100%;
	display: flex;
	justify-content: center;
	background-color: var(--bg-primary);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	padding: 20px;
	flex-shrink: 0;
	text-align: center;
}

a {
	text-decoration: none;
	color: var(--hl-primary);
}

a:hover {
	opacity: 0.8;
}

.logo {
	font-size: 2rem;
	font-weight: 700;
	color: var(--hl-primary);
	text-decoration: none;
	display: inline-block;
}

.logo small {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--hl-primary);
	margin-left: 8px;
}

.content-wrapper {
	flex: 1;
	width: 100%;
	padding: 30px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

main {
	width: 100%;
	max-width: 600px;
	background-color: var(--bg-primary);
	padding: 30px;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.registration-header {
	color: var(--hl-primary);
	margin-top: 0;
	text-align: center;
}

.form-group {
	margin-bottom: 20px;
}

.password-wrapper {
	position: relative;
}

.eye-toggle {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	cursor: pointer;
	color: #6b7280;
	width: 20px;
	height: 20px;
}

.eye-toggle .eye-icon-hidden {
	display: none;
}

label {
	display: block;
	margin-bottom: 8px;
	font-weight: 700;
	color: var(--text-black);
	font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
	width: 100%;
	padding: 12px;
	padding-right: 40px;
	/* Space for eye icon */
	border: 1px solid var(--bg-subtle);
	border-radius: 8px;
	font-size: 1rem;
	color: var(--text-black);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Adjust padding for non-password fields */
input[type="text"],
input[type="email"] {
	padding-right: 12px;
}


input:focus {
	border-color: var(--hl-primary);
	box-shadow: 0 0 0 3px rgba(16, 136, 111, 0.2);
	outline: none;
}

button.form-button {
	width: 100%;
	padding: 15px;
	background-color: var(--hl-primary);
	color: var(--text-white);
	border: none;
	border-radius: 8px;
	font-size: 1.1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.3s ease, opacity 0.3s ease;
}

button.form-button:hover:not(:disabled) {
	opacity: 0.8;
}

button.form-button:disabled {
	background-color: #9ca3af;
	/* Gray when disabled */
	cursor: not-allowed;
	opacity: 0.7;
}

footer {
	text-align: center;
	margin-top: auto;
	padding-top: 20px;
	font-size: 0.95rem;
	color: #6b7280;
	flex-shrink: 0;
}

#password-rules {
	font-size: 0.875rem;
	margin-top: 8px;
	padding-left: 0;
	list-style-type: none;
}

#password-rules li {
	color: var(--color-invalid);
	margin-bottom: 4px;
	transition: color 0.3s ease;
}

#password-rules li.valid {
	color: var(--color-valid);
}

#password-rules li::before {
	content: '●';
	/* Circle character */
	display: inline-block;
	margin-right: 8px;
}

.password-match-status {
	font-size: 0.875rem;
	margin-top: 8px;
	height: 1em;
	/* Reserve space to prevent layout shift */
}

.password-match-status.valid {
	color: var(--color-valid);
}

.password-match-status.invalid {
	color: var(--color-invalid);
}

div.change-language-container {
	padding-top: 1rem;
	display: flex;
	justify-content: center;
	gap: 4px;
	font-size: 0.8rem;
}

div.change-language-container>a.language-selection {
	text-decoration: none;
	color: var(--text-primary);
}

div.change-language-container>a.language-selection.active {
	color: var(--hl-primary);
}

div.change-language-container>a.language-selection:hover {
	color: var(--hl-primary);
	opacity: 0.9;
}

/* Responsive */
@media (max-width: 600px) {
	.logo {
		font-size: 1.5rem;
	}

	.logo small {
		font-size: 0.75rem;
		display: block;
		margin-left: 0;
		margin-top: 4px;
	}

	.content-wrapper {
		width: 100%;
		padding: 0;
		margin-top: 20px;
		margin-bottom: 20px;
	}

	main {
		width: 100%;
		padding: 20px;
	}

	.registration-header {
		font-size: 1.5rem;
	}

	button.form-button {
		font-size: 1rem;
	}
}