:root {
	--p: #7c3aed;
	--pl: #8b5cf6;
	--pd: #5b21b6;
	--pxl: #ede9fe;
	--pm: #ddd6fe;
	--g9: #111827;
	--g8: #1f2937;
	--g7: #374151;
	--g6: #4b5563;
	--g5: #6b7280;
	--g4: #9ca3af;
	--g3: #d1d5db;
	--g2: #e5e7eb;
	--g1: #f3f4f6;
	--g0: #f9fafb;
	--w: #fff;
	--dark: #0d0720;
	--ok: #059669;
	--okl: #d1fae5;
	--err: #dc2626;
	--errl: #fee2e2;
	--r: 12px;
	--rl: 16px;
	--rxl: 24px;
	--rf: 9999px;
	--sp: 0 8px 32px rgba(124, 58, 237, 0.22);
}

.auth-page {
	min-height: 100vh;
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: #fff;
	position: relative;
	overflow: hidden;
}

.auth-brand-panel {
	position: relative;
	padding: 42px 56px;
	display: flex;
	flex-direction: column;
	gap: 50px;
	background: linear-gradient(160deg, #0d0720 0%, #150933 45%, #1a0f3e 100%);
	overflow: hidden;
	color: #fff;
}

.auth-brand-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(124, 58, 237, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(124, 58, 237, 0.08) 1px, transparent 1px);
	background-size: 44px 44px;
	animation: gridMove 24s linear infinite;
}

.auth-brand-panel::after {
	content: "";
	position: absolute;
	width: 460px;
	height: 460px;
	border-radius: 50%;
	right: -160px;
	top: -140px;
	background: radial-gradient(circle, rgba(124, 58, 237, 0.3), transparent 67%);
	filter: blur(20px);
}

@keyframes gridMove {
	to {
		background-position: 44px 44px;
	}
}

.logo {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: "Sora", sans-serif;
	font-size: 20px;
	font-weight: 800;
}

.logo-icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--p);
	display: grid;
	place-items: center;
	box-shadow: var(--sp);
}

.logo span span {
	color: #a78bfa;
}

.brand-content {
	position: relative;
	z-index: 2;
	max-width: 500px;
}

.auth-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(124, 58, 237, 0.18);
	border: 1px solid rgba(196, 181, 253, 0.25);
	color: #ddd6fe;
	padding: 7px 14px;
	border-radius: var(--rf);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.7px;
	margin-bottom: 22px;
}

.auth-pill i {
	width: 7px;
	height: 7px;
	background: #a78bfa;
	border-radius: 50%;
	animation: blink 1.8s infinite;
}

@keyframes blink {
	50% {
		opacity: 0.35;
	}
}

.brand-content h1 {
	font-family: "Sora", sans-serif;
	font-size: clamp(34px, 4vw, 56px);
	line-height: 1.08;
	letter-spacing: -1.5px;
	margin-bottom: 18px;
}

.brand-content h1 span {
	background: linear-gradient(135deg, #c4b5fd, #8b5cf6);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.brand-content p {
	color: rgba(255, 255, 255, 0.62);
	font-size: 16px;
	line-height: 1.8;
	margin-bottom: 30px;
	max-width: 430px;
}

.feature-list {
	display: grid;
	gap: 12px;
}

.feature {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.055);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--rl);
	backdrop-filter: blur(12px);
	animation: slideLeft 0.7s ease both;
}

.feature:nth-child(2) {
	animation-delay: 0.1s;
}

.feature:nth-child(3) {
	animation-delay: 0.2s;
}

@keyframes slideLeft {
	from {
		opacity: 0;
		transform: translateX(-24px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.feature-icon {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: rgba(124, 58, 237, 0.28);
}

.feature strong {
	display: block;
	font-size: 13px;
	color: #fff;
}

.feature small {
	color: rgba(255, 255, 255, 0.48);
	font-size: 12px;
}

.brand-stats {
	position: relative;
	z-index: 2;
	display: flex;
	gap: 20px;
	align-items: center;
}

.brand-stats .stat strong {
	display: block;
	font-family: "Sora", sans-serif;
	font-size: 25px;
}

.brand-stats .stat small {
	color: rgba(255, 255, 255, 0.45);
	font-size: 11px;
}

.divider-v {
	width: 1px;
	height: 34px;
	background: rgba(255, 255, 255, 0.12);
}

.auth-form-panel {
	padding: 38px 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(
			circle at 80% 10%,
			rgba(124, 58, 237, 0.07),
			transparent 25%
		),
		var(--w);
	position: relative;
}

.form-card {
	width: min(440px, 100%);
	animation: fadeUp 0.6s ease both;
}

.form-card.wide {
	width: min(560px, 100%);
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(22px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.form-head {
	margin-bottom: 28px;
}

.form-head h2 {
	font-family: "Sora", sans-serif;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.6px;
	color: var(--g9);
	margin-bottom: 8px;
}

.form-head p {
	color: var(--g6);
	font-size: 14px;
	line-height: 1.6;
}

.form-head a {
	color: var(--p);
	font-weight: 800;
}

.social-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 20px;
}

.btn-social {
	height: 46px;
	border: 1.5px solid var(--g2);
	background: #fff;
	border-radius: var(--r);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: var(--g7);
	font-size: 13px;
	font-weight: 800;
	transition: 0.25s ease;
}

.btn-social:hover {
	border-color: var(--pm);
	background: var(--g0);
	transform: translateY(-1px);
}

.divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 20px 0;
	color: var(--g4);
	font-size: 12px;
	font-weight: 700;
}

.divider:before,
.divider:after {
	content: "";
	height: 1px;
	background: var(--g2);
	flex: 1;
}

.field {
	margin-bottom: 16px;
}

.field label {
	display: block;
	font-size: 12px;
	font-weight: 800;
	color: var(--g7);
	margin-bottom: 7px;
}

.field label span {
	color: var(--p);
}

.input-wrap {
	position: relative;
}

.inp {
	width: 100%;
	height: 50px;
	border: 1.5px solid var(--g2);
	border-radius: var(--r);
	background: var(--g0);
	padding: 0 15px;
	font-size: 14px;
	outline: 0;
	color: var(--g9);
	transition: 0.22s ease;
}

.inp:focus {
	border-color: var(--p);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.inp.has-eye {
	padding-right: 46px;
}

.eye {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	cursor: pointer;
	color: var(--g5);
}

.form-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.check {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 12px;
	color: var(--g6);
	line-height: 1.5;
}

.check input {
	accent-color: var(--p);
	margin-top: 2px;
}

.forgot {
	font-size: 13px;
	color: var(--p);
	font-weight: 800;
}

.btn-main {
	width: 100%;
	height: 52px;
	border: 0;
	border-radius: var(--r);
	background: linear-gradient(135deg, var(--p), var(--pl));
	color: #fff;
	font-family: "Sora", sans-serif;
	font-weight: 800;
	cursor: pointer;
	box-shadow: var(--sp);
	transition: 0.25s ease;
	position: relative;
	overflow: hidden;
}

.btn-main:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 42px rgba(124, 58, 237, 0.32);
}

.btn-main:after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.18),
		transparent
	);
	transform: translateX(-100%);
	transition: 0.5s;
}

.btn-main:hover:after {
	transform: translateX(100%);
}

.security-note {
	text-align: center;
	margin-top: 16px;
	color: var(--g5);
	font-size: 12px;
}

/* Sign up specific */
.step-card {
	background: #fff;
	border: 1.5px solid var(--g2);
	border-radius: var(--rxl);
	padding: 22px;
	box-shadow: 0 18px 50px rgba(17, 24, 39, 0.06);
}

.step-bar {
	display: flex;
	align-items: center;
	margin-bottom: 18px;
}

.step-dot {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-family: "Sora", sans-serif;
	font-size: 12px;
	font-weight: 800;
	flex-shrink: 0;
}

.step-dot.active {
	background: var(--p);
	color: #fff;
	box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.12);
}

.step-dot.done {
	background: var(--ok);
	color: #fff;
}

.step-dot.idle {
	background: var(--g2);
	color: var(--g5);
}

.step-line {
	height: 2px;
	flex: 1;
	background: var(--g2);
}

.step-line.done {
	background: var(--p);
}

.step-labels {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: -8px;
	margin-bottom: 22px;
}

.step-labels span {
	text-align: center;
	font-size: 11px;
	font-weight: 800;
	color: var(--g5);
}

.step-labels span.active {
	color: var(--p);
}

.step-labels span.done {
	color: var(--ok);
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.email-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 13px;
	border-radius: var(--rf);
	background: var(--pxl);
	border: 1px solid var(--pm);
	color: var(--pd);
	font-size: 13px;
	font-weight: 800;
	margin-bottom: 16px;
}

.back-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 0;
	background: transparent;
	color: var(--g5);
	font-weight: 800;
	margin-bottom: 18px;
	cursor: pointer;
}

.back-btn:hover {
	color: var(--p);
}

.otp-row {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin: 20px 0;
}

.otp {
	width: 52px;
	height: 58px;
	border: 2px solid var(--g2);
	border-radius: var(--rl);
	text-align: center;
	font-family: "Sora", sans-serif;
	font-size: 22px;
	font-weight: 800;
	outline: 0;
	background: var(--g0);
	transition: 0.2s;
}

.otp:focus {
	border-color: var(--p);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
	transform: scale(1.04);
}

.otp.filled {
	background: var(--pxl);
	border-color: var(--p);
	color: var(--pd);
}

.hidden {
	display: none !important;
}

.shake {
	animation: shake 0.4s ease;
}

#loginOtpStep {
	display: none;
	width: 100%;
}

.disabled {
	pointer-events: none;
	opacity: 0.5;
}
@keyframes shake {
	25% {
		transform: translateX(-6px);
	}

	75% {
		transform: translateX(6px);
	}
}

.mobile-switch {
	display: none;
	text-align: center;
	margin-top: 18px;
	color: var(--g6);
	font-size: 13px;
}

.mobile-switch a {
	color: var(--p);
	font-weight: 900;
}

@media (max-width: 980px) {
	.auth-page {
		grid-template-columns: 1fr;
	}
	.check{
		gap: 2px;
	}

	.auth-brand-panel {
		min-height: auto;
		padding: 28px 24px;
	}

	

	.auth-form-panel {
		padding: 32px 20px;
		min-height: calc(100vh - 96px);
	}

	.mobile-switch {
		display: block;
	}

	.form-grid {
		grid-template-columns: 1fr;
	}

	.social-row {
		grid-template-columns: 1fr;
	}

	.otp {
		width: 44px;
		height: 52px;
	}

	.logo span {
		font-size: 18px;
	}
}
