*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
	--purple-dark:  #1e1b4b;
	--purple-mid:   #4338ca;
	--purple-light: #818cf8;
	--accent:       #a78bfa;
	--white:        #ffffff;
	--gray-100:     #f3f4f6;
	--gray-400:     #9ca3af;
	--gray-600:     #4b5563;
	--gray-900:     #111827;
	--error:        #ef4444;
	--error-bg:     #fef2f2;
}

html, body {
	height: 100%;
	font-family: 'Inter', system-ui, sans-serif;
	overflow: hidden;
}

.page {
	display: flex;
	height: 100vh;
}

/* LEFT PANEL */
.panel-left {
	flex: 1.1;
	background: var(--purple-dark);
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 3rem;
}

.orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.35;
	animation: drift 12s ease-in-out infinite alternate;
}
.orb-1 { width: 420px; height: 420px; background: #6366f1; top: -100px; left: -100px; animation-delay: 0s; }
.orb-2 { width: 320px; height: 320px; background: #a855f7; bottom: -80px; right: -60px; animation-delay: -4s; }
.orb-3 { width: 200px; height: 200px; background: #3b82f6; top: 45%; left: 55%; animation-delay: -8s; }

@keyframes drift {
	from { transform: translate(0, 0) scale(1); }
	to   { transform: translate(40px, 30px) scale(1.08); }
}

.panel-left::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
	background-size: 48px 48px;
}

.left-content {
	position: relative;
	z-index: 1;
	text-align: center;
	color: var(--white);
}

.brand-icon {
	width: 88px;
	height: 88px;
	background: linear-gradient(135deg, #6366f1, #a855f7);
	border-radius: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 2rem;
	box-shadow: 0 20px 60px rgba(99,102,241,0.5);
	animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
	0%, 100% { transform: translateY(0); }
	50%       { transform: translateY(-10px); }
}

.brand-icon svg {
	width: 46px;
	height: 46px;
	fill: white;
}

.left-content h1 {
	font-size: 3.5rem;
	font-weight: 900;
	letter-spacing: -2px;
	background: linear-gradient(135deg, #fff 30%, #a78bfa);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 0.5rem;
}

.left-content .tagline {
	font-size: 1rem;
	font-weight: 400;
	color: rgba(255,255,255,0.55);
	letter-spacing: 0.5px;
	margin-bottom: 3rem;
}

.clock-wrap {
	background: rgba(255,255,255,0.07);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 20px;
	padding: 1.5rem 2.5rem;
	backdrop-filter: blur(12px);
}

.clock-time {
	font-size: 3.2rem;
	font-weight: 800;
	letter-spacing: 4px;
	color: #fff;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 0 40px rgba(167,139,250,0.6);
}

.clock-date {
	font-size: 0.85rem;
	color: rgba(255,255,255,0.5);
	margin-top: 0.4rem;
	text-align: center;
	text-transform: capitalize;
	letter-spacing: 0.5px;
}

.features {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 2.5rem;
	width: 100%;
	max-width: 320px;
}

.feature-pill {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 12px;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	color: rgba(255,255,255,0.7);
	animation: fadeInUp 0.6s ease both;
}

.feature-pill:nth-child(1) { animation-delay: 0.1s; }
.feature-pill:nth-child(2) { animation-delay: 0.2s; }
.feature-pill:nth-child(3) { animation-delay: 0.3s; }

.feature-pill svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	stroke: var(--accent);
}

/* RIGHT PANEL */
.panel-right {
	flex: 0.9;
	background: #fafafa;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 2.5rem;
	overflow-y: auto;
}

.form-card {
	width: 100%;
	max-width: 400px;
	animation: fadeInUp 0.5s ease both;
}

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

.form-header {
	margin-bottom: 2.5rem;
}

.form-header h2 {
	font-size: 1.875rem;
	font-weight: 800;
	color: var(--gray-900);
	letter-spacing: -0.75px;
	margin-bottom: 0.4rem;
}

.form-header p {
	font-size: 0.9rem;
	color: var(--gray-400);
}

.field {
	margin-bottom: 1.25rem;
}

.field label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--gray-600);
	text-transform: uppercase;
	letter-spacing: 0.6px;
	margin-bottom: 0.5rem;
}

.input-wrap {
	position: relative;
}

.input-wrap svg {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	stroke: var(--gray-400);
	pointer-events: none;
	transition: stroke 0.2s;
}

.input-wrap input,
.input-wrap select {
	width: 100%;
	padding: 13px 14px 13px 44px;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	font-size: 0.95rem;
	font-family: 'Inter', sans-serif;
	color: var(--gray-900);
	background: white;
	transition: border-color 0.2s, box-shadow 0.2s;
	appearance: none;
}

.input-wrap input::placeholder {
	color: #c0c7d3;
}

.input-wrap input:focus,
.input-wrap select:focus {
	outline: none;
	border-color: var(--purple-mid);
	box-shadow: 0 0 0 4px rgba(67,56,202,0.08);
}

.input-wrap:focus-within svg {
	stroke: var(--purple-mid);
}

.select-wrap::after {
	content: '';
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid var(--gray-400);
	pointer-events: none;
}

.toggle-pw {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 2px;
	color: var(--gray-400);
	transition: color 0.2s;
}
.toggle-pw:hover { color: var(--purple-mid); }
.toggle-pw svg { width: 18px; height: 18px; stroke: currentColor; display: block; }

.alert-error {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	background: var(--error-bg);
	border: 1px solid #fca5a5;
	border-radius: 12px;
	padding: 1rem;
	margin-bottom: 1.5rem;
	animation: shake 0.4s ease;
}

@keyframes shake {
	0%,100% { transform: translateX(0); }
	20%,60%  { transform: translateX(-5px); }
	40%,80%  { transform: translateX(5px); }
}

.alert-error svg {
	width: 18px;
	height: 18px;
	stroke: var(--error);
	flex-shrink: 0;
	margin-top: 1px;
}

.alert-error span {
	font-size: 0.875rem;
	font-weight: 500;
	color: #b91c1c;
	line-height: 1.4;
}

.btn-submit {
	width: 100%;
	padding: 14px;
	background: linear-gradient(135deg, #4338ca 0%, #7c3aed 100%);
	color: white;
	border: none;
	border-radius: 12px;
	font-size: 0.95rem;
	font-weight: 700;
	font-family: 'Inter', sans-serif;
	cursor: pointer;
	letter-spacing: 0.3px;
	margin-top: 0.5rem;
	position: relative;
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
	box-shadow: 0 4px 20px rgba(67,56,202,0.35);
}

.btn-submit::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
}

.btn-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(67,56,202,0.45);
}

.btn-submit:active {
	transform: translateY(0);
	box-shadow: 0 2px 10px rgba(67,56,202,0.3);
}

.btn-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	position: relative;
}

.btn-inner svg {
	width: 18px;
	height: 18px;
	stroke: white;
	transition: transform 0.3s;
}

.btn-submit:hover .btn-inner svg {
	transform: translateX(4px);
}

.form-footer {
	text-align: center;
	margin-top: 2rem;
	font-size: 0.8rem;
	color: var(--gray-400);
}

@media (max-width: 768px) {
	html, body { overflow: auto; }
	.page { flex-direction: column; height: auto; min-height: 100vh; }
	.panel-left { flex: none; padding: 2.5rem 2rem; }
	.left-content h1 { font-size: 2.5rem; }
	.features { display: none; }
	.panel-right { flex: none; padding: 2rem 1.5rem 3rem; }
	.clock-time { font-size: 2.2rem; }
}
