/**
 * MY/SOLIA — Login & Register page.
 *
 * Presentation only. Every form, nonce, hidden field and AJAX handler is
 * Houzez's and is left exactly as it ships — this file restyles the markup
 * around them, so login, registration, password reset, email verification
 * and social sign-in keep working untouched.
 *
 * Scoped to body.page-template-template-login so nothing here can leak onto
 * the rest of the site.
 */

body.page-template-template-login {
	--lg-primary: #57a0d3;
	--lg-primary-600: #4189bd;
	--lg-primary-050: #eef5fb;
	--lg-ink: #1c2d41;
	--lg-ink-2: #40556d;
	--lg-muted: #6b7c8f;
	--lg-faint: #93a2b1;
	--lg-border: #e2e7ec;
	--lg-border-strong: #cfd7df;
	--lg-radius: 12px;
	--lg-radius-sm: 8px;
	--lg-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* ---------- Page ground ------------------------------------------------ */

/*
 * The stock page floats a narrow form in a large empty white area. A dark
 * ground anchors it and matches the data band on the homepage, so the two
 * read as the same product.
 */
body.page-template-template-login .blog-wrap {
	position: relative;
	background: linear-gradient(168deg, #14283e 0%, #0d1b2a 62%, #101f31 100%);
	padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0 clamp(3rem, 2rem + 4vw, 6rem);
	overflow: hidden;
}

/* Faint plotting grid, same motif as the homepage market band. */
body.page-template-template-login .blog-wrap::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 78%);
	-webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 78%);
	pointer-events: none;
}

body.page-template-template-login .blog-wrap > .container {
	position: relative;
}

/* ---------- Heading ---------------------------------------------------- */

body.page-template-template-login .login-page-title {
	margin-bottom: 1.75rem;
}

body.page-template-template-login .login-page-title h1 {
	font-family: var(--lg-font);
	/* The WP page is titled "login" in lower case; capitalise it here rather
	   than injecting text via CSS, which would be unselectable and untranslatable. */
	text-transform: capitalize;
	font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	color: #fff;
}

/* ---------- The card --------------------------------------------------- */

body.page-template-template-login .login-form-page-wrap {
	width: min(100%, 460px);
	margin-inline: auto;
	background: #fff;
	border-radius: var(--lg-radius);
	box-shadow:
		0 10px 24px rgba(6, 16, 26, .28),
		0 24px 60px rgba(6, 16, 26, .32);
	padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
	font-family: var(--lg-font);
}

/* ---------- Login / Register tabs -------------------------------------- */

body.page-template-template-login .login-register-tabs .nav-tabs {
	display: flex;
	gap: 0.25rem;
	padding: 0.25rem;
	margin: 0 0 1.5rem;
	background: #f1f4f7;
	border: 0;
	border-radius: var(--lg-radius-sm);
}

body.page-template-template-login .login-register-tabs .nav-item {
	flex: 1 1 0;
	margin: 0;
}

body.page-template-template-login .login-register-tabs .nav-link {
	display: block;
	width: 100%;
	text-align: center;
	border: 0;
	border-radius: 6px;
	padding: 0.6rem 0.75rem;
	font-size: 0.94rem;
	font-weight: 700;
	color: var(--lg-muted);
	background: transparent;
	transition: background-color .16s ease, color .16s ease;
}

body.page-template-template-login .login-register-tabs .nav-link:hover {
	color: var(--lg-ink);
}

body.page-template-template-login .login-register-tabs .nav-link.active {
	background: #fff;
	color: var(--lg-primary-600);
	box-shadow: 0 1px 3px rgba(28, 45, 65, .12);
}

/* ---------- Fields ------------------------------------------------------ */

body.page-template-template-login .form-group {
	margin-bottom: 0.85rem;
}

body.page-template-template-login .form-control {
	height: auto;
	padding: 0.78rem 0.9rem;
	font-family: var(--lg-font);
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--lg-ink);
	background: #fff;
	border: 1px solid var(--lg-border-strong);
	border-radius: var(--lg-radius-sm);
	box-shadow: none;
	transition: border-color .16s ease, box-shadow .16s ease;
}

body.page-template-template-login .form-control::placeholder {
	color: var(--lg-faint);
	font-weight: 500;
}

body.page-template-template-login .form-control:focus {
	border-color: var(--lg-primary);
	box-shadow: 0 0 0 3px rgba(87, 160, 211, .18);
	outline: none;
}

/* Houzez puts a leading icon on these two; keep room for it. */
body.page-template-template-login .username-field .form-control,
body.page-template-template-login .password-field .form-control {
	padding-left: 2.4rem;
}

body.page-template-template-login .form-group-field {
	position: relative;
}

body.page-template-template-login .form-group-field::before {
	color: var(--lg-faint);
}

/* ---------- Remember me / lost password -------------------------------- */

body.page-template-template-login .form-tools {
	margin: 0.9rem 0 1.25rem;
	font-size: 0.9rem;
}

body.page-template-template-login .form-tools,
body.page-template-template-login .control--checkbox {
	color: var(--lg-ink-2);
}

body.page-template-template-login .form-tools a {
	color: var(--lg-primary-600);
	font-weight: 600;
}

body.page-template-template-login .form-tools a:hover {
	color: var(--lg-primary-600);
	text-decoration: underline;
}

/* ---------- Buttons ----------------------------------------------------- */

body.page-template-template-login .btn-full-width {
	width: 100%;
}

body.page-template-template-login .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: 0.85rem 1.25rem;
	border-radius: var(--lg-radius-sm);
	font-family: var(--lg-font);
	font-size: 0.97rem;
	font-weight: 700;
	line-height: 1.2;
	transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

body.page-template-template-login .btn-primary,
body.page-template-template-login #houzez-login-btn {
	background: var(--lg-primary);
	border-color: var(--lg-primary);
	color: #fff;
}

body.page-template-template-login .btn-primary:hover,
body.page-template-template-login #houzez-login-btn:hover {
	background: var(--lg-primary-600);
	border-color: var(--lg-primary-600);
	color: #fff;
}

body.page-template-template-login .btn:focus-visible {
	outline: 3px solid rgba(87, 160, 211, .45);
	outline-offset: 2px;
}

/* ---------- Social sign-in --------------------------------------------- */

/*
 * Shipped as two saturated brand-coloured blocks that compete with the real
 * primary action. Quietened to outlined buttons so the hierarchy reads:
 * sign in first, alternatives second.
 */
body.page-template-template-login .social-login-wrap {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--lg-border);
	display: grid;
	gap: 0.6rem;
}


body.page-template-template-login .btn-facebook-login,
body.page-template-template-login .btn-google-plus-lined {
	background: #fff;
	border: 1px solid var(--lg-border-strong);
	color: var(--lg-ink);
}

body.page-template-template-login .btn-facebook-login:hover,
body.page-template-template-login .btn-google-plus-lined:hover {
	background: var(--lg-primary-050);
	border-color: var(--lg-primary);
	color: var(--lg-ink);
}

body.page-template-template-login .google-icon {
	width: 18px;
	height: 18px;
}

/* ---------- Messages ---------------------------------------------------- */

body.page-template-template-login #hz-login-messages:not(:empty),
body.page-template-template-login .hz-social-messages:not(:empty) {
	margin-bottom: 1rem;
	padding: 0.75rem 0.9rem;
	border-radius: var(--lg-radius-sm);
	background: var(--lg-primary-050);
	border: 1px solid #d8e8f5;
	font-size: 0.9rem;
	color: var(--lg-ink-2);
}

/* ---------- Small screens ---------------------------------------------- */

@media (max-width: 575.98px) {
	body.page-template-template-login .login-form-page-wrap {
		width: 100%;
		padding: 1.25rem;
	}

	body.page-template-template-login .form-tools .d-flex {
		flex-direction: column;
		gap: 0.5rem;
		align-items: flex-start;
	}
}
