/**
 * Works4U Login & Signup — Figma frames 533:37614 / 533:37704
 */

body.works4u-auth-page {
	margin: 0;
	background: #148332;
	font-family: "Geologica", "Nunito Sans", sans-serif;
	color: #000;
}
body.works4u-auth-page .site-header,
body.works4u-auth-page .site-footer,
body.works4u-auth-page .hp-page__title,
body.works4u-auth-page #user_login_modal,
body.works4u-auth-page #user_register_modal,
body.works4u-auth-page .skip-link {
	display: none !important;
}

body.works4u-auth-page .site-content,
body.works4u-auth-page .content-area,
body.works4u-auth-page .hp-page,
body.works4u-auth-page .hp-page__content {
	margin: 0;
	padding: 0;
	max-width: none;
	width: 100%;
}

.works4u-auth-page-wrap {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: #fff;
}

.works4u-auth-page-wrap--no-header {
	background: #148332;
}

.works4u-auth-page-wrap--no-header .works4u-auth__scene {
	min-height: 100vh;
}

/* —— Header (Figma 64px) —— */
.works4u-auth-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 64px;
	padding: 0 clamp(20px, 4vw, 48px);
	border-bottom: 1px solid #f0f0f0;
	background: #fff;
	flex-shrink: 0;
}

.works4u-auth-header__logo img,
.works4u-auth-header__logo-img {
	display: block;
	height: 32px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
}

.works4u-auth-header__nav {
	display: flex;
	align-items: center;
	gap: clamp(12px, 2vw, 28px);
	flex-wrap: wrap;
	justify-content: flex-end;
}

.works4u-auth-header__nav a,
.works4u-auth-header__nav span {
	font-family: "Geologica", sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.25;
	color: #000;
	text-decoration: none;
}

.works4u-auth-header__nav-active {
	color: #148332;
}

.works4u-auth-header__cta {
	padding: 8px 18px;
	border-radius: 8px;
	background: #148332 !important;
	color: #fff !important;
}

.works4u-auth-header__cta--active {
	background: #148332;
	color: #fff;
	border-radius: 8px;
	padding: 8px 18px;
}

/* —— Full-bleed background scene + white form tile (Figma) —— */
.works4u-auth__scene {
	position: relative;
	flex: 1;
	min-height: calc(100vh - 64px);
	overflow: hidden;
}

.works4u-auth__scene-bg {
	position: absolute;
	inset: 0;
	background-color: #148332;
	background-size: cover;
	background-position: center;
}

.works4u-auth__scene-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		105deg,
		rgba(20, 131, 50, 0.92) 0%,
		rgba(20, 131, 50, 0.75) 42%,
		rgba(20, 131, 50, 0.55) 100%
	);
}

.works4u-auth__scene-inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(24px, 4vw, 64px);
	width: min(1512px, 100%);
	min-height: inherit;
	margin: 0 auto;
	padding: clamp(32px, 5vw, 48px) clamp(20px, 4vw, 48px);
	box-sizing: border-box;
}

/* Logo + tagline sit on the background (left) */
.works4u-auth__brand {
	flex: 1 1 auto;
	max-width: 560px;
	align-self: center;
}

.works4u-auth__brand-logo {
	width: min(396px, 100%);
	height: auto;
	display: block;
	margin-bottom: 20px;
	mix-blend-mode: screen;
}

.works4u-auth__brand-tagline {
	max-width: 420px;
	margin: 0;
	font-family: "Geologica", sans-serif;
	font-size: clamp(18px, 2.2vw, 24px);
	font-weight: 500;
	line-height: 1.45;
	color: #fff;
}

/* White form tile on the right */
.works4u-auth__card {
	flex: 0 0 min(712px, 100%);
	width: min(712px, 100%);
	max-width: 100%;
	align-self: center;
	background: #fff;
	border-radius: 18px;
	padding: clamp(32px, 4vw, 48px) clamp(28px, 4vw, 56px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
	box-sizing: border-box;
}

.works4u-auth__title {
	margin: 0 0 12px;
	font-family: "Geologica", sans-serif;
	font-size: 32px;
	font-weight: 700;
	line-height: 40px;
	color: #000;
	text-align: center;
}

.works4u-auth__title--register {
	font-weight: 600;
}

.works4u-auth__subtitle {
	margin: 0 0 28px;
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
	color: #000;
	text-align: center;
	opacity: 0.85;
}

/* —— Seller / Buyer segmented tabs (Figma) —— */
.works4u-auth__toggle {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	margin-bottom: 24px;
	padding: 4px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	box-sizing: border-box;
}

.works4u-auth__toggle-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	font-family: "Geologica", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 20px;
	color: #4a4a4a;
	text-decoration: none;
	background: transparent;
	border: 0;
	border-radius: 8px;
	transition: background 0.2s ease, color 0.2s ease, font-weight 0.2s ease;
}

.works4u-auth__toggle-btn.is-active {
	background: #ecf7f0;
	color: #1b7c43;
	font-weight: 600;
}

/* —— HivePress forms —— */
.works4u-auth__form-wrap {
	position: relative;
}

.works4u-auth__form-wrap .hp-form {
	margin: 0;
}

.works4u-auth__form-wrap .hp-form__header,
.works4u-auth__form-wrap .hp-form__action--user-register,
.works4u-auth__form-wrap .hp-form__action--user-login,
.works4u-auth__form-wrap .hp-form__action--user-password-request,
.works4u-auth__form-wrap .hp-form__label {
	display: none !important;
}

.works4u-auth__form-wrap--login {
	position: relative;
}

.works4u-auth__form-wrap .hp-form__fields {
	display: grid;
	gap: 16px;
	grid-column: 1 / -1;
}

.works4u-auth__form-wrap--register .hp-form__fields {
	grid-template-columns: 1fr 1fr;
}

.works4u-auth__form-wrap--register .hp-form__field--email,
.works4u-auth__form-wrap--register .hp-form__field--username,
.works4u-auth__form-wrap--register .hp-form__field--password,
.works4u-auth__form-wrap--register .hp-form__field--password-confirmation,
.works4u-auth__form-wrap--register .hp-form__field--hidden,
.works4u-auth__form-wrap--register .hp-form__footer {
	grid-column: 1 / -1;
}

.works4u-auth__form-wrap .hp-field--text,
.works4u-auth__form-wrap .hp-field--email,
.works4u-auth__form-wrap .hp-field--password {
	width: 100%;
	min-height: 48px;
	border: 1px solid #d6d6d6;
	border-radius: 8px;
	padding: 12px 16px;
	font-family: "Geologica", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 17.5px;
	box-sizing: border-box;
	background: #fff;
	color: #000;
}

.works4u-auth__form-wrap .hp-field--text::placeholder,
.works4u-auth__form-wrap .hp-field--email::placeholder,
.works4u-auth__form-wrap .hp-field--password::placeholder {
	color: #999;
}

.works4u-auth__form-wrap .hp-field__icon {
	right: 12px;
}

/* Remember me + forgot password row */
.works4u-auth__form-wrap--login .hp-form__field--checkbox {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 4px 0 0;
}

.works4u-auth__form-wrap--login .hp-form__field--checkbox .hp-field--checkbox {
	font-family: "Geologica", sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #000;
}

.works4u-auth__forgot-link {
	font-family: "Geologica", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 20px;
	color: #148332;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
}

.works4u-auth__forgot-link:hover {
	text-decoration: underline;
}

.works4u-auth__form-wrap .hp-form__footer {
	grid-column: 1 / -1;
	margin: 8px 0 0;
	padding: 0;
}

.works4u-auth__form-wrap .hp-form__button,
.works4u-auth__form-wrap .hp-field--submit {
	width: 100%;
	min-height: 56px;
	border: 0;
	border-radius: 12px;
	padding: 14px 20px;
	background: #148332 !important;
	color: #fff !important;
	font-family: "Geologica", sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 25px;
	cursor: pointer;
}

.works4u-auth__form-wrap .hp-form__button:hover,
.works4u-auth__form-wrap .hp-field--submit:hover {
	background: #0f6b28 !important;
}

.works4u-auth__forgot-panel {
	margin: 16px 0;
	padding: 16px;
	border: 1px solid #d6d6d6;
	border-radius: 8px;
	background: #f5f8f6;
}

.works4u-auth__forgot-panel .hp-form__description {
	font-size: 14px;
	margin-bottom: 12px;
}

/* —— Or divider —— */
.works4u-auth__divider {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 24px 0 20px;
	color: #000;
	font-size: 16px;
	font-weight: 400;
}

.works4u-auth__divider::before,
.works4u-auth__divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #d6d6d6;
}

/* —— Social buttons —— */
.works4u-auth__social {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.works4u-auth__social-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid #d6d6d6;
	background: #fff;
	font-family: "Geologica", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 20px;
	color: #000;
	cursor: not-allowed;
	opacity: 0.85;
}

.works4u-auth__social-btn--apple {
	background: #1d1b20;
	border-color: #1d1b20;
	color: #fff;
}

.works4u-auth__social-btn svg {
	flex-shrink: 0;
}

/* —— Footer switch link —— */
.works4u-auth__switch {
	margin: 24px 0 0;
	text-align: center;
	font-family: "Geologica", sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 25px;
	color: #000;
}

.works4u-auth__switch a {
	color: #148332;
	font-weight: 600;
	text-decoration: none;
	margin-left: 4px;
}

.works4u-auth__switch a:hover {
	text-decoration: underline;
}

@media (max-width: 960px) {
	.works4u-auth-header__nav a:not(.works4u-auth-header__cta):not([href*="login"]):not([href*="register"]) {
		display: none;
	}

	.works4u-auth__scene-inner {
		flex-direction: column;
		align-items: stretch;
		justify-content: center;
		padding-top: 24px;
		padding-bottom: 32px;
	}

	.works4u-auth__brand {
		max-width: none;
		text-align: center;
	}

	.works4u-auth__brand-logo {
		margin-left: auto;
		margin-right: auto;
	}

	.works4u-auth__brand-tagline {
		max-width: none;
		margin-left: auto;
		margin-right: auto;
	}

	.works4u-auth__card {
		flex: 1 1 auto;
		width: 100%;
	}

	.works4u-auth__form-wrap--register .hp-form__fields {
		grid-template-columns: 1fr;
	}

	.works4u-auth__social {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.works4u-auth__form-wrap--login .hp-form__field--checkbox {
		flex-direction: column;
		align-items: flex-start;
	}
}
