:root {
	/* Colors */
	--primary-light: #e0f2ff;
	--primary: #2563eb;
	--secondary: #1e40af;
	--dark: #1e293b;
	--light: #ffffff;
	--gray: #94a3b8;

	/* Status Colors */
	--success: #10b981;
	--success-hover: #059669;
	--danger: #ef4444;
	--danger-hover: #dc2626;
	--warning: #f59e0b;
	--warning-hover: #d97706;

	/* Gradients */
	--gradient-start: #4361ee;
	--gradient-end: #3a0ca3;

	/* Text Colors */
	--text-primary: #2563eb;
	--text-secondary: #1e40af;
	--text-success: #10b981;
	--text-success-hover: #059669;
	--text-danger: #ef4444;
	--text-danger-hover: #dc2626;
	--text-warning: #f59e0b;
	--text-warning-hover: #d97706;

	/* Layout */
	--grid-gap: 24px;
	--border-radius: 12px;
	--border-primary: 1px solid var(--primary);
	--border-primary-hover: 1px solid var(--secondary);
	--box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

	/* Fonts */
	--font-heading: "IBM Plex Mono", monospace;
	--font-body: "IBM Plex Mono", monospace;
	--font-code: "IBM Plex Mono", monospace;
	--font-ui: "IBM Plex Mono", monospace;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: var(--font-body);
}

body {
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	background: linear-gradient(-45deg, #fdfbfb, #e0fbfe, #f2e3e3, #e2e6fe);
	font-family: var(--font-body);
	color: var(--dark);
}

/* ===== BACKGROUND TEXT ANIMATION ===== */
.background-text {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 580px;
	font-weight: 900;
	font-family: var(--font-heading);
	text-transform: uppercase;
	color: transparent;
	-webkit-text-stroke: 2px rgba(0, 0, 0, 0.25);
	user-select: none;
	pointer-events: none;
	letter-spacing: 10px;
	z-index: -1;
	opacity: 0.2;
	animation: subtleFloat 10s ease-in-out infinite;
}

@keyframes subtleFloat {
	0%,
	100% {
		transform: translate(-50%, -50%) scale(1);
	}
	50% {
		transform: translate(-50%, -52%) scale(1.02);
	}
}

/* ===== AUTH WRAPPERS ===== */
.login-wrapper,
.register-wrapper {
	width: 100%;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(-45deg, #fdfbfb, #e0fbfe, #f2e3e3, #e2e6fe);
}

/* ===== AUTH CONTAINERS ===== */
.login-container,
.register-container {
	width: 100%;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.65);
	border-radius: 20px;
	backdrop-filter: blur(25px) saturate(180%);
	-webkit-backdrop-filter: blur(25px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, 0.25);
	margin: 20px;
	transition: all 0.4s ease;
}

.login-container:hover,
.register-container:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ===== INFO PANELS ===== */
.login-info,
.register-info {
	backdrop-filter: blur(12px);
	text-shadow: 0 1px 3px rgb(255, 255, 255);
	background: linear-gradient(-45deg, #fdfbfb, #e0fbfe, #f2e3e3, #e2e6fe);
	border-right: 1px solid rgba(255, 255, 255, 0.25);
}

/* ===== CONTENT AREAS ===== */
.login-content,
.register-content {
	background: rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(25px);
	border-left: 1px solid rgba(255, 255, 255, 0.25);
}

/* ===== FORM ELEMENTS ===== */
.input-field {
	width: 100%;
	padding: 14px 15px 14px 45px;
	border-radius: 14px;
	border: 1.5px solid rgba(255, 255, 255, 0.45);
	background: rgba(255, 255, 255, 0.25);
	box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.25),
		inset 0 0 8px rgba(255, 255, 255, 0.3), 0 4px 20px rgba(0, 0, 0, 0.05);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	color: #2a2a3a;
	transition: all 0.3s ease;
}

.input-field::placeholder {
	color: rgba(80, 80, 100, 0.6);
}

.input-field:focus {
	border-color: rgba(76, 110, 245, 0.6);
	background: rgba(255, 255, 255, 0.35);
	box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.25),
		0 0 20px rgba(76, 110, 245, 0.2);
	outline: none;
}

/* ===== ICONS ===== */
.input-icon,
.toggle-password {
	color: rgba(0, 0, 0, 0.35);
	transition: color 0.3s ease;
}

.input-field:focus + .input-icon {
	color: rgba(76, 110, 245, 0.9);
}

/* ===== BUTTONS ===== */
.login-btn,
.register-btn {
	width: 100%;
	padding: 14px;
	border: none;
	border-radius: 14px;
	background: rgba(76, 110, 245, 0.8);
	backdrop-filter: blur(15px) saturate(180%);
	-webkit-backdrop-filter: blur(15px) saturate(180%);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3),
		0 4px 25px rgba(76, 110, 245, 0.25);
	transition: all 0.4s ease;
	position: relative;
	overflow: hidden;
}

.login-btn::before,
.register-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.4),
		rgba(255, 255, 255, 0.05)
	);
	opacity: 0.5;
	border-radius: inherit;
	z-index: 1;
}

.login-btn::after,
.register-btn::after {
	content: "";
	position: absolute;
	top: 0;
	left: -75%;
	width: 50%;
	height: 100%;
	background: linear-gradient(
		120deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.6) 50%,
		rgba(255, 255, 255, 0) 100%
	);
	transform: skewX(-25deg);
	transition: all 0.7s ease;
	opacity: 0;
	z-index: 2;
}

.login-btn:hover::after,
.register-btn:hover::after {
	left: 125%;
	opacity: 1;
}

.login-btn:hover,
.register-btn:hover {
	background: rgba(76, 110, 245, 0.95);
	box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.4),
		0 10px 30px rgba(76, 110, 245, 0.35);
	transform: translateY(-2px);
}

/* ===== FOOTER LINKS ===== */
.login-footer a,
.register-footer a {
	color: rgba(43, 67, 162, 0.9);
	font-weight: 600;
	text-decoration: none;
	opacity: 0.9;
	transition: opacity 0.2s ease;
}

.login-footer a:hover,
.register-footer a:hover {
	opacity: 1;
}

/* ===== PASSWORD STRENGTH ===== */
.password-strength {
	height: 6px;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 10px;
	margin-top: 8px;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(8px);
}

.strength-bar {
	height: 100%;
	width: 0%;
	border-radius: 10px;
	transition: width 0.4s ease, background 0.4s ease;
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.4),
		rgba(76, 110, 245, 0.8)
	);
	box-shadow: 0 0 8px rgba(76, 110, 245, 0.4);
}

/* ===== PASSWORD HINT ===== */
.password-hint {
	font-size: 13px;
	color: rgba(237, 62, 62, 0.8);
	margin-top: 6px;
	display: none;
	font-weight: 400;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	backdrop-filter: blur(5px);
}

.modal-overlay.show {
	opacity: 1;
	visibility: visible;
	display: flex;
}

.modal-container {
	background: white;
	border-radius: 16px;
	width: 90%;
	max-width: 450px;
	box-shadow: var(--box-shadow);
	transform: translateY(30px) scale(0.95);
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	overflow: hidden;
	position: relative;
}

.modal-overlay.show .modal-container {
	transform: translateY(0) scale(1);
}

.modal-header {
	padding: 25px 25px 15px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: linear-gradient(
		135deg,
		var(--gradient-start) 0%,
		var(--gradient-end) 100%
	);
	color: white;
}

.modal-header h3 {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 20px;
	font-weight: 600;
}

.modal-close {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: white;
	font-size: 18px;
	transition: var(--transition);
}

.modal-close:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: rotate(90deg);
}

.modal-body {
	padding: 25px;
	line-height: 1.6;
	color: var(--dark);
}

.modal-footer {
	padding: 20px 25px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	background: #f9fafc;
}

/* ===== CUSTOM MODAL ===== */
.custom-modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	align-items: center;
	justify-content: center;
}

.custom-modal-content {
	background: white;
	padding: 25px;
	border-radius: 8px;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	position: relative;
}

.custom-modal-content.success {
	border-top: 4px solid #4caf50;
}

.custom-modal-content.error {
	border-top: 4px solid #f44336;
}

.custom-modal-close {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 24px;
	font-weight: bold;
	cursor: pointer;
	color: #aaa;
}

.custom-modal-close:hover {
	color: #333;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes pulse {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
	100% {
		transform: scale(1);
	}
}

.pulse {
	animation: pulse 2s infinite;
}

/* ===== DARK MODE ===== */
.dark-mode .login-content,
.dark-mode .register-content,
.dark-mode .captcha-container,
.dark-mode .login-btn,
.dark-mode .register-btn {
	background: var(--dark) !important;
	border: 1px solid #334155;
	color: white;
}

.dark-mode .input-group label {
	color: white;
}

.dark-mode .input-field {
	background: #1e293b;
	border-color: #334155;
	color: white;
}

.dark-mode .input-field:focus {
	background: #1e293b;
}

.dark-mode .login-footer {
	border-color: #334155;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
	.login-container,
	.register-container {
		flex-direction: column;
		max-width: 400px;
	}
}

@media (max-width: 576px) {
	.login-container,
	.register-container {
		border-radius: 8px;
	}

	.login-header,
	.register-header {
		padding: 25px 20px;
	}

	.login-body,
	.register-body {
		padding: 25px 20px;
	}

	.login-logo,
	.register-logo {
		width: 50px;
		height: 50px;
	}
}
