/* ═══════════════════════════════════════════════════════════
   THE PEAK — Login  |  Glossy Split-Screen
   ═══════════════════════════════════════════════════════════ */

/* ── Reset scroll issues ───────────────────────────────────── */
html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	overflow-x: hidden;
	font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ── Split wrapper ─────────────────────────────────────────── */
.split-wrapper {
	display: flex;
	width: 100vw;
	min-height: 100vh;
	overflow: hidden;
}

/* ════════════════════════════════════════════════════════════
   LEFT PANEL
   ════════════════════════════════════════════════════════════ */
.split-left {
	width: 50%;
	flex-shrink: 0;
	background: #080c14;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 52px 56px;
	position: relative;
	overflow: hidden;
}

/* Rich multi-layer gradient atmosphere */
.split-left::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 70% 55% at 95% 5%,  rgba(99,102,241,0.28) 0%, transparent 65%),
		radial-gradient(ellipse 50% 45% at 5%  95%,  rgba(6,182,212,0.18)  0%, transparent 65%),
		radial-gradient(ellipse 40% 40% at 50% 50%,  rgba(139,92,246,0.08)  0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}

/* Bottom-edge glow bar */
.split-left::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0; right: 0;
	height: 2px;
	background: linear-gradient(90deg,
		transparent 0%,
		rgba(99,102,241,0.6) 30%,
		rgba(6,182,212,0.6)  70%,
		transparent 100%);
	z-index: 3;
}

/* Dot grid overlay */
.dot-grid {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
	background-size: 28px 28px;
	z-index: 1;
	pointer-events: none;
	mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
	-webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* ── Top: logo + wordmark ──────────────────────────────────── */
.left-top {
	position: relative;
	z-index: 2;
}

.brand-badge {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 14px;
	padding: 10px 18px 10px 12px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,0.1),
		0 4px 16px rgba(0,0,0,0.3);
}

.brand-logo {
	height: 36px;
	width: auto;
	object-fit: contain;
	filter: brightness(0) invert(1);
	opacity: 0.92;
}

.brand-wordmark {
	font-size: 17px;
	font-weight: 800;
	color: rgba(255,255,255,0.9);
	letter-spacing: 2px;
}

/* ── Middle: main content ──────────────────────────────────── */
.left-content {
	position: relative;
	z-index: 2;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px 0;
}

/* Accent separator */
.left-separator {
	width: 48px;
	height: 3px;
	border-radius: 999px;
	background: linear-gradient(90deg, #6366f1, #06b6d4);
	margin-bottom: 20px;
}

/* Big headline */
.left-headline {
	font-size: 38px;
	font-weight: 800;
	color: #ffffff;
	line-height: 1.18;
	letter-spacing: -1px;
	margin: 0 0 20px;
}

/* Tagline — bigger as requested */
.brand-tagline {
	font-size: 16px;
	line-height: 1.8;
	color: rgba(255,255,255,0.5);
	max-width: 360px;
	margin-bottom: 36px;
}

/* ── Stat counters ─────────────────────────────────────────── */
.left-stats {
	display: flex;
	align-items: center;
	gap: 0;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 14px;
	padding: 18px 24px;
	margin-bottom: 28px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.stat-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
}

.stat-number {
	font-size: 26px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.5px;
	line-height: 1;
	background: linear-gradient(135deg, #a5b4fc, #67e8f9);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.stat-label {
	font-size: 11px;
	color: rgba(255,255,255,0.38);
	font-weight: 500;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.stat-divider {
	width: 1px;
	height: 36px;
	background: rgba(255,255,255,0.1);
}

/* ── Feature pills ─────────────────────────────────────────── */
.feature-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.09);
	border-radius: 999px;
	font-size: 12px;
	color: rgba(255,255,255,0.58);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,0.08),
		0 2px 6px rgba(0,0,0,0.2);
	transition: background 0.22s, color 0.22s, border-color 0.22s;
}
.pill:hover {
	background: rgba(99,102,241,0.15);
	border-color: rgba(99,102,241,0.35);
	color: rgba(255,255,255,0.85);
}

/* ── Footer ────────────────────────────────────────────────── */
.left-footer {
	position: relative;
	z-index: 2;
	font-size: 11px;
	color: rgba(255,255,255,0.18);
	letter-spacing: 0.3px;
}

/* ════════════════════════════════════════════════════════════
   RIGHT PANEL
   ════════════════════════════════════════════════════════════ */
.split-right {
	flex: 1;
	min-width: 0;                        /* prevent flex blowout */
	background: #f4f6fb;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 32px;
	position: relative;
	overflow: hidden;
}

/* Soft orb on right panel */
.split-right::before {
	content: '';
	position: absolute;
	width: 400px;
	height: 400px;
	top: -120px;
	right: -120px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(99,102,241,0.07) 0%, transparent 70%);
	pointer-events: none;
}

/* Form card — glossy white */
.form-wrapper {
	width: 100%;
	max-width: 400px;
	background: rgba(255,255,255,0.75);
	border: 1px solid rgba(255,255,255,0.9);
	border-radius: 20px;
	padding: 36px 32px;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	box-shadow:
		0 8px 32px rgba(0,0,0,0.08),
		0 1px 0 rgba(255,255,255,1) inset,
		0 -1px 0 rgba(0,0,0,0.04) inset;
	position: relative;
	z-index: 1;
}

/* Gloss shine at top of card */
.form-wrapper::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 50%;
	border-radius: 20px 20px 0 0;
	background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 100%);
	pointer-events: none;
}

/* ── Mobile logo ───────────────────────────────────────────── */
.brand-logo-sm {
	height: 34px;
	width: auto;
	object-fit: contain;
}
.brand-name-sm {
	font-size: 20px;
	font-weight: 800;
	color: #0d1117;
	letter-spacing: -0.5px;
}

/* ── Headings ──────────────────────────────────────────────── */
.form-title {
	font-size: 23px;
	font-weight: 700;
	color: #0d1117;
	margin-bottom: 4px;
	letter-spacing: -0.3px;
}
.form-subtitle {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 24px;
}

/* ── Labels ────────────────────────────────────────────────── */
.field-label {
	font-size: 12px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 5px;
}

/* ── Glossy inputs & select ────────────────────────────────── */
.custom-input,
.custom-select {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1.5px solid rgba(209,213,219,0.9);
	border-radius: 10px;
	background: rgba(255,255,255,0.8);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	color: #111827;
	font-size: 14px;
	box-shadow:
		inset 0 1px 3px rgba(0,0,0,0.05),
		0 1px 0 rgba(255,255,255,0.9);
	transition: border-color 0.2s, box-shadow 0.2s;
	display: block;
}
.custom-input:focus,
.custom-select:focus {
	border-color: #6366f1;
	outline: none;
	background: #fff;
	box-shadow:
		0 0 0 3px rgba(99,102,241,0.13),
		inset 0 1px 3px rgba(0,0,0,0.04);
}
.custom-input.is-invalid,
.custom-select.is-invalid {
	border-color: #ef4444 !important;
	box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important;
}
.custom-input::placeholder { color: #9ca3af; font-size: 13.5px; }

/* Custom select arrow */
.custom-select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 13px center;
	padding-right: 36px;
	cursor: pointer;
}

/* Password wrapper — keep Bootstrap pe-5 working */
.password-wrap {
	position: relative;
}
.password-wrap .custom-input {
	padding-right: 46px;
}

/* Eye toggle */
#togglePassword {
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	font-size: 16px;
	color: #9ca3af;
	cursor: pointer;
	z-index: 5;
	user-select: none;
	transition: color 0.2s;
}
#togglePassword:hover { color: #374151; }

/* ── Forgot link ───────────────────────────────────────────── */
.forgot-link {
	font-size: 11.5px;
	color: #6b7280;
	text-decoration: none;
	transition: color 0.2s;
}
.forgot-link:hover { color: #6366f1; }

/* ── Login button ──────────────────────────────────────────── */
.btn-login {
	width: 100%;
	height: 46px;
	border: none;
	border-radius: 10px;
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: 0.2px;
	color: #fff;
	background: linear-gradient(170deg, #1e2235 0%, #0d1117 100%);
	box-shadow:
		0 4px 14px rgba(13,17,23,0.35),
		inset 0 1px 0 rgba(255,255,255,0.1);
	position: relative;
	overflow: hidden;
	transition: transform 0.15s, box-shadow 0.2s;
	cursor: pointer;
}
.btn-login::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 55%);
	pointer-events: none;
}
.btn-login:hover {
	color: #fff;
	transform: translateY(-1px);
	box-shadow:
		0 7px 20px rgba(13,17,23,0.4),
		inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-login:active { transform: translateY(0); }
.btn-login:disabled {
	background: linear-gradient(170deg, #6b7280, #4b5563);
	transform: none;
	box-shadow: none;
	cursor: not-allowed;
}

/* ── Register button ───────────────────────────────────────── */
.btn-register {
	width: 100%;
	height: 46px;
	border-radius: 10px;
	font-size: 14.5px;
	font-weight: 600;
	color: #1f2937;
	background: rgba(255,255,255,0.7);
	border: 1.5px solid rgba(209,213,219,0.85);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,0.95),
		0 2px 6px rgba(0,0,0,0.05);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
	cursor: pointer;
}
.btn-register:hover {
	background: rgba(255,255,255,0.95);
	border-color: #c4c9d4;
	color: #0d1117;
	transform: translateY(-1px);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,1),
		0 4px 10px rgba(0,0,0,0.08);
}

/* ── Divider ───────────────────────────────────────────────── */
.divider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 6px 0;
}
.divider::before,
.divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: rgba(209,213,219,0.75);
}
.divider span { font-size: 11px; color: #9ca3af; }

/* ── Support note ──────────────────────────────────────────── */
.support-note { font-size: 11.5px; color: #9ca3af; }
.support-link { color: #6b7280; text-decoration: none; font-weight: 500; }
.support-link:hover { color: #6366f1; }

/* ── Validation feedback ───────────────────────────────────── */
.invalid-feedback { font-size: 11.5px; margin-top: 4px; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — mobile stacks vertically
   ════════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
	.split-wrapper {
		flex-direction: column;
	}
	.split-left {
		width: 100%;
		padding: 32px 24px 28px;
		min-height: auto;
	}
	.left-content {
		padding: 24px 0 8px;
	}
	.left-headline {
		font-size: 26px;
	}
	.brand-tagline {
		font-size: 14px;
	}
	.left-stats {
		padding: 14px 16px;
	}
	.stat-number { font-size: 20px; }
	.split-right {
		padding: 32px 20px 48px;
	}
	.form-wrapper {
		padding: 28px 22px;
	}
}