@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
	--primary-color: #00c3ff;
	--primary-glow: #33d1ff;
	--background: #0b0d11;
	--card-bg: rgba(13, 17, 26, 0.7);
	--card-border: rgba(30, 41, 59, 0.5);
	--text-main: #ffffff;
	--text-body: #94a3b8;
}

* {
	box-sizing: border-box;
}

body {
	background: var(--background);
	background-image:
		radial-gradient(circle at 15% 50%, rgba(0, 195, 255, 0.08), transparent 25%),
		radial-gradient(circle at 85% 30%, rgba(0, 119, 204, 0.08), transparent 25%);
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	font-family: 'Rajdhani', sans-serif;
	height: 100vh;
	margin: 0;
	color: var(--text-body);
}

h1 {
	font-weight: 700;
	margin: 0;
	font-family: 'Orbitron', sans-serif;
	color: var(--text-main);
	letter-spacing: 1px;
}

h2 {
	text-align: center;
}

p {
	font-size: 14px;
	font-weight: 100;
	line-height: 20px;
	letter-spacing: 0.5px;
	margin: 20px 0 30px;
}

span {
	font-size: 12px;
}

a {
	color: var(--primary-color);
	font-size: 14px;
	text-decoration: none;
	margin: 15px 0;
	transition: all 0.3s;
}

a:hover {
	text-shadow: 0 0 5px var(--primary-color);
}

button {
	border-radius: 4px;
	border: 1px solid var(--primary-color);
	background-color: transparent;
	color: var(--primary-color);
	font-size: 12px;
	font-weight: bold;
	padding: 12px 45px;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: all 0.3s ease-in;
	cursor: pointer;
	font-family: 'Orbitron', sans-serif;
	box-shadow: 0 0 10px rgba(0, 195, 255, 0.2);
}

button:hover {
	background-color: var(--primary-color);
	color: #000;
	box-shadow: 0 0 20px var(--primary-color);
}

button:active {
	transform: scale(0.95);
}

button:focus {
	outline: none;
}

button.ghost {
	background-color: transparent;
	border-color: #FFFFFF;
	color: #FFFFFF;
	box-shadow: none;
}

button.ghost:hover {
	background-color: #FFFFFF;
	color: #000;
	box-shadow: 0 0 10px #FFFFFF;
}

form {
	background-color: var(--card-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 0 50px;
	height: 100%;
	text-align: center;
	backdrop-filter: blur(10px);
}

input {
	background-color: rgba(11, 13, 17, 0.6);
	border: 1px solid var(--card-border);
	padding: 12px 15px;
	margin: 8px 0;
	width: 100%;
	color: var(--text-main);
	border-radius: 4px;
	font-family: 'Rajdhani', sans-serif;
	transition: all 0.3s;
}

input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 10px rgba(0, 195, 255, 0.2);
}

.container {
	background-color: var(--card-bg);
	border-radius: 10px;
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25),
		0 10px 10px rgba(0, 0, 0, 0.22);
	position: relative;
	overflow: hidden;
	width: 768px;
	max-width: 100%;
	min-height: 520px;
	border: 1px solid var(--card-border);
}

.form-container {
	position: absolute;
	top: 0;
	height: 100%;
	transition: all 0.6s ease-in-out;
}

.sign-in-container {
	left: 0;
	width: 50%;
	z-index: 2;
}

.container.right-panel-active .sign-in-container {
	transform: translateX(100%);
}

.sign-up-container {
	left: 0;
	width: 50%;
	opacity: 0;
	z-index: 1;
}

.container.right-panel-active .sign-up-container {
	transform: translateX(100%);
	opacity: 1;
	z-index: 5;
	animation: show 0.6s;
}

@keyframes show {

	0%,
	49.99% {
		opacity: 0;
		z-index: 1;
	}

	50%,
	100% {
		opacity: 1;
		z-index: 5;
	}
}

.overlay-container {
	position: absolute;
	top: 0;
	left: 50%;
	width: 50%;
	height: 100%;
	overflow: hidden;
	transition: transform 0.6s ease-in-out;
	z-index: 100;
}

.container.right-panel-active .overlay-container {
	transform: translateX(-100%);
}

.overlay {
	background: linear-gradient(135deg, #00c3ff 0%, #0077cc 100%);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: 0 0;
	color: #FFFFFF;
	position: relative;
	left: -100%;
	height: 100%;
	width: 200%;
	transform: translateX(0);
	transition: transform 0.6s ease-in-out;
}

.container.right-panel-active .overlay {
	transform: translateX(50%);
}

.overlay-panel {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 0 40px;
	text-align: center;
	top: 0;
	height: 100%;
	width: 50%;
	transform: translateX(0);
	transition: transform 0.6s ease-in-out;
}

.overlay-left {
	transform: translateX(-20%);
}

.container.right-panel-active .overlay-left {
	transform: translateX(0);
}

.overlay-right {
	right: 0;
	transform: translateX(0);
}

.container.right-panel-active .overlay-right {
	transform: translateX(20%);
}

.social-container {
	margin: 20px 0;
}

.social-container a {
	border: 1px solid var(--card-border);
	border-radius: 50%;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	margin: 0 5px;
	height: 40px;
	width: 40px;
	color: var(--text-main);
	transition: all 0.3s;
}

.social-container a:hover {
	border-color: var(--primary-color);
	color: var(--primary-color);
	box-shadow: 0 0 10px rgba(0, 195, 255, 0.3);
}

footer {
	background-color: rgba(11, 13, 17, 0.9);
	color: var(--text-body);
	font-size: 14px;
	bottom: 0;
	position: fixed;
	left: 0;
	right: 0;
	text-align: center;
	z-index: 999;
	border-top: 1px solid rgba(0, 195, 255, 0.1);
	padding: 10px 0;
}

footer p {
	margin: 5px 0;
}

footer i {
	color: red;
}

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

/* ========== LOADING SCREEN STYLES ========== */
#page-loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #0b0d11 0%, #1a1d29 100%);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
	opacity: 0;
	visibility: hidden;
}

.loading-logo {
	width: 120px;
	height: 120px;
	object-fit: contain;
	margin-bottom: 20px;
	animation: pulse 2s ease-in-out infinite;
	filter: drop-shadow(0 0 20px rgba(0, 195, 255, 0.5));
}

@keyframes pulse {

	0%,
	100% {
		transform: scale(1);
		opacity: 1;
	}

	50% {
		transform: scale(1.05);
		opacity: 0.8;
	}
}

.loading-title {
	font-family: 'Orbitron', sans-serif;
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--text-main);
	margin: 10px 0;
	letter-spacing: 3px;
	text-shadow: 0 0 10px rgba(0, 195, 255, 0.5);
}

.loading-subtitle {
	font-family: 'Rajdhani', sans-serif;
	font-size: 1rem;
	color: var(--primary-color);
	letter-spacing: 2px;
	margin-bottom: 30px;
}

.loading-progress-container {
	width: 300px;
	max-width: 80%;
}

.loading-status {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	font-size: 0.9rem;
	color: var(--text-body);
}

.status-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	background-color: var(--primary-color);
	border-radius: 50%;
	margin-right: 8px;
	animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.3;
	}
}

.progress-track {
	width: 100%;
	height: 4px;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 2px;
	overflow: hidden;
	position: relative;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--primary-color), var(--primary-glow));
	border-radius: 2px;
	transition: width 0.3s ease;
	position: relative;
	box-shadow: 0 0 10px var(--primary-color);
}

.progress-shine {
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	animation: shine 2s ease-in-out infinite;
}

@keyframes shine {
	0% {
		left: -100%;
	}

	100% {
		left: 100%;
	}
}

.cube-container {
	width: 80px;
	height: 80px;
	position: relative;
	transform-style: preserve-3d;
	animation: rotateCube 3s linear infinite;
	margin-bottom: 30px;
}

@keyframes rotateCube {
	0% {
		transform: rotateX(0deg) rotateY(0deg);
	}

	100% {
		transform: rotateX(360deg) rotateY(360deg);
	}
}

.cube-face {
	position: absolute;
	width: 80px;
	height: 80px;
	background: rgba(0, 195, 255, 0.1);
	border: 2px solid var(--primary-color);
	box-shadow: 0 0 20px rgba(0, 195, 255, 0.3);
}

.cube-face-front {
	transform: translateZ(40px);
}

.cube-face-back {
	transform: rotateY(180deg) translateZ(40px);
}

.cube-face-right {
	transform: rotateY(90deg) translateZ(40px);
}

.cube-face-left {
	transform: rotateY(-90deg) translateZ(40px);
}

.cube-face-top {
	transform: rotateX(90deg) translateZ(40px);
}

.cube-face-bottom {
	transform: rotateX(-90deg) translateZ(40px);
}

.cube-inner {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(0, 195, 255, 0.2), rgba(0, 119, 204, 0.2));
	animation: glow 2s ease-in-out infinite;
}

@keyframes glow {

	0%,
	100% {
		opacity: 0.5;
	}

	50% {
		opacity: 1;
	}
}