:root {
	--cyan: #06B6D4;
	--cyan-light: #22D3EE;
	--bg: #020617;
	--panel-bg: #0F172A;
	--card-bg: rgba(15, 23, 42, 0.88);
	--white: #F8FAFC;
	--text: #F8FAFC;
	--text-secondary: #94A3B8;
	--border: rgba(148, 163, 184, 0.22);
	--input-bg: rgba(255, 255, 255, 0.05);
	--error: #EF4444;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body.auth-page {
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	background:
		radial-gradient(circle at 16% 18%, rgba(34, 211, 238, 0.16), transparent 30%),
		radial-gradient(circle at 82% 72%, rgba(56, 189, 248, 0.10), transparent 28%),
		#020617;
	color: var(--text);
	overflow: hidden;
}

.auth-page .container {
	display: flex;
	height: 100vh;
	width: 100vw;
}

.auth-page .left-panel {
	flex: 1;
	background: linear-gradient(135deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.88));
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 3rem;
	overflow: hidden;
	border-right: 1px solid rgba(148, 163, 184, 0.12);
}

.auth-page .left-panel::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
	pointer-events: none;
}

.auth-login .left-panel::before {
	background-size: 24px 24px;
}

.auth-register .left-panel::before,
.auth-forgot .left-panel::before {
	background-size: 40px 40px;
}

.auth-page .hero-text {
	font-weight: 800;
	background: linear-gradient(135deg, #F8FAFC 0%, #22D3EE 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-align: center;
	position: relative;
	z-index: 2;
}

.auth-login .hero-text {
	font-size: 1.8rem;
	line-height: 1.4;
	max-width: 480px;
}

.auth-register .hero-text,
.auth-forgot .hero-text {
	font-size: 2.4rem;
	line-height: 1.3;
	max-width: 500px;
}

.auth-page .right-panel {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(2, 6, 23, 0.84);
	padding: 2rem;
}

.auth-page .form-card {
	width: 100%;
	max-width: 440px;
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: 28px;
	box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(34, 211, 238, 0.06);
	padding: 2.5rem 2rem;
	position: relative;
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
}

.auth-page .auth-lang-switch {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	border: 1px solid rgba(34, 211, 238, 0.28);
	background: rgba(34, 211, 238, 0.08);
	color: var(--cyan-light);
	border-radius: 999px;
	padding: 0.35rem 0.7rem;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.auth-page .auth-lang-switch:hover {
	border-color: rgba(34, 211, 238, 0.5);
	background: rgba(34, 211, 238, 0.14);
}

.auth-page .form-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 0.3rem;
	padding-right: 5.5rem;
}

.auth-page .form-subtitle {
	font-size: 0.85rem;
	color: var(--text-secondary);
	margin-bottom: 1.8rem;
}

.auth-page .form-subtitle a {
	color: var(--cyan);
	text-decoration: none;
	font-weight: 600;
}

.auth-page .form-subtitle a:hover {
	text-decoration: underline;
}

.auth-page .google-btn {
	width: 100%;
	padding: 0.75rem 1rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	font-size: 0.95rem;
	font-weight: 500;
	color: #E2E8F0;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.auth-page .google-btn:hover {
	border-color: rgba(34, 211, 238, 0.5);
	box-shadow: 0 8px 24px rgba(34, 211, 238, 0.08);
	transform: translateY(-1px);
}

.auth-page .google-btn:active {
	transform: translateY(0);
}

.auth-page .google-native-btn {
	width: 100%;
	min-height: 44px;
	display: flex;
	justify-content: center;
}

.auth-page .google-native-btn > div {
	width: 100% !important;
}

.auth-page .divider {
	display: flex;
	align-items: center;
	margin: 1.5rem 0;
}

.auth-page .divider-line {
	flex: 1;
	height: 1px;
	background: rgba(148, 163, 184, 0.18);
}

.auth-page .divider-text {
	padding: 0 1rem;
	font-size: 0.75rem;
	color: #94A3B8;
}

.auth-page .input-group {
	margin-bottom: 1.2rem;
	position: relative;
}

.auth-page .input-label {
	font-size: 0.8rem;
	font-weight: 500;
	color: #CBD5E1;
	margin-bottom: 0.3rem;
}

.auth-login .input-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.auth-register .input-label,
.auth-forgot .input-label {
	display: block;
}

.auth-page .forgot-link {
	font-size: 0.75rem;
	color: #94A3B8;
	text-decoration: none;
	font-weight: 400;
}

.auth-page .forgot-link:hover {
	color: var(--cyan);
}

.auth-page .input-field {
	width: 100%;
	padding: 0.7rem 0.8rem;
	font-size: 0.9rem;
	background: var(--input-bg);
	border: none;
	border-bottom: 2px solid rgba(148, 163, 184, 0.28);
	border-radius: 4px 4px 0 0;
	transition: all 0.3s ease;
	outline: none;
	color: #F8FAFC;
}

.auth-page .input-field:focus {
	border-bottom-color: var(--cyan);
	box-shadow: 0 8px 24px rgba(6, 182, 212, 0.08);
	background: rgba(255, 255, 255, 0.08);
}

.auth-page .input-field::placeholder {
	color: #64748B;
}

.auth-page .input-field.error {
	border-bottom-color: #EF4444;
	box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

.auth-page .auth-password-field {
	position: relative;
}

.auth-page .auth-password-field .input-field {
	padding-right: 3rem;
}

.auth-page .auth-password-toggle {
	position: absolute;
	top: 50%;
	right: 0.6rem;
	width: 2rem;
	height: 2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: #94A3B8;
	cursor: pointer;
	transform: translateY(-50%);
	transition: color 0.2s ease, background-color 0.2s ease;
}

.auth-page .auth-password-toggle:hover,
.auth-page .auth-password-toggle:focus-visible {
	background: rgba(34, 211, 238, 0.1);
	color: #22D3EE;
	outline: none;
}

.auth-page .auth-password-toggle svg {
	width: 1.15rem;
	height: 1.15rem;
	display: block;
}

.auth-page .auth-password-toggle .auth-password-eye-closed {
	display: none;
}

.auth-page .auth-password-toggle.is-visible .auth-password-eye-open {
	display: none;
}

.auth-page .auth-password-toggle.is-visible .auth-password-eye-closed {
	display: block;
}

.auth-page .error-message {
	font-size: 0.7rem;
	color: #EF4444;
	margin-top: 0.3rem;
	display: none;
}

.auth-page .input-field.error + .error-message {
	display: block;
}

.auth-page .error-message.is-visible {
	display: block;
}

.auth-page .checkbox-group {
	display: flex;
	gap: 0.5rem;
	margin: 1.2rem 0;
}

.auth-login .checkbox-group {
	align-items: center;
}

.auth-register .checkbox-group {
	align-items: flex-start;
	margin: 0.8rem 0;
}

.auth-page .checkbox-group input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--cyan);
	cursor: pointer;
}

.auth-register .checkbox-group input[type="checkbox"] {
	margin-top: 0.1rem;
}

.auth-page .checkbox-label {
	font-size: 0.8rem;
	color: var(--text-secondary);
}

.auth-register .checkbox-label {
	line-height: 1.4;
}

.auth-page .checkbox-label a {
	color: var(--cyan);
	text-decoration: none;
	font-weight: 500;
}

.auth-page .checkbox-label a:hover {
	text-decoration: underline;
}

.auth-page .submit-btn {
	width: 100%;
	padding: 0.9rem 1rem;
	background: #22D3EE;
	color: #020617;
	border: none;
	border-radius: 12px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	letter-spacing: 0.3px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	box-shadow: 0 12px 30px rgba(34, 211, 238, 0.24);
}

.auth-page .submit-btn:hover {
	background: #67E8F9;
	box-shadow: 0 16px 36px rgba(34, 211, 238, 0.3);
	transform: translateY(-1px);
}

.auth-page .submit-btn:active {
	transform: translateY(0);
}

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

.auth-page .loading-spinner {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(2, 6, 23, 0.22);
	border-top-color: #020617;
	border-radius: 50%;
	animation: auth-spin 0.8s linear infinite;
}

.auth-page .loading-spinner-dark {
	border-color: rgba(0, 0, 0, 0.2);
	border-top-color: #0F172A;
}

.auth-page .is-hidden {
	display: none;
}

.auth-page.auth-modal-open {
	overflow: hidden;
}

.auth-message-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(2, 6, 23, 0.72);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.auth-message-modal.is-hidden {
	display: none;
}

.auth-message-panel {
	width: min(420px, 100%);
	background: #0F172A;
	border: 1px solid rgba(34, 211, 238, 0.28);
	border-radius: 16px;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58), 0 0 42px rgba(34, 211, 238, 0.1);
	padding: 24px;
	color: #F8FAFC;
}

.auth-message-title {
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: 12px;
	color: #F8FAFC;
}

.auth-message-body {
	min-height: 24px;
	font-size: 0.92rem;
	line-height: 1.6;
	color: #CBD5E1;
	word-break: break-word;
}

.auth-message-loading {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
}

.auth-message-loading .loading-spinner {
	flex: 0 0 auto;
	border-color: rgba(34, 211, 238, 0.22);
	border-top-color: #22D3EE;
}

.auth-message-countdown {
	margin-bottom: 0.55rem;
	color: #22D3EE;
	font-size: 0.95rem;
	font-weight: 800;
}

.auth-message-ok {
	width: 100%;
	margin-top: 22px;
	padding: 0.75rem 1rem;
	border: none;
	border-radius: 10px;
	background: #22D3EE;
	color: #020617;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(34, 211, 238, 0.24);
	transition: all 0.2s ease;
}

.auth-message-ok:hover {
	background: #67E8F9;
	transform: translateY(-1px);
}

.auth-message-ok:focus {
	outline: 2px solid rgba(103, 232, 249, 0.75);
	outline-offset: 3px;
}

@keyframes auth-shake {
	0%,
	100% {
		transform: translateX(0);
	}

	25% {
		transform: translateX(-4px);
	}

	75% {
		transform: translateX(4px);
	}
}

.auth-page .shake {
	animation: auth-shake 0.4s ease-in-out;
}

.auth-login .radar-container {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 350px;
	height: 350px;
	pointer-events: none;
}

.auth-login .radar-circle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	border: 1px solid rgba(34, 211, 238, 0.12);
}

.auth-login .radar-circle:nth-child(1) {
	width: 100%;
	height: 100%;
}

.auth-login .radar-circle:nth-child(2) {
	width: 70%;
	height: 70%;
}

.auth-login .radar-circle:nth-child(3) {
	width: 40%;
	height: 40%;
}

.auth-login .radar-scan {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 50%;
	height: 50%;
	background: conic-gradient(from 0deg, rgba(34, 211, 238, 0.15) 0deg, rgba(34, 211, 238, 0.03) 60deg, transparent 60deg);
	border-radius: 50%;
	transform-origin: 0 0;
	animation: radar-spin 4s linear infinite;
}

@keyframes radar-spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.auth-login .radar-dot {
	position: absolute;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22D3EE;
	box-shadow: 0 0 10px #22D3EE;
}

.auth-login .radar-dot:nth-child(4) {
	top: 25%;
	left: 70%;
}

.auth-login .radar-dot:nth-child(5) {
	top: 70%;
	left: 25%;
}

.auth-login .radar-dot:nth-child(6) {
	top: 15%;
	left: 35%;
}

.auth-login .radar-dot:nth-child(7) {
	top: 80%;
	left: 65%;
}

.auth-login .radar-dot:nth-child(8) {
	top: 45%;
	left: 80%;
}

.auth-login .security-stats {
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
	margin-bottom: 2.5rem;
	position: relative;
	z-index: 2;
	font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.auth-login .security-item {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	font-size: 0.85rem;
	color: #CBD5E1;
}

.auth-login .security-badge {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 2px;
	background: #22D3EE;
	margin-right: 0.5rem;
	box-shadow: 0 0 6px rgba(34, 211, 238, 0.5);
}

.auth-login .security-value {
	font-weight: 700;
	color: #F8FAFC;
}

.auth-register .topology-svg,
.auth-forgot .topology-svg {
	position: absolute;
	width: 70%;
	height: 70%;
	opacity: 0.16;
	pointer-events: none;
}

.auth-register .live-stats,
.auth-forgot .live-stats {
	display: flex;
	gap: 2rem;
	margin-bottom: 2.5rem;
	position: relative;
	z-index: 2;
}

.auth-register .stat-item,
.auth-forgot .stat-item {
	text-align: center;
}

.auth-register .stat-value,
.auth-forgot .stat-value {
	font-size: 1.8rem;
	font-weight: 700;
	color: #F8FAFC;
	letter-spacing: -0.5px;
}

.auth-register .stat-label,
.auth-forgot .stat-label {
	font-size: 0.75rem;
	color: #94A3B8;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	margin-top: 0.3rem;
}

.auth-register .stat-dot,
.auth-forgot .stat-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 4px;
	background: #22D3EE;
	animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5);
	}

	50% {
		box-shadow: 0 0 0 8px rgba(34, 211, 238, 0);
	}
}

.auth-register .quantum-ring,
.auth-forgot .quantum-ring {
	position: absolute;
	bottom: 10%;
	left: 10%;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	border: 2px solid rgba(34, 211, 238, 0.25);
	animation: spin-slow 15s linear infinite;
	pointer-events: none;
}

.auth-register .quantum-ring::after,
.auth-forgot .quantum-ring::after {
	content: '';
	position: absolute;
	top: -4px;
	left: 50%;
	width: 12px;
	height: 12px;
	background: #22D3EE;
	border-radius: 50%;
	transform: translateX(-50%);
	box-shadow: 0 0 20px #22D3EE;
}

@keyframes spin-slow {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.auth-register .captcha-row,
.auth-forgot .captcha-row {
	display: flex;
	gap: 0.8rem;
}

.auth-register .captcha-row .input-field,
.auth-forgot .captcha-row .input-field {
	flex: 1;
}

.auth-register .captcha-btn,
.auth-forgot .captcha-btn {
	white-space: nowrap;
	padding: 0.7rem 1.2rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border);
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.8rem;
	color: #CBD5E1;
	transition: all 0.2s;
	font-weight: 500;
}

.auth-register .captcha-btn:hover,
.auth-forgot .captcha-btn:hover {
	border-color: var(--cyan);
	color: var(--cyan);
	background: rgba(34, 211, 238, 0.08);
}

.auth-register .captcha-btn:disabled,
.auth-forgot .captcha-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

@media (max-width: 768px) {
	.auth-page .container {
		flex-direction: column;
		height: auto;
		overflow-y: auto;
	}

	.auth-page .left-panel {
		padding: 2rem 1.5rem;
	}

	.auth-login .left-panel {
		min-height: 45vh;
	}

	.auth-register .left-panel,
	.auth-forgot .left-panel {
		min-height: 50vh;
	}

	.auth-page .right-panel {
		padding: 1.5rem;
	}

	.auth-login .hero-text {
		font-size: 1.4rem;
	}

	.auth-register .hero-text,
	.auth-forgot .hero-text {
		font-size: 1.8rem;
	}

	.auth-login .radar-container {
		width: 250px;
		height: 250px;
	}
}
