/*
 * Kilagbe Main Site -- Priority A.3, customer login presentation layer.
 * Additive only: skins the EXISTING native WooCommerce login form
 * (.woocommerce-form-login) on the account page. No markup, fields, or
 * behavior belonging to that form is altered -- only layout/color/spacing.
 * Palette matches the existing Khatian details-page accent
 * (see kilagbe-khatian-details.css: #0E6B4F / #e4efe4 / #bcd0bc).
 */

.woocommerce-account .entry-content {
	max-width: 420px;
	margin: 2.5rem auto;
	padding: 0 1rem;
}

.woocommerce-account .entry-content,
.woocommerce-account .entry-content input,
.woocommerce-account .entry-content button,
.woocommerce-account .entry-content label {
	font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Segoe UI', sans-serif;
}

/*
 * Hides Astra's own page title ("My account") on this page only --
 * scoped strictly to .woocommerce-account so no other page/template is
 * affected. The page still has a real <h1> for accessibility/SEO; this
 * only hides it visually here, per the 2026-10-16 minimal UI redesign.
 */
.woocommerce-account .entry-title {
	display: none;
}

.kilagbe-login-intro {
	text-align: center;
	margin: 0 0 1.5rem;
}

.woocommerce-account .kilagbe-login-logo {
	display: block;
	width: 90px;
	max-width: 90px;
	height: auto;
	margin: 0 auto 0.5rem;
}

/* "Login" heading hidden on this page -- the Google button + form below
   it already make the purpose clear; the big circular logo above serves
   as the page's own heading. Scoped to the login column only. */
.woocommerce-account .u-column1 h2 {
	display: none;
}

/* Tightens the gap left behind by the hidden heading above, and gives
   the Google button breathing room under the logo/subtitle block. */
.woocommerce-account .u-column1 .kilagbe-registration-google {
	margin-top: 0.25rem;
}

.kilagbe-login-eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #0E6B4F;
}

.kilagbe-login-subtitle {
	margin: 0;
	font-size: 0.95rem;
	color: #5C6B64;
	line-height: 1.6;
}

.woocommerce-account .woocommerce > h2 {
	text-align: center;
	font-size: 1.3rem;
	margin: 0 0 1.25rem;
}

.woocommerce-account .woocommerce-form-login {
	background: #fafafa;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	padding: 1.5rem 1.5rem 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.woocommerce-account .woocommerce-form-login .form-row,
.woocommerce-account .woocommerce-form-login .woocommerce-form-row {
	margin: 0;
}

.woocommerce-account .woocommerce-form-login label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: #1B231F;
}

.woocommerce-account .woocommerce-form-login .input-text {
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.85rem;
	border: 1px solid #d5d5d5;
	border-radius: 8px;
	font-size: 1rem;
	background: #fff;
}

.woocommerce-account .woocommerce-form-login .input-text:focus {
	outline: none;
	border-color: #0E6B4F;
	box-shadow: 0 0 0 3px rgba(14, 107, 79, 0.12);
}

.woocommerce-account .woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	color: #1B231F;
	font-weight: 400;
	cursor: pointer;
}

.woocommerce-account .woocommerce-form-login__rememberme input {
	width: auto;
	margin: 0;
}

.woocommerce-account .woocommerce-form-login__submit {
	width: 100%;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	border: 1px solid #0E6B4F;
	background: #0E6B4F;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.woocommerce-account .woocommerce-form-login__submit:hover {
	background: #0A4E3A;
}

.woocommerce-account .woocommerce-LostPassword {
	text-align: center;
	margin: 0.25rem 0 0;
	font-size: 0.88rem;
}

.woocommerce-account .woocommerce-LostPassword a {
	color: #0E6B4F;
	text-decoration: underline;
}

.woocommerce-account .woocommerce-error,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info {
	border-top-color: #0E6B4F;
	border-radius: 8px;
	font-size: 0.9rem;
	padding: 0.85rem 1rem 0.85rem 3rem;
}

/*
 * Two-column layout wrapper (.u-columns/.col-1/.col-2) that WooCommerce
 * uses to lay out login + register side by side, and the register form
 * itself (.woocommerce-form-register) -- mirrors the .woocommerce-form-login
 * treatment above (same selectors/values, additive only).
 *
 * NOTE: the existing .woocommerce-account .entry-content rule above sets
 * max-width: 420px for the single-column login-only view. When the
 * two-column register+login view renders (registration enabled), it needs
 * more horizontal room, so .entry-content:has(.u-columns) widens the
 * container without altering the original single-column rule or its value
 * for the login-only case. (:has() is additive/progressive-enhancement --
 * unsupported browsers simply keep the 420px single-column-width behavior,
 * i.e. the two columns stack/compress but nothing breaks.)
 */
.woocommerce-account .entry-content:has(.u-columns) {
	max-width: 900px;
}

.woocommerce-account .u-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	max-width: 900px;
	margin: 0 auto;
}

.woocommerce-account .u-columns .col-1,
.woocommerce-account .u-columns .col-2 {
	flex: 1 1 320px;
	min-width: 280px;
}

.woocommerce-account .woocommerce-form-register {
	background: #fafafa;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	padding: 1.5rem 1.5rem 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.woocommerce-account .woocommerce-form-register .form-row,
.woocommerce-account .woocommerce-form-register .woocommerce-form-row {
	margin: 0;
}

.woocommerce-account .woocommerce-form-register label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: #1B231F;
}

.woocommerce-account .woocommerce-form-register .input-text {
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.85rem;
	border: 1px solid #d5d5d5;
	border-radius: 8px;
	font-size: 1rem;
	background: #fff;
}

.woocommerce-account .woocommerce-form-register .input-text:focus {
	outline: none;
	border-color: #0E6B4F;
	box-shadow: 0 0 0 3px rgba(14, 107, 79, 0.12);
}

.woocommerce-account .woocommerce-form-register .woocommerce-form-register__submit {
	width: 100%;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	border: 1px solid #0E6B4F;
	background: #0E6B4F;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.woocommerce-account .woocommerce-form-register .woocommerce-form-register__submit:hover {
	background: #0A4E3A;
}

/*
 * Login Page header correction (2026-10-29). Scoped by this stylesheet's
 * own enqueue condition in kilagbe-login-page.php
 * (is_account_page() && !is_user_logged_in()) -- these rules only ever
 * run on the logged-out My Account / Login page. The Global Header
 * template itself (Elementor Library post 44, "Kilagbe Global Header",
 * site-wide "include/general" condition) is NOT edited -- every other
 * page keeps that template byte-identical. Only its already-rendered
 * widgets are hidden/restyled here, purely visually, while they happen
 * to render on this one page.
 *
 * Widget map (from post 44's _elementor_data):
 *   hdr0021 = nav container (খতিয়ান অনুসন্ধান / সার্ভে খতিয়ান / সেবা নির্বাচন করুন)
 *   hdr0032 = wallet balance shortcode
 *   hdr0033 = user/account icon (links to /my-account/)
 *   hdr0034 = cart icon (links to /cart/)
 *   hdr0035 = "লগইন / অ্যাকাউন্ট" text link (also -> /my-account/) -- this
 *             is the one header item restyled into a green button below.
 *   baff909 = site logo widget -- untouched, not referenced anywhere here.
 */

.woocommerce-account .elementor-location-header .elementor-element-hdr0021 {
	display: none !important;
}

.woocommerce-account .elementor-location-header .elementor-element-hdr0032,
.woocommerce-account .elementor-location-header .elementor-element-hdr0033,
.woocommerce-account .elementor-location-header .elementor-element-hdr0034 {
	display: none !important;
}

/* hdr0035 ("লগইন / অ্যাকাউন্ট") restyled as a green login button --
   text, href and underlying widget markup are untouched; only the
   anchor's visual presentation changes. */
.woocommerce-account .elementor-location-header .elementor-element-hdr0035 {
	margin: 0;
}

.woocommerce-account .elementor-location-header .elementor-element-hdr0035 .elementor-heading-title a {
	display: inline-block;
	background: #0E6B4F;
	color: #fff;
	font-weight: 600;
	padding: 0.5rem 1.25rem;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.15s ease;
}

.woocommerce-account .elementor-location-header .elementor-element-hdr0035 .elementor-heading-title a:hover {
	background: #0A4E3A;
	color: #fff;
}

/*
 * Login Page header refinement (2026-10-29, v1.0.7). Compacts the header
 * row (111px -> ~87px on desktop) by trimming container padding only --
 * the logo widget (baff909) and its image size are not touched. With
 * the nav/wallet/user/cart hidden, the logo column (hdr0011) and the
 * button column (hdr0031) shrink to their content and sit at the two
 * ends of a centered max-width 1200px row (flex space-between, no
 * absolute positioning). Same scope as the rules above.
 */
.woocommerce-account .elementor-location-header .elementor-element.elementor-element-hdr0001 {
	--padding-top: 10px;
	--padding-bottom: 10px;
	--padding-left: max(16px, calc((100% - 1200px) / 2));
	--padding-right: max(16px, calc((100% - 1200px) / 2));
	padding: 10px max(16px, calc((100% - 1200px) / 2));
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 1px 4px rgba(27, 35, 31, 0.06);
}

.woocommerce-account .elementor-location-header .elementor-element.elementor-element-hdr0011,
.woocommerce-account .elementor-location-header .elementor-element.elementor-element-hdr0031 {
	--width: auto;
	width: auto;
	flex: 0 0 auto;
	--padding-top: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--padding-right: 0px;
	padding: 0;
	align-items: center;
}

.woocommerce-account .elementor-location-header .elementor-element.elementor-element-hdr0031 {
	justify-content: flex-end;
}

/* <=1024px: the separate mobile-menu component (kilagbe-header-mobile-menu.php,
   global, NOT edited) adds a hamburger + panel that re-expose the hidden nav,
   and on phones it hides hdr0035. On this page only: no hamburger/panel, and
   the Login button stays visible at every width. */
.woocommerce-account .elementor-location-header .kbhm-toggle,
.woocommerce-account .elementor-location-header .kbhm-panel {
	display: none !important;
}

.woocommerce-account .elementor-location-header .elementor-element.elementor-element-hdr0035 {
	display: block !important;
}

@media (max-width: 480px) {
	.woocommerce-account .elementor-location-header .elementor-element-hdr0035 .elementor-heading-title a {
		padding: 0.45rem 0.9rem;
		font-size: 0.95rem;
	}

	.woocommerce-account .entry-content {
		margin: 1.5rem auto;
	}
	.woocommerce-account .woocommerce-form-login {
		padding: 1.25rem 1.1rem 1.5rem;
		border-radius: 10px;
	}
	.woocommerce-account .woocommerce-form-login__submit {
		padding: 0.8rem 1rem;
		font-size: 1.05rem;
	}
	.woocommerce-account .woocommerce-form-login .input-text {
		font-size: 16px; /* prevents iOS auto-zoom on focus */
	}
	.woocommerce-account .u-columns {
		flex-direction: column;
		gap: 1.5rem;
	}
	.woocommerce-account .woocommerce-form-register {
		padding: 1.25rem 1.1rem 1.5rem;
		border-radius: 10px;
	}
	.woocommerce-account .woocommerce-form-register .woocommerce-form-register__submit {
		padding: 0.8rem 1rem;
		font-size: 1.05rem;
	}
	.woocommerce-account .woocommerce-form-register .input-text {
		font-size: 16px; /* prevents iOS auto-zoom on focus */
	}
}