/* --- Modern Dark Theme Variables --- */
:root {
	--bg-color: #0d1117;
	--text-main: #e6edf3;
	--text-muted: #8b949e;
	--neon: #00ffaa;
	--neon-glow: rgba(0, 255, 170, 0.2);
	--accent-blue: #00b8ff;
	--card-bg: rgba(22, 27, 34, 0.6);
}

body {
	background-color: var(--bg-color);
	color: var(--text-main);
	font-family: 'Inter', sans-serif;
	margin: 0;
	padding: 0;
	min-height: 100vh;
	overflow-x: hidden;
	position: relative;
}

/* --- 1. Background Grid Effect --- */
.bg-grid {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-size: 50px 50px;
	background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	z-index: -2;
	pointer-events: none;
}

/* --- 2. Ambient Center Glow Effect --- */
.bg-glow {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 70vw;
	height: 70vh;
	background: radial-gradient(circle, rgba(0, 255, 170, 0.05) 0%, transparent 60%);
	z-index: -1;
	pointer-events: none;
}

/* --- Top Centered Logo --- */
.top-header {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	padding: 2rem 0;
	text-align: center;
	z-index: 10;
}

/* Ensure the logos scale nicely and have hover effects */
.logo-icon, .logo-main {
    max-height: 45px;
    width: auto;
    filter: saturate(200%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-icon:hover, .logo-main:hover {
    filter: saturate(200%);
    transform: scale(1.03);
}

/* --- Animated Glowing Orb (Left Side) --- */
.orb {
	position: relative;
	width: 100%;
	max-width: 450px;
	aspect-ratio: 1/1;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
}

.ring {
	position: absolute;
	border-radius: 50%;
	border: 2px solid transparent;
	box-shadow: 0 0 15px var(--neon-glow), inset 0 0 15px var(--neon-glow);
}

.ring:nth-child(1) {
	width: 75%;
	height: 75%;
	border-top: 2px solid var(--neon);
	border-left: 2px solid var(--neon);
	animation: spin 8s linear infinite;
}

.ring:nth-child(2) {
	width: 90%;
	height: 90%;
	border-bottom: 2px solid var(--accent-blue);
	border-right: 2px solid var(--accent-blue);
	animation: spin-reverse 12s linear infinite;
}

.core {
	position: absolute;
	width: 60%;
	height: 60%;
	background: rgba(0, 255, 170, 0.05);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 30px var(--neon-glow);
	animation: pulse 3s ease-in-out infinite;
}

/* Styling for the logo inside the orb - Shadow removed, hover added */
.core-logo {
    width: 70%; 
    height: auto;
    filter: saturate(200%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.core-logo:hover {
    filter: saturate(200%);
    transform: scale(1.1);
}

/* --- Dark Theme Glassmorphism Login Card --- */
.login-card {
	background: var(--card-bg);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	padding: 3rem 2.5rem;
	width: 100%;
	max-width: 450px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
	margin: 0 auto;
	animation: fadeUp 0.8s ease-out;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Form hover effect */
.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 20px var(--neon-glow);
    border-color: rgba(255, 255, 255, 0.15);
}

.login-title {
	font-size: 1.7rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: white;
}

.form-control {
	background-color: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: white;
	padding: 0.8rem 1rem;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.form-control:focus {
	background-color: rgba(0, 0, 0, 0.5);
	border-color: var(--neon);
	box-shadow: 0 0 0 3px var(--neon-glow);
	color: white;
}

.form-control::placeholder {
	color: #4b5563;
}

.form-label {
	color: var(--text-muted);
	font-weight: 600;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.btn-login {
	background-color: var(--neon);
	color: black;
	font-weight: 800;
	letter-spacing: 0.5px;
	border: none;
	border-radius: 8px;
	padding: 0.9rem;
	width: 100%;
	margin-top: 1rem;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px var(--neon-glow);
}

.btn-login:hover {
	background-color: black;
	box-shadow: 0 0 25px rgba(0, 255, 170, 0.4);
	transform: translateY(-2px);
}

/* --- Animations --- */
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: rotate(-360deg); } }
@keyframes pulse { 50% { transform: scale(1.05); box-shadow: 0 0 50px rgba(0, 255, 170, 0.4); } }
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }

/* Custom padding to offset the absolute header on small screens */
/* .main-content { padding-top: 100px; } */
@media (max-width: 767px) {
	.main-content { padding-top: 120px; }
}


