@import url('[https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap](https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap)');

:root {
	--yellow: #FFDF6C;
	--yellow-strong: #FFD336;
	--gray-100: #F6F6F6;
	--text: #202020;
	--muted: #3F3F3F;
	--card-radius: 30px;
	--field-radius: 16px;
	--shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
	--max-width: 900px;
}

* {
	box-sizing: border-box;
}

html, body {
	height: 100%;
}

body {
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
	margin: 0;
	color: var(--text);
	background: #fff;
}

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

/* Left hero column */
.hero {
	flex: 0 0 40%;
	min-height: 100vh;
	background: var(--yellow);
	position: relative;
	overflow: hidden;
	display: none;
}

.hero-image {
	position: absolute;
	inset: 0;
	background-image: url('../assets/register-bg.jpg');
	background-size: cover;
	background-position: center;
	filter: blur(2px) saturate(0.9);
	opacity: 0.5;
}

/* Right card */
.card-wrap {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px;
}

.card {
	width: 100%;
	max-width: var(--max-width);
	background: var(--gray-100);
	border-radius: var(--card-radius);
	box-shadow: var(--shadow);
	padding: 48px;
}

.title {
	font-size: 48px;
	margin: 0 0 28px;
	text-align: center;
	font-weight: 800;
}

.form {
	max-width: 760px;
}

.row.two-up {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.field {
	position: relative;
	margin-bottom: 18px;
	margin-top: 35px;
}

.label {
	position: absolute;
	left: 18px;
	top: -10px;
	background: var(--gray-100);
	padding: 6px 10px;
	color: var(--muted);
	font-size: 16px;
}

/* New Input Field Design System */
.input-group {
	position: relative;
	margin: 20px 0;
	width: 100%;
}

.input-group input {
	width: 100%;
	padding: 18px 22px;
	border-radius: 16px;
	border: 1px solid #202020;
	background: transparent;
	font-size: 16px;
	color: #202020;
	outline: none;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.input-group input::placeholder {
	color: transparent;
}

.input-group label {
	position: absolute;
	left: 18px;
	top: 45%;
	transform: translateY(-50%);
	font-size: 16px;
	color: #202020;
	background: var(--gray-100);
	padding: 6px 10px;
	pointer-events: none;
	transition: top 0.25s ease, font-size 0.25s ease, color 0.25s ease;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group input:-webkit-autofill ~ label {
	top: 0.3rem;
	font-size: 14px;
}

.input-group input:focus {
	border-color: #FFDF6C;
	box-shadow: 0 0 0 3px rgba(255, 211, 54, 0.25);
}

/*Autofill color fix*/
input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0px 1000px #F6F6F6 inset,       /* restore background */
        0 0 0 3px rgba(255, 211, 54, 0.25);
 /* keep focus glow */
	-webkit-text-fill-color: #202020 !important;
	caret-color: #202020 !important;
	border-color: #FFDF6C !important;
	transition: background-color 9999s ease-in-out 0s;
}

.input-group input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0px 1000px var(--gray-100) inset !important;
	-webkit-text-fill-color: #202020 !important;
	caret-color: #202020 !important;
	border-color: #202020 !important;
	transition: background-color 9999s ease-in-out 0s;
	box-shadow: none;
}

.input-group input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0px 1000px var(--gray-100) inset,
    0 0 0 3px rgba(255, 211, 54, 0.25) !important;
	border-color: #FFDF6C !important;
}

.input-group input:not(:focus) {
	box-shadow: none;
}

.cta {
	display: block;
	width: 100%;
	background: var(--yellow-strong);
	color: var(--text);
	font-weight: 800;
	border: none;
	padding: 18px;
	border-radius: 16px;
	font-size: 22px;
	margin-top: 18px;
	cursor: pointer;
}

.cta:hover {
	opacity: 0.95;
}

.muted {
	margin-top: 18px;
	text-align: center;
	color: var(--muted);
}

.link {
	color: var(--yellow-strong);
	text-decoration: none;
	font-weight: 600;
}

.card {
	border-radius: 30px;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: scale(0.95);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* Responsive */
@media(min-width:992px) {
	.hero {
		display: block;
	}

	.card {
		margin: 48px 24px;
	}

	.form {
		padding: 0 18px;
	}
}

@media(max-width:991px) {
	.page {
		align-items: center;
	}

	.card {
		border-radius: 24px;
		padding: 36px;
	}

	.title {
		font-size: 40px;
	}

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

	.hero {
		display: none;
	}
}

@media(max-width:420px) {
	.card {
		padding: 28px;
	}

	.title {
		font-size: 36px;
	}

	.cta {
		font-size: 20px;
		padding: 16px;
	}
}