* {
	box-sizing: border-box;
}

:root {
	--login-bg: #f5f7f8;
	--login-surface: #ffffff;
	--login-soft: #eef5f4;
	--login-text: #17202a;
	--login-muted: #60717d;
	--login-line: #dbe5e9;
	--login-primary: #0f766e;
	--login-primary-dark: #0b5d57;
	--login-danger: #b42318;
	--login-shadow: 0 22px 55px rgba(20, 35, 45, 0.12);
}

html {
	min-height: 100%;
}

body.login-page {
	min-height: 100vh;
	margin: 0;
	display: flex;
	flex-direction: column;
	background:
		radial-gradient(circle at 8% 18%, rgba(15, 118, 110, 0.09), transparent 26%),
		radial-gradient(circle at 92% 78%, rgba(37, 99, 235, 0.06), transparent 25%),
		var(--login-bg);
	color: var(--login-text);
	font-family: "Segoe UI", Arial, sans-serif;
	line-height: 1.5;
}

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

a:hover {
	color: var(--login-primary-dark);
}

.login-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-height: 65px;
	padding: 12px 28px;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid rgba(219, 229, 233, 0.92);
	backdrop-filter: blur(12px);
}

.login-brand,
.login-nav,
.language-switch {
	display: inline-flex;
	align-items: center;
}

.login-brand {
	gap: 10px;
	color: var(--login-text);
	font-weight: 800;
	white-space: nowrap;
}

.login-brand img {
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.login-nav {
	gap: 18px;
	color: var(--login-muted);
	font-size: 14px;
}

.login-nav a {
	color: inherit;
	font-weight: 700;
}

.login-nav a:hover {
	color: var(--login-primary);
}

.language-switch {
	gap: 7px;
	min-height: 40px;
	padding: 9px 12px;
	border: 1px solid var(--login-line);
	border-radius: 8px;
	background: #fff;
	color: var(--login-text);
	font-size: 13px;
	font-weight: 800;
}

.language-switch:hover {
	border-color: rgba(15, 118, 110, 0.42);
	background: var(--login-soft);
}

.login-main {
	flex: 1;
	width: 100%;
	display: flex;
	align-items: center;
	padding: 34px 20px;
}

.auth-shell {
	width: min(1120px, 100%);
	min-height: 650px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
	overflow: hidden;
	background: var(--login-surface);
	border: 1px solid var(--login-line);
	border-radius: 14px;
	box-shadow: var(--login-shadow);
}

.login-showcase {
	position: relative;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	padding: 58px 52px 42px;
	background: #102327;
	color: #fff;
}

.login-showcase > img,
.showcase-overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.login-showcase > img {
	object-fit: cover;
}

.showcase-overlay {
	background:
		linear-gradient(145deg, rgba(6, 28, 30, 0.92), rgba(11, 93, 87, 0.68)),
		linear-gradient(to top, rgba(6, 22, 27, 0.82), transparent 55%);
}

.showcase-content,
.showcase-register {
	position: relative;
	z-index: 1;
}

.showcase-content {
	max-width: 510px;
}

.showcase-eyebrow,
.login-eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	color: #a7eee4;
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.showcase-content h2 {
	margin: 0 0 18px;
	font-size: clamp(36px, 4vw, 54px);
	line-height: 1.03;
}

.showcase-content > p {
	max-width: 500px;
	margin: 0;
	color: rgba(255, 255, 255, 0.86);
	font-size: 17px;
}

.showcase-benefits {
	display: grid;
	gap: 12px;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
}

.showcase-benefits li {
	display: flex;
	align-items: center;
	gap: 11px;
	color: rgba(255, 255, 255, 0.92);
	font-size: 14px;
	font-weight: 700;
}

.showcase-benefits i {
	width: 26px;
	height: 26px;
	display: inline-flex;
	flex: 0 0 26px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(167, 238, 228, 0.16);
	color: #a7eee4;
	font-size: 11px;
}

.showcase-register {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	padding-top: 26px;
	border-top: 1px solid rgba(255, 255, 255, 0.23);
}

.showcase-register div {
	min-width: 0;
}

.showcase-register strong,
.showcase-register span {
	display: block;
}

.showcase-register strong {
	margin-bottom: 5px;
	font-size: 16px;
}

.showcase-register span {
	max-width: 340px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 13px;
}

.showcase-register a {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 15px;
	border: 1px solid rgba(255, 255, 255, 0.48);
	border-radius: 8px;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
}

.showcase-register a:hover {
	background: #fff;
	color: var(--login-primary-dark);
}

.login-panel {
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 54px 48px;
}

.login-box {
	width: min(420px, 100%);
	animation: fade-slide-up 0.45s ease;
}

@keyframes fade-slide-up {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.login-eyebrow {
	margin-bottom: 9px;
	color: var(--login-primary);
}

.login-box h1 {
	margin: 0;
	font-size: clamp(31px, 3.4vw, 42px);
	line-height: 1.08;
}

.login-intro {
	margin: 12px 0 14px;
	color: var(--login-muted);
	font-size: 15px;
}

#loginForm {
	display: grid;
	gap: 19px;
}

.form-field {
	display: grid;
	gap: 8px;
}

.form-field label,
.label-row label {
	color: var(--login-text);
	font-size: 13px;
	font-weight: 800;
}

.label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.label-row a {
	font-size: 12px;
	font-weight: 750;
}

.input-container {
	position: relative;
}

.field-icon {
	position: absolute;
	top: 50%;
	left: 14px;
	z-index: 1;
	transform: translateY(-50%);
	color: #7b8c96;
	font-size: 14px;
	pointer-events: none;
}

.login-box input[type="text"],
.login-box input[type="password"] {
	width: 100%;
	height: 50px;
	padding: 0 46px 0 42px;
	border: 1px solid #cfdbe0;
	border-radius: 8px;
	outline: none;
	background: #fbfcfd;
	color: var(--login-text);
	font-family: inherit;
	font-size: 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-box input[type="text"]:focus,
.login-box input[type="password"]:focus {
	border-color: var(--login-primary);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13);
}

.login-box input::placeholder {
	color: #92a0a8;
}

.toggle-password {
	position: absolute;
	top: 50%;
	right: 8px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transform: translateY(-50%);
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: #71818b;
	cursor: pointer;
}

.toggle-password:hover,
.toggle-password:focus-visible {
	background: var(--login-soft);
	color: var(--login-primary);
	outline: none;
}

.checkbox {
	display: flex;
	align-items: center;
	gap: 9px;
	color: var(--login-muted);
	font-size: 13px;
}

.checkbox input {
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: var(--login-primary);
	cursor: pointer;
}

.checkbox label {
	cursor: pointer;
	user-select: none;
}

#loginBtn {
	width: 100%;
	min-height: 50px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 18px;
	border: 0;
	border-radius: 8px;
	background: var(--login-primary);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 850;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#loginBtn:hover:not(:disabled) {
	transform: translateY(-1px);
	background: var(--login-primary-dark);
	box-shadow: 0 10px 22px rgba(15, 118, 110, 0.2);
}

#loginBtn:focus-visible {
	outline: 3px solid rgba(15, 118, 110, 0.22);
	outline-offset: 2px;
}

#loginBtn:disabled {
	background: #93a7a4;
	cursor: not-allowed;
}

.loader {
	width: 16px;
	height: 16px;
	display: inline-block;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	vertical-align: middle;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.captcha-container {
	width: 100%;
	max-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	opacity: 0;
	transform: scale(0.96);
	transition: max-height 0.45s ease, opacity 0.35s ease, transform 0.35s ease;
}

.captcha-container.show {
	max-height: 150px;
	opacity: 1;
	transform: scale(1);
}

.captcha-container iframe {
	display: block;
	margin: 0 !important;
}

.g-recaptcha {
	transform-origin: center center;
}

.mobile-register {
	display: none;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 24px;
	font-size: 13px;
}

.mobile-register span {
	color: var(--login-muted);
}

.mobile-register a {
	font-weight: 800;
}

.login-assurance {
	display: grid;
	gap: 9px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--login-line);
	color: var(--login-muted);
	font-size: 12px;
	text-align: center;
}

.login-assurance > span {
	display: block;
}

.login-assurance i {
	margin-right: 6px;
	color: var(--login-primary);
}

.login-assurance a {
	font-weight: 750;
}

.login-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 22px 28px;
	border-top: 1px solid var(--login-line);
	background: #fff;
	color: var(--login-muted);
	font-size: 12px;
}

.login-footer div {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
}

.login-footer a {
	color: var(--login-muted);
	font-weight: 700;
}

.login-footer a:hover {
	color: var(--login-primary);
}

#notifications-container {
	position: fixed;
	top: 82px;
	right: 20px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
}

.notification {
	width: fit-content;
	max-width: 330px;
	margin-bottom: 12px;
	padding: 14px 18px 16px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
	word-break: break-word;
	backdrop-filter: blur(8px);
	animation: shake-fade-in 0.7s ease forwards;
}

.notification .notif-message {
	display: block;
	margin-top: 8px;
}

.notification .notif-timer {
	width: 100%;
	height: 4px;
	margin-top: 8px;
	border-radius: 2px;
	transform-origin: left;
}

.notification .close-btn {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 18px;
	cursor: pointer;
	opacity: 0.72;
}

.notification .close-btn:hover {
	background: rgba(255, 255, 255, 0.28);
	opacity: 1;
}

@keyframes shake-fade-in {
	0% {
		opacity: 0;
		transform: translateX(12px);
	}
	60% {
		opacity: 1;
		transform: translateX(-3px);
	}
	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes fadeShrinkOut {
	from {
		opacity: 1;
		max-height: 200px;
	}
	to {
		opacity: 0;
		max-height: 0;
		margin: 0;
		padding-top: 0;
		padding-bottom: 0;
		transform: translateY(-12px);
	}
}

@keyframes progress {
	from {
		transform: scaleX(1);
	}
	to {
		transform: scaleX(0);
	}
}

.modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(10, 24, 29, 0.58);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
	backdrop-filter: blur(5px);
}

.modal-overlay.show {
	opacity: 1;
	pointer-events: auto;
}

.modal-content {
	width: min(420px, 100%);
	padding: 28px;
	border: 1px solid var(--login-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--login-shadow);
	text-align: center;
	opacity: 0;
	transform: translateY(10px) scale(0.98);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.modal-overlay.show .modal-content {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.modal-content h2 {
	margin: 0 0 10px;
	color: var(--login-text);
}

.modal-content p {
	color: var(--login-muted);
}

.modal-content button {
	min-height: 42px;
	margin: 10px 4px 0;
	padding: 10px 18px;
	border: 0;
	border-radius: 8px;
	font-family: inherit;
	font-weight: 800;
	cursor: pointer;
}

.modal-content #resendEmailBtn {
	background: var(--login-primary);
	color: #fff;
}

.modal-content #resendEmailBtn:hover {
	background: var(--login-primary-dark);
}

.modal-content #closeModalBtn,
.modal-content #closeLoginAlertBtn {
	background: #e8eef0;
	color: var(--login-text);
}

@media (max-width: 980px) {
	.auth-shell {
		grid-template-columns: minmax(0, 0.88fr) minmax(400px, 1.12fr);
	}

	.login-showcase {
		padding: 48px 36px 36px;
	}

	.showcase-register {
		align-items: flex-start;
		flex-direction: column;
	}

	.login-panel {
		padding: 48px 36px;
	}
}

@media (max-width: 760px) {
	.login-header {
		padding: 11px 18px;
	}

	.login-nav {
		display: none;
	}

	.login-main {
		align-items: flex-start;
		padding: 20px;
	}

	.auth-shell {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.login-showcase {
		min-height: 280px;
		padding: 36px 30px;
	}

	.showcase-content h2 {
		max-width: 540px;
		font-size: clamp(31px, 8vw, 44px);
	}

	.showcase-content > p {
		font-size: 15px;
	}

	.showcase-benefits,
	.showcase-register {
		display: none;
	}

	.login-panel {
		padding: 40px 30px;
	}

	.mobile-register {
		display: flex;
	}

	.login-footer {
		flex-direction: column;
		text-align: center;
	}

	.login-footer div {
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.login-brand span {
		font-size: 14px;
	}

	.login-brand img {
		width: 36px;
		height: 36px;
	}

	.login-main {
		padding: 0;
	}

	.auth-shell {
		border-right: 0;
		border-left: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.login-showcase {
		min-height: 230px;
		padding: 30px 20px;
	}

	.showcase-eyebrow {
		margin-bottom: 8px;
	}

	.showcase-content h2 {
		margin-bottom: 12px;
		font-size: 31px;
	}

	.login-panel {
		padding: 34px 20px 40px;
	}

	.login-box h1 {
		font-size: 31px;
	}

	.login-intro {
		margin-bottom: 26px;
	}

	#notifications-container {
		top: 72px;
		right: 12px;
		left: 12px;
	}

	.notification {
		width: 100%;
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
