/**
 * MaxX Capitals - Custom Sign In / Sign Up page styles
 *
 * Loaded only on the "MaxX Sign In / Sign Up" page template.
 * Uses the existing Houzez/MaxX brand palette.
 */

:root {
	--maxx-green: #0b6230;
	--maxx-green-dark: #0a5429;
	--maxx-green-accent: #36aa71;
	--maxx-green-light: #c6ddd0;
	--maxx-off-white: #f7fbf9;
	--maxx-ink: #1c2b23;
	--maxx-muted: #636363;
	--maxx-border: #e0e0e0;
}

/* Reset the page chrome for a full-screen experience */
body.maxx-auth-body {
	margin: 0;
	background: var(--maxx-off-white);
	color: var(--maxx-ink);
}

body.maxx-auth-body #wpadminbar {
	position: fixed;
}

.maxx-auth {
	display: flex;
	min-height: 100vh;
	width: 100%;
}

/* ---------- Media / brand panel ---------- */
.maxx-auth__media {
	position: relative;
	flex: 1 1 55%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.maxx-auth__media-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(10, 84, 41, 0.15) 0%,
		rgba(11, 98, 48, 0.35) 55%,
		rgba(10, 40, 24, 0.85) 100%
	);
}

.maxx-auth__media-content {
	position: relative;
	z-index: 2;
	padding: 3.5rem;
	color: #fff;
	max-width: 620px;
}

.maxx-auth__logo {
	display: inline-block;
	margin-bottom: auto;
}

.maxx-auth__logo img {
	max-height: 56px;
	width: auto;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.maxx-auth__logo-text {
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
}

.maxx-auth__tagline h2 {
	font-size: clamp(1.6rem, 2.4vw, 2.4rem);
	line-height: 1.2;
	font-weight: 700;
	margin: 0 0 0.75rem;
	color: #fff;
}

.maxx-auth__tagline p {
	font-size: 1.05rem;
	line-height: 1.6;
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
}

/* Pin the logo to the top-left of the media panel */
.maxx-auth__media-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 60vh;
}

/* ---------- Form panel ---------- */
.maxx-auth__panel {
	flex: 1 1 45%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2.5rem 1.5rem;
	background: var(--maxx-off-white);
	overflow-y: auto;
}

.maxx-auth__card {
	width: 100%;
	max-width: 420px;
}

.maxx-auth__mobile-logo {
	display: none;
	text-align: center;
	margin-bottom: 1.5rem;
}

.maxx-auth__mobile-logo img {
	max-height: 52px;
	width: auto;
}

.maxx-auth__mobile-logo .maxx-auth__logo-text {
	color: var(--maxx-green);
}

.maxx-auth__head {
	margin-bottom: 1.75rem;
}

.maxx-auth__head h1 {
	font-size: 1.6rem;
	font-weight: 700;
	margin: 0 0 0.4rem;
	color: var(--maxx-ink);
}

.maxx-auth__head p {
	font-size: 0.95rem;
	color: var(--maxx-muted);
	margin: 0;
}

/* ---------- Tabs ---------- */
.maxx-auth__tabs .nav-tabs {
	border-bottom: 1px solid var(--maxx-border);
	margin-bottom: 1.5rem;
	gap: 0.5rem;
}

.maxx-auth__tabs .nav-tabs .nav-link {
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	color: var(--maxx-muted);
	font-weight: 600;
	padding: 0.5rem 0.25rem;
	margin-bottom: -1px;
	cursor: pointer;
}

.maxx-auth__tabs .nav-tabs .nav-link:hover {
	color: var(--maxx-green);
}

.maxx-auth__tabs .nav-tabs .nav-link.active {
	color: var(--maxx-green);
	border-bottom-color: var(--maxx-green);
	background: none;
}

/* ---------- Form fields ---------- */
.maxx-auth .form-group {
	margin-bottom: 1rem;
}

.maxx-auth .form-control,
.maxx-auth .selectpicker + .btn,
.maxx-auth .bootstrap-select .btn {
	height: 48px;
	border: 1px solid var(--maxx-border);
	border-radius: 10px;
	padding: 0.6rem 0.9rem;
	font-size: 0.95rem;
	background-color: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.maxx-auth .form-control:focus {
	border-color: var(--maxx-green-accent);
	box-shadow: 0 0 0 3px rgba(54, 170, 113, 0.18);
	outline: none;
}

/* ---------- Buttons ---------- */
.maxx-auth .btn-primary,
.maxx-auth .btn-login,
.maxx-auth .btn-register {
	background-color: var(--maxx-green);
	border-color: var(--maxx-green);
	color: #fff;
	height: 48px;
	border-radius: 10px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.maxx-auth .btn-primary:hover,
.maxx-auth .btn-login:hover,
.maxx-auth .btn-register:hover {
	background-color: var(--maxx-green-dark);
	border-color: var(--maxx-green-dark);
}

.maxx-auth .btn-outline {
	background: transparent;
	border: 1px solid var(--maxx-border);
	color: var(--maxx-ink);
	height: 48px;
	border-radius: 10px;
	font-weight: 600;
}

.maxx-auth .btn-outline:hover {
	border-color: var(--maxx-green);
	color: var(--maxx-green);
}

.maxx-auth__loggedin-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* ---------- Form tools / links ---------- */
.maxx-auth .form-tools {
	margin: 0.75rem 0 1.25rem;
	font-size: 0.9rem;
}

.maxx-auth .form-tools a {
	color: var(--maxx-green);
	text-decoration: none;
}

.maxx-auth .form-tools a:hover {
	text-decoration: underline;
}

.maxx-auth .control--checkbox {
	color: var(--maxx-muted);
	font-size: 0.9rem;
}

/* ---------- Social login ---------- */
.maxx-auth .social-login-wrap {
	margin-top: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.maxx-auth .social-login-wrap .btn {
	height: 46px;
	border-radius: 10px;
}

/* ---------- Messages ---------- */
.maxx-auth .hz-social-messages:not(:empty) {
	margin-bottom: 1rem;
}

/* ---------- Sign in with Google (Site Kit) ---------- */
/*
 * Hide Houzez's own native Google login button on this page: it is not
 * configured (empty client ID in theme options) and would duplicate the
 * Site Kit "Sign in with Google" button we render below. Scoped to the
 * custom auth page so the header/modal elsewhere are unaffected.
 */
.maxx-auth .hz-google-login {
	display: none !important;
}

/* Sit the Site Kit button in Houzez's social-login stack (matches its gap). */
.maxx-auth__oauth {
	margin-top: 0.6rem;
}

.maxx-auth .social-login-wrap + .maxx-auth__oauth {
	margin-top: 0.6rem;
}

.maxx-auth__google {
	display: flex;
	justify-content: center;
}

/* Let the Site Kit button fill the card width, consistent with the form. */
.maxx-auth__google .googlesitekit-sign-in-with-google__frontend-output-button {
	max-width: 100%;
	width: 100%;
}

.maxx-auth__google iframe {
	margin: 0 auto !important;
}

/* ---------- Back link ---------- */
.maxx-auth__back {
	display: inline-block;
	margin-top: 1.75rem;
	font-size: 0.9rem;
	color: var(--maxx-muted);
	text-decoration: none;
}

.maxx-auth__back:hover {
	color: var(--maxx-green);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
	.maxx-auth {
		flex-direction: column;
	}

	.maxx-auth__media {
		flex: 0 0 auto;
		min-height: 240px;
	}

	.maxx-auth__media-content {
		min-height: 0;
		padding: 2rem 1.75rem;
	}

	.maxx-auth__tagline {
		display: none;
	}

	.maxx-auth__panel {
		flex: 1 1 auto;
		padding: 2rem 1.25rem 3rem;
	}
}

@media (max-width: 575.98px) {
	.maxx-auth__media {
		min-height: 160px;
	}

	.maxx-auth__media-content {
		padding: 1.5rem;
	}

	.maxx-auth__logo img {
		max-height: 44px;
	}

	.maxx-auth__mobile-logo {
		display: block;
	}
}
