* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: Inter, Arial, sans-serif;
}

body {
	min-height: 100vh;
	background: #020617;
	color: white;
	overflow: hidden;
}

.LanguageSelector {
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: 3;
	height: 42px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	background: rgba(3, 18, 43, 0.35);
	backdrop-filter: blur(12px);
	color: white;
}

.LanguageSelector select {
	height: 100%;
	padding: 0 24px 0 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 13px;
	outline: none;
	appearance: none;
	cursor: pointer;
}

.LanguageSelector::after {
	content: "\f107";
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
	pointer-events: none;
}

.LanguageSelector:hover {
	border-color: rgba(255, 255, 255, 0.2);
}

.LanguageSelector:focus-within {
	border-color: rgba(255, 255, 255, 0.7);
	box-shadow:
		0 0 0 4px rgba(56, 189, 248, 0.08),
		0 10px 24px rgba(0, 0, 0, 0.18);
}

.Background {
	position: fixed;
	inset: 0;
	background:
		radial-gradient(circle at 18% 22%, rgba(59, 130, 246, 0.28), transparent 32%),
		radial-gradient(circle at 82% 72%, rgba(14, 165, 233, 0.22), transparent 34%),
		linear-gradient(135deg, #020617 0%, #071426 52%, #0b1220 100%);
}

.Background::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 52px 52px;
	mask-image: radial-gradient(circle at center, black, transparent 74%);
}

.Background::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(120deg, rgba(56, 189, 248, 0.05), transparent 38%),
		linear-gradient(300deg, rgba(37, 99, 235, 0.06), transparent 42%);
}

.Wrapper {
	position: relative;
	z-index: 2;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.LoginCard {
	position: relative;
	width: 620px;
	min-height: 360px;
	padding: 52px 64px 46px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	background: rgba(3, 18, 43, 0.2);
	backdrop-filter: blur(14px);
	box-shadow: 0 20px 70px rgba(0, 0, 0, 0.24);
	animation: CardIn 500ms ease;
}

.LoginCard::before {
	content: "";
	position: absolute;
	left: 48px;
	right: 48px;
	top: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
}

.Brand {
	text-align: center;
	margin-bottom: 42px;
}

.Logo {
	width: 280px;
	height: auto;
	filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
	animation: LogoFloat 6s ease-in-out infinite;
}

.Field {
	position: relative;
	margin-bottom: 18px;
}

.FieldIcon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(255, 255, 255, 0.42);
	font-size: 14px;
	pointer-events: none;
}

.Field input {
	width: 100%;
	height: 50px;
	padding: 0 22px 0 48px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.12);
	color: white;
	font-size: 14px;
	outline: none;
	transition:
		border-color 160ms ease,
		box-shadow 160ms ease,
		background 160ms ease;
}

.Field input::placeholder {
	color: rgba(255, 255, 255, 0.58);
}

.Field input:hover {
	border-color: rgba(255, 255, 255, 0.22);
}

.Field input:focus {
	border-color: rgba(255, 255, 255, 0.7);
	background: rgba(0, 0, 0, 0.18);
	box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08);
}

.PasswordField input {
	padding-right: 52px;
}

.TogglePassword {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(255, 255, 255, 0.48);
	font-size: 14px;
	cursor: pointer;
	transition: color 160ms ease;
}

.TogglePassword:hover {
	color: rgba(255, 255, 255, 0.85);
}

.FormMeta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: -6px;
	margin-bottom: 12px;
}

.ForgotPassword {
	display: inline-block;
	color: rgba(255, 255, 255, 0.55);
	font-size: 13px;
	text-decoration: none;
	transition: color 160ms ease;
	white-space: nowrap;
}

.ForgotPassword:hover {
	color: rgba(255, 255, 255, 0.9);
}

.Remember {
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 13px;
	user-select: none;
	white-space: nowrap;
}

.Remember input {
	width: 15px;
	height: 15px;
	accent-color: #ffffff;
	cursor: pointer;
}

.RememberLabel {
	line-height: 1;
}

.ErrorMessage {
	min-height: 22px;
	margin-top: 12px;
	color: #fca5a5;
	font-size: 13px;
	text-align: center;
	opacity: 0;
	transform: translateY(-4px);
	transition:
		opacity 180ms ease,
		transform 180ms ease;
}

.ErrorMessage:not(:empty) {
	opacity: 1;
	transform: translateY(0);
}

.LoginButton {
	width: 240px;
	height: 50px;
	margin: 30px auto 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.94);
	color: #071426;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.2px;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
	transition:
		background 160ms ease,
		transform 160ms ease,
		box-shadow 160ms ease,
		border-color 160ms ease;
}

.LoginButton:hover {
	background: white;
	transform: translateY(-1px);
	box-shadow: 0 12px 30px rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.28);
}

.LoginButton:active {
	transform: translateY(0);
}

.LoginButton:disabled {
	opacity: 0.72;
	cursor: not-allowed;
	transform: none;
}

.LoginButton:focus-visible {
	outline: none;
	box-shadow:
		0 0 0 4px rgba(255, 255, 255, 0.12),
		0 12px 30px rgba(255, 255, 255, 0.18);
}

.LoginButton i {
	margin-right: 8px;
}

@keyframes LogoFloat {
	0%, 100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-3px);
	}
}

@keyframes CardIn {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 680px) {
	.LanguageSelector {
		top: 18px;
		right: 18px;
	}

	.LanguageSelector select {
		font-size: 12px;
	}

	.Wrapper {
		padding: 18px;
	}

	.LoginCard {
		width: 100%;
		min-height: auto;
		padding: 42px 26px 38px;
	}

	.Logo {
		width: 240px;
	}

	.FormMeta {
		align-items: flex-start;
		flex-direction: column-reverse;
		gap: 10px;
		margin-top: -4px;
	}

	.ForgotPassword {
		font-size: 12px;
		align-self: flex-end;
	}

	.Remember {
		font-size: 12px;
	}

	.LoginButton {
		width: 100%;
	}
}
