html,
body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
}

body {
	display: flex;
	flex-direction: column;
	background: #f5f7fb;
}

elements-api {
	display: block;
	width: 100vw;
	/*height: 100vh;*/
}

header {
	background: #304859;
	font-family: "Sora", sans-serif;

	p {
		margin: 0;
	}

	ul {
		display: flex;
		gap: 20px;
		margin: 0;
		margin-left: auto !important;

		li {
			padding: 10px;
			color: white;
			cursor: pointer;
		}
	}
}

.menu-login {
	position: relative;
	list-style: none;
	padding: 0;
}

.menu-login-button {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px;
	border: 0;
	background: transparent;
	color: white;
	font: inherit;
	cursor: pointer;
}

.menu-login-button [hidden],
.menu-login-dropdown[hidden] {
	display: none !important;
}

.menu-login-icon {
	position: relative;
	top: 1px;
}

.menu-login-caret {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid white;
}

.menu-login-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	display: flex;
	min-width: 180px;
	flex-direction: column;
	padding: 8px 0;
	border-radius: 8px;
	background: white;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
	z-index: 10;
}

.menu-login-dropdown-item {
	padding: 10px 16px;
	border: 0;
	background: transparent;
	color: #304859;
	font: inherit;
	text-align: left;
	cursor: pointer;

	&:hover {
		background: #edf2f6;
	}
}

dialog {
	background-color: white;
	border: none;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#loginForm {
	position: relative;
	display: flex;
	width: 400px;
	flex-direction: column;

	h2 {
		font-weight: bold;
		font-size: 1.5rem;
	}

	label {
		margin-top: 20px;
	}

	input {
		padding: 10px;
		border: 1px solid #ccc;
		border-radius: 4px;
	}

	button {
		margin-top: 20px;
		padding: 10px;
		border: none;
		border-radius: 4px;
		background-color: #304859;
		color: white;
		cursor: pointer;

		&:hover {
			background-color: #3b5a6f;
		}
	}
}

.login-close-button {
	position: absolute;
	top: 0;
	right: 0;
	width: 32px;
	height: 32px;
	margin-top: 0 !important;
	padding: 0 !important;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #7a8592;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.login-close-button:hover {
	background: transparent;
}

#loginForm .login-close-button,
#loginForm .login-close-button:hover,
#loginForm .login-close-button:focus-visible {
	background-color: transparent !important;
	color: #7a8592 !important;
}

.login-error-box {
	margin: 4px 0 10px;
	padding: 10px 12px;
	border: 1px solid #ef9a9a;
	border-radius: 6px;
	background: #ffebee;
	color: #b71c1c;
	font-size: 0.9rem;
	line-height: 1.4;
}

.login-reset-description {
	margin: 0 0 8px;
	color: #5f6b7a;
	font-size: 0.92rem;
	line-height: 1.45;
}

.login-reset-done {
	margin: 8px 0 0;
	padding: 12px;
	border-radius: 6px;
	background: #f1f7f2;
	color: #2f5130;
	line-height: 1.45;
}