@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&display=swap');

* { box-sizing: border-box; }

:root{
	--accent:#FF4B2B;
	--accent-2:#FF6A3D;
	--asphalt:#0F141A;
	--tread:#1B232C;
	--smoke:#f6f5f7;
	--ink:#222;
	--muted:#6b7280;
}

html, body { height: 100%; }

body {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	min-height: 100vh;
	margin: 0;
	padding: 40px 16px 96px;
	color: var(--ink);
}

/* Background image + overlay (keep road.jpg at project root) */
#bg-overlay{
	position: fixed;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55)),
		url('road.jpg') center/cover no-repeat fixed;
	z-index: -1;
	filter: saturate(1.05) contrast(1.02);
}

h1 { font-weight: 800; margin: 0 0 8px; letter-spacing: .2px; }
h2 { color: #fff; text-align: center; margin: 0 0 24px; font-weight: 800; letter-spacing: .3px; text-shadow: 0 6px 20px rgba(0,0,0,.45); }

p { font-size: 14px; font-weight: 500; line-height: 1.6; letter-spacing: .2px; margin: 16px 0 24px; color: var(--ink); }
span { font-size: 12px; color: var(--muted); }

a { color: var(--muted); font-size: 14px; text-decoration: none; margin: 12px 0; }
a:hover { color: var(--accent-2); }

.muted { color: var(--muted); }

button {
	border-radius: 999px;
	border: 1px solid var(--accent);
	background-color: var(--accent);
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 800;
	padding: 12px 28px;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: transform 80ms ease-in, box-shadow .2s ease, background .2s ease, border-color .2s ease;
	cursor: pointer;
}
button:hover{
	box-shadow: 0 10px 26px rgba(255,75,43,.28);
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	border-color: transparent;
}
button:active { transform: scale(0.97); }
button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
button.ghost {
	background-color: transparent;
	border-color: #FFFFFF;
	color: #fff;
}
button.ghost:hover{ background: rgba(255,255,255,.08); border-color: #fff; box-shadow: none; }

form {
	background-color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 0 50px;
	height: 100%;
	text-align: center;
	backdrop-filter: blur(6px) saturate(1.05);
	-webkit-backdrop-filter: blur(6px) saturate(1.05);
}

/* inputs + select same style */
input, select {
	background: #f1f5f9;
	border: 1px solid #e5e7eb;
	padding: 12px 14px;
	margin: 8px 0;
	border-radius: 10px;
	font-size: 14px;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input { width: 100%; }

/* modern select with custom caret */
select{
	min-width: 120px;
	height: 44px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 34px;
	background-image:
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 18px;
}

input::placeholder { color: #94a3b8; }
input:focus, select:focus{
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 8px 24px rgba(255,75,43,.15);
	background: #fff;
}

.phone-row{
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 10px;
	width: 100%;
	align-items: center;
}

.inline-note{
	margin-top: 6px;
	min-height: 18px;
	font-size: 12px;
	color: #6b7280;
}

.disclaimer{ color: #9ca3af; margin: 12px 0 0; font-size: 12px; }

/* translucent container so bg is slightly visible */
.container {
	background: rgba(255,255,255,.90);
	border: 1px solid rgba(255,255,255,.6);
	border-radius: 16px;
	box-shadow:
		0 18px 50px rgba(0,0,0,0.35),
		0 8px 20px rgba(0,0,0,0.25);
	position: relative;
	overflow: hidden;
	width: 860px;
	max-width: 100%;
	min-height: 520px;
}

.form-container {
	position: absolute;
	top: 0;
	height: 100%;
	transition: all 0.6s ease-in-out;
}

.sign-in-container { left: 0; width: 50%; z-index: 2; }
.container.right-panel-active .sign-in-container { transform: translateX(100%); }

.sign-up-container { left: 0; width: 50%; opacity: 0; z-index: 1; }
.container.right-panel-active .sign-up-container {
	transform: translateX(100%);
	opacity: 1;
	z-index: 5;
	animation: show 0.6s;
}

@keyframes show {
	0%, 49.99% { opacity: 0; z-index: 1; }
	50%, 100% { opacity: 1; z-index: 5; }
}

.overlay-container {
	position: absolute;
	top: 0;
	left: 50%;
	width: 50%;
	height: 100%;
	overflow: hidden;
	transition: transform 0.6s ease-in-out;
	z-index: 100;
}
.container.right-panel-active .overlay-container{ transform: translateX(-100%); }

/* dark right panel slightly translucent */
.overlay {
	background: rgba(17,24,39,.88);
	color: #FFFFFF;
	position: relative;
	left: -100%;
	height: 100%;
	width: 200%;
	transform: translateX(0);
	transition: transform 0.6s ease-in-out;
}
.container.right-panel-active .overlay { transform: translateX(50%); }

.overlay-panel {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 0 44px;
	text-align: center;
	top: 0;
	height: 100%;
	width: 50%;
	transform: translateX(0);
	transition: transform 0.6s ease-in-out;
}
.overlay-left { transform: translateX(-20%); }
.container.right-panel-active .overlay-left { transform: translateX(0); }
.overlay-right { right: 0; transform: translateX(0); }
.container.right-panel-active .overlay-right { transform: translateX(20%); }
.overlay h1{ color:#fff; }
.overlay p{ color:#d1d5db; max-width: 28ch; }

/* toasts */
.toast-container{
	position: fixed;
	top: 16px;
	right: 16px;
	display: grid;
	gap: 10px;
	z-index: 9999;
}
.toast{
	background: #0F141A;
	color: #fff;
	border: 1px solid rgba(255,255,255,.08);
	box-shadow: 0 10px 30px rgba(0,0,0,.35);
	padding: 12px 14px;
	border-radius: 12px;
	font-size: 14px;
	opacity: 0;
	transform: translateY(-6px);
	animation: toast-in .25s ease forwards;
}
.toast.success{ border-color: rgba(16,185,129,.35); }
.toast.warn{ border-color: rgba(245,158,11,.45); }
.toast.info{ border-color: rgba(59,130,246,.45); }

@keyframes toast-in{
	to{ opacity: 1; transform: translateY(0); }
}

/* footer always readable on bg */
footer{
	position: fixed;
	left: 0; right: 0; bottom: 8px;
	text-align: center;
	color: #fff !important;
	text-shadow: 0 2px 8px rgba(0,0,0,.6);
	font-size: 14px;
	z-index: 1000;
}
footer::before{
	content:"";
	position:absolute;
	inset:-8px 0 0 0;
	background: linear-gradient(180deg, transparent, rgba(0,0,0,.25));
	z-index:-1;
}

/* a11y helper */
.sr-only{
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}

/* responsive */
@media (max-width: 860px){
	body{ padding-bottom: 120px; }
	.container{ min-height: 620px; }
	form{ padding: 0 28px; }
	footer{ position: fixed; }
	.phone-row{ grid-template-columns: 120px 1fr; }
}
