@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap");

/* ─── Tokens ─── */
:root {
	--bg: #f8fafc;
	--surface: #ffffff;
	--line: #e2e8f0;
	--text: #1e293b;
	--muted: #64748b;
	--brand: #1d4ed8;       /* Primary Blue */
	--brand-hover: #1e40af;
	--accent: #f97316;
	--shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
	--shadow-hover: 0 14px 28px rgba(0, 0, 0, 0.08);
	--radius: 12px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	color: var(--text);
	background: var(--bg);
	font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
}

/* ═══════════════════════════════════
   TOPBAR
   ═══════════════════════════════════ */
.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 40px;
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.98);
}

/* 1. Left Section (Logo) */
.nav-left {
	flex: 1;
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

.brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--text);
}

.brand-logo {
	/* Scalable logo size */
	height: 44px;
	width: auto;
	object-fit: contain;
}

.brand-name {
	font-family: "Sora", "Segoe UI", sans-serif;
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--brand);
}

/* 2. Center Section (Navigation) */
.nav-center {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 32px; /* Uniform spacing between items */
}

.nav-center a {
	text-decoration: none;
	color: var(--text);
	font-weight: 600;
	font-size: 0.95rem;
	transition: color 0.2s ease;
}

.nav-center a:hover,
.nav-center a.active {
	color: var(--brand);
}

/* 3. Right Section (Actions) */
.nav-right {
	flex: 1;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 20px;
}

.login-link {
	color: var(--brand);
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	transition: opacity 0.2s;
}

.login-link:hover {
	opacity: 0.8;
}

.signup-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 24px;
	border: none;
	border-radius: 8px;
	background: var(--brand);
	color: #fff;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s;
}

.signup-btn:hover {
	background: var(--brand-hover);
}

/* ═══════════════════════════════════
   AUTH SECTION
   ═══════════════════════════════════ */
.auth-wrapper {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 24px;
	animation: fadeIn 0.4s ease both;
}

.auth-card {
	width: 100%;
	max-width: 440px;
	background: #ffffff;
	padding: 48px 40px;
	border-radius: 16px;
	box-shadow: var(--shadow);
	border: 1px solid var(--line);
}

.auth-header {
	text-align: center;
	margin-bottom: 32px;
}

.auth-header h2 {
	font-family: "Sora", "Segoe UI", sans-serif;
	font-size: 2rem;
	font-weight: 800;
	margin: 0 0 8px;
	color: var(--text);
}

.auth-header p {
	color: var(--muted);
	font-size: 0.95rem;
	margin: 0;
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	position: relative;
}

.form-group label {
	font-size: 0.75rem;
	font-weight: 800;
	color: var(--text);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.form-group input {
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 8px;
	font-size: 0.95rem;
	font-family: inherit;
	background: #ffffff;
	color: var(--text);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	outline: none;
}

.form-group input::placeholder {
	color: #94a3b8;
}

.form-group input:focus {
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.forgot-wrapper {
	text-align: right;
	margin-top: 4px;
}

.forgot-link {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--brand);
	text-decoration: none;
}

.forgot-link:hover {
	text-decoration: underline;
}

.btn-primary {
	margin-top: 12px;
	padding: 14px;
	background: var(--brand);
	border: none;
	color: #fff;
	border-radius: 8px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease;
	width: 100%;
}

.btn-primary:hover {
	background: var(--brand-hover);
}

.divider {
	display: flex;
	align-items: center;
	text-align: center;
	margin: 32px 0;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 1px;
}

.divider::before, .divider::after {
	content: "";
	flex: 1;
	border-bottom: 1px solid var(--line);
}

.divider span {
	padding: 0 16px;
}

.google-btn-wrapper {
	display: flex;
	justify-content: center;
	width: 100%;
}

/* Hide native google iframe default margin if any */
.g_id_signin {
	margin: 0 auto;
}

.auth-footer {
	text-align: center;
	margin-top: 32px;
	font-size: 0.9rem;
	color: var(--muted);
}

.auth-footer a {
	color: var(--brand);
	font-weight: 700;
	text-decoration: none;
	transition: opacity 0.2s;
}

.auth-footer a:hover {
	opacity: 0.8;
	text-decoration: underline;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 768px) {
	.topbar {
		padding: 14px 20px;
	}
	.main-nav {
		display: none;
	}
	.auth-card {
		padding: 32px 24px;
	}
}

/* ═══════════════════════════════════
   NOTIFICATION BOX
   ═══════════════════════════════════ */
.notification-box {
	position: fixed;
	top: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(-20px);
	background: #1e293b;
	color: #fff;
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 0.82rem;
	font-weight: 600;
	box-shadow: 0 6px 16px rgba(0,0,0,0.12);
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 8px;
	opacity: 0;
	pointer-events: none;
	transition: all 0.3s ease;
	max-width: 360px;
}

.notification-box.show {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.notification-box.error {
	background: #ef4444;
}

.notification-box.success {
	background: #10b981;
}
