/* ============ Reset & Base ============ */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Poppins", sans-serif;
	text-decoration: none;
	list-style: none;
}

body {
	background: #fff;
	color: #333;
	min-height: 100vh;
	overflow-x: hidden;
}

/* ============ Auth Page Wrapper ============ */
/* Add class="auth-page" on <body> */
.auth-page {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	/* space for the wave header + bottom breathing room */
	padding: 160px 1rem 48px;
	min-height: 100vh;
	overflow-y: auto;
	/* key: allow scrolling when content is tall */
	text-align: center;
}

/* ============ Curved SVG Header (background) ============ */
.header-svg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	line-height: 0;
	overflow: hidden;
	z-index: 0;
	/* sits behind the card; card is z-index:1 */
}

.header-svg svg {
	display: block;
	width: 100%;
	height: 170px;
	/* wave height */
}


/* ============ Card ============ */
.card,
.auth-card {
	background: #fff;
	border-radius: 18px;
	padding: 2rem;
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
	position: relative;
	z-index: 1;
	/* ensures it sits above the SVG */
	text-align: center;
}

.auth-card img {
	width: 100%;
	height: 300px;
	margin-bottom: 1rem;
	border-radius: 50%;
}

.auth-card h2 {
	font-size: 1.8rem;
	font-weight: 700;
	color: #222;
	margin-bottom: 0.5rem;
}

.subtitle {
	color: #666;
	margin-bottom: 1.25rem;
	font-size: 0.95rem;
}

/* ============ Forms ============ */
form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	font-size: 1rem;
	outline: none;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
	background: #fff;
}

form input:focus,
form select:focus {
	border-color: #2cc50d;
	box-shadow: 0 0 0 3px rgba(0, 115, 255, 0.12);
}

.forgot {
	display: inline-block;
	margin: 4px 0 6px;
	text-align: right;
	font-size: 0.9rem;
	color: #2cc50d;
	text-decoration: none;
}

.forgot:hover {
	text-decoration: underline;
}

/* ============ Buttons (matches your HTML: class="btn primary" etc.) ============ */
.btn {
	display: inline-block;
	width: 100%;
	padding: 12px 14px;
	border: none;
	border-radius: 10px;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:active {
	transform: translateY(1px);
}

.btn.primary {
	background: #2cc50d;
	color: #fff;
	box-shadow: 0 6px 16px rgba(21, 255, 0, 0.35);
}

.btn.primary:hover {
	background: #086e04;
	box-shadow: 0 8px 20px rgba(102, 255, 0, 0.45);
}

.btn.secondary {
	background: #f3f5f8;
	color: #102a0f;
	border: 1px solid #e6e9ef;
}

.btn.secondary:hover {
	background: #e8ecf3;
}

/* Entry page button group (index.html) */
.btn-group {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 8px;
}

/* ============ Switch link under forms ============ */
.switch {
	margin: 12px 0 4px;
	font-size: 0.95rem;
	color: #555;
}

.switch a {
	color: #2cc50d;
	text-decoration: none;
	font-weight: 700;
}

.switch a:hover {
	text-decoration: underline;
}

/* ============ Divider ============ */
.divider {
	margin: 18px 0 14px;
	font-size: 0.85rem;
	color: #8c94a5;
	position: relative;
	text-transform: none;
}

.divider::before,
.divider::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 36%;
	height: 1px;
	background: #e6e9ef;
}

.divider::before {
	left: 0;
}

.divider::after {
	right: 0;
}

/* ============ Social buttons row ============ */
.socials {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 14px;
}

.social-btn {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid #e6e9ef;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: box-shadow 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
}

.social-btn:hover {
	border-color: #cfd6e3;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.social-btn:active {
	transform: translateY(1px);
}

.social-btn img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

/* ============ Accessibility / Focus hints ============ */
a:focus,
button:focus,
input:focus {
	outline: none;
}

.alert {
	padding: 14px 18px;
	margin: 12px 0;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	position: relative;
	animation: fadeIn 0.4s ease-in-out;
}

/* Error alert */
.alert.error {
	background: #ffe6e6;
	color: #b30000;
	border: 1px solid #ff9999;
	box-shadow: 0 3px 8px rgba(179, 0, 0, 0.15);
}

/* Success alert */
.alert.success {
	background: #e6ffed;
	color: #006622;
	border: 1px solid #66cc99;
	box-shadow: 0 3px 8px rgba(0, 102, 34, 0.15);
}

/* Little fade animation */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}

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

/* ============ Responsive Tweaks ============ */
@media (max-width: 768px) {
	.auth-page {
		padding: 140px 1rem 36px;
		/* slightly shorter wave space */
	}

	.header-svg svg {
		height: 150px;
	}

	.auth-card {
		padding: 1.6rem;
		border-radius: 16px;
	}

	.auth-card h2 {
		font-size: 1.6rem;
	}
}

@media (max-width: 420px) {
	.auth-card {
		padding: 1.25rem 1rem;
		border-radius: 14px;
	}

	.btn {
		padding: 12px;
	}

	.social-btn {
		width: 44px;
		height: 44px;
	}
}