/* Account login page — Inter UI, Playfair titles, aligned breadcrumb + cards. */

body.woocommerce-account:has(#customer_login) {
	--tm-ink: #1c1917;
	--tm-brand: #9a5200;
	--tm-brand-hover: #7a4100;
	--tm-muted: #57534e;
	--tm-line: #e7e5e4;
	--tm-soft: #faf7f2;
	--tm-font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--tm-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--tm-content: 1040px;
}

body.woocommerce-account:has(#customer_login) #st-content-wrapper {
	background: var(--tm-soft);
	font-family: var(--tm-font);
	color: var(--tm-ink);
}

/* Breadcrumb — same type and width as the auth cards */
body.woocommerce-account:has(#customer_login) #st-content-wrapper .st-breadcrumb {
	padding: 18px 0 0;
	border-bottom: 0;
	background: transparent;
}

body.woocommerce-account:has(#customer_login) #st-content-wrapper .st-breadcrumb .container,
body.woocommerce-account:has(#customer_login) #st-content-wrapper > .container {
	width: 100% !important;
	max-width: var(--tm-content) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 20px !important;
	padding-right: 20px !important;
}

body.woocommerce-account:has(#customer_login) #st-content-wrapper .st-breadcrumb ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	background: transparent !important;
	font-family: var(--tm-font) !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	color: var(--tm-muted);
}

body.woocommerce-account:has(#customer_login) #st-content-wrapper .st-breadcrumb ul li {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 0 10px 0 0;
	font-family: var(--tm-font) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	color: var(--tm-muted) !important;
}

body.woocommerce-account:has(#customer_login) #st-content-wrapper .st-breadcrumb ul li:first-child {
	padding-left: 0;
}

body.woocommerce-account:has(#customer_login) #st-content-wrapper .st-breadcrumb ul li:not(:last-child)::after {
	content: "/" !important;
	position: static !important;
	top: auto !important;
	right: auto !important;
	margin: 0 0 0 10px !important;
	width: auto !important;
	height: auto !important;
	background: none !important;
	color: #a8a29e;
	font-size: 13px;
	font-weight: 400;
}

body.woocommerce-account:has(#customer_login) #st-content-wrapper .st-breadcrumb ul li a {
	font-family: var(--tm-font) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	color: var(--tm-brand) !important;
	text-decoration: none !important;
}

body.woocommerce-account:has(#customer_login) #st-content-wrapper .st-breadcrumb ul li a:hover {
	color: var(--tm-brand-hover) !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

body.woocommerce-account:has(#customer_login) #st-content-wrapper .st-breadcrumb ul li span {
	font-family: var(--tm-font) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: var(--tm-ink) !important;
}

body.woocommerce-account:has(#customer_login) #st-content-wrapper .st-breadcrumb ul li a:focus-visible,
body.woocommerce-account:has(#customer_login) .woocommerce a:focus-visible,
body.woocommerce-account:has(#customer_login) .woocommerce button:focus-visible,
body.woocommerce-account:has(#customer_login) .woocommerce input:focus-visible {
	outline: 3px solid var(--tm-brand);
	outline-offset: 3px;
	border-radius: 6px;
}

/* Auth cards shell */
body.woocommerce-account:has(#customer_login) .woocommerce {
	max-width: none;
	margin: 0;
	padding: 20px 0 72px;
	font-family: var(--tm-font) !important;
	color: var(--tm-ink);
}

html body.woocommerce-account .woocommerce #customer_login.col2-set {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
	width: 100%;
	margin: 0;
}

html body.woocommerce-account .woocommerce #customer_login.col2-set::before,
html body.woocommerce-account .woocommerce #customer_login.col2-set::after {
	display: none;
	content: none;
}

html body.woocommerce-account .woocommerce #customer_login .u-column1,
html body.woocommerce-account .woocommerce #customer_login .u-column2 {
	float: none;
	display: flex;
	flex-direction: column;
	width: auto;
	margin: 0;
	padding: 32px 28px 28px;
	background: #fff;
	border: 1px solid var(--tm-line);
	border-radius: 16px;
	box-shadow: 0 10px 28px rgba(28, 25, 23, 0.06);
	font-family: var(--tm-font) !important;
}

html body.woocommerce-account .woocommerce #customer_login h2 {
	margin: 0 0 10px;
	font-family: var(--tm-font) !important;
	font-size: clamp(26px, 2.8vw, 32px) !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: -0.02em;
	color: var(--tm-ink) !important;
}

html body.woocommerce-account .woocommerce #customer_login .tm-auth-lead {
	margin: 0 0 24px;
	max-width: 40ch;
	font-family: var(--tm-font) !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.55 !important;
	color: var(--tm-muted) !important;
}

html body.woocommerce-account .woocommerce #customer_login form.woocommerce-form {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 18px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	font-family: var(--tm-font) !important;
}

html body.woocommerce-account .woocommerce #customer_login form .form-row {
	float: none;
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: var(--tm-font) !important;
}

html body.woocommerce-account .woocommerce #customer_login form .form-row > label:not(.woocommerce-form__label-for-checkbox) {
	display: block;
	margin: 0 0 8px;
	font-family: var(--tm-font) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	color: var(--tm-ink) !important;
}

html body.woocommerce-account .woocommerce #customer_login .required {
	color: var(--tm-brand) !important;
	text-decoration: none !important;
	border: 0;
}

html body.woocommerce-account .woocommerce #customer_login .input-text,
html body.woocommerce-account .woocommerce #customer_login input[type="text"],
html body.woocommerce-account .woocommerce #customer_login input[type="email"],
html body.woocommerce-account .woocommerce #customer_login input[type="password"] {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid #d6d3d1;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: var(--tm-ink) !important;
	font-family: var(--tm-font) !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
}

html body.woocommerce-account .woocommerce #customer_login .password-input {
	display: block;
	width: 100%;
}

html body.woocommerce-account .woocommerce #customer_login .password-input .input-text {
	padding-right: 52px;
}

html body.woocommerce-account .woocommerce #customer_login .input-text:focus {
	border-color: var(--tm-brand);
	outline: 3px solid rgba(154, 82, 0, 0.35);
	outline-offset: 1px;
}

html body.woocommerce-account .woocommerce #customer_login .show-password-input {
	top: 50%;
	right: 4px;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: translateY(-50%);
	border: 0;
	border-radius: 8px;
	background: transparent;
}

html body.woocommerce-account .woocommerce #customer_login .woocommerce-form-login > .form-row:has(button),
html body.woocommerce-account .woocommerce #customer_login .woocommerce-form-register > .form-row:has(button) {
	margin-top: auto;
	padding-top: 8px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}

/* WooCommerce's clearfix ::after is a flex item here and adds a gap under the button */
html body.woocommerce-account .woocommerce #customer_login .woocommerce-form-register > .form-row:has(button)::after {
	content: none;
	display: none;
}

/* Login: unwrap the button row so "Lost your password?" sits above "Log in";
   the button then ends the card, level with "Register". */
html body.woocommerce-account .woocommerce #customer_login .woocommerce-form-login > .form-row:has(button) {
	display: contents;
}

html body.woocommerce-account .woocommerce #customer_login .woocommerce-form-login .woocommerce-form-login__rememberme {
	margin-top: auto;
}

html body.woocommerce-account .woocommerce #customer_login .woocommerce-form-login .lost_password {
	order: 1;
	margin: -6px 0 0;
	text-align: left;
}

html body.woocommerce-account .woocommerce #customer_login .woocommerce-form-login .woocommerce-form-login__submit {
	order: 2;
}

html body.woocommerce-account .woocommerce #customer_login .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	margin: 0;
	font-family: var(--tm-font) !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	color: var(--tm-ink) !important;
	cursor: pointer;
}

html body.woocommerce-account .woocommerce #customer_login .woocommerce-form-login__rememberme input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--tm-brand);
	flex: 0 0 auto;
}

html body.woocommerce-account .woocommerce #customer_login button.button {
	float: none;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--tm-brand) !important;
	color: #fff !important;
	font-family: var(--tm-font) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.01em;
	text-transform: none !important;
	cursor: pointer;
	transition: background-color 180ms ease;
}

html body.woocommerce-account .woocommerce #customer_login button.button:hover {
	background: var(--tm-brand-hover) !important;
	color: #fff !important;
}

html body.woocommerce-account .woocommerce #customer_login .lost_password {
	margin: 4px 0 0;
	font-family: var(--tm-font) !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
	text-align: center;
}

html body.woocommerce-account .woocommerce #customer_login .lost_password a,
html body.woocommerce-account .woocommerce #customer_login .woocommerce-privacy-policy-text a {
	color: var(--tm-brand) !important;
	font-family: var(--tm-font) !important;
	font-weight: 600 !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

html body.woocommerce-account .woocommerce #customer_login .lost_password a:hover,
html body.woocommerce-account .woocommerce #customer_login .woocommerce-privacy-policy-text a:hover {
	color: var(--tm-brand-hover) !important;
}

html body.woocommerce-account .woocommerce #customer_login .woocommerce-privacy-policy-text,
html body.woocommerce-account .woocommerce #customer_login .woocommerce-privacy-policy-text p,
html body.woocommerce-account .woocommerce #customer_login .woocommerce-form-register > p {
	margin: 0;
	font-family: var(--tm-font) !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.55 !important;
	color: var(--tm-muted) !important;
}

html body.woocommerce-account .woocommerce #customer_login .h-captcha {
	margin: 4px 0 0;
}

body.woocommerce-account:has(#customer_login) .woocommerce-notices-wrapper:not(:empty) {
	margin: 0 0 20px;
}

body.woocommerce-account:has(#customer_login) .woocommerce-error,
body.woocommerce-account:has(#customer_login) .woocommerce-message,
body.woocommerce-account:has(#customer_login) .woocommerce-info {
	margin: 0 0 20px;
	padding: 14px 16px 14px 18px;
	border: 0;
	border-left: 4px solid var(--tm-brand);
	border-radius: 12px;
	background: #fff;
	color: var(--tm-ink);
	font-family: var(--tm-font) !important;
	font-size: 15px !important;
	line-height: 1.5;
	list-style: none;
}

body.woocommerce-account:has(#customer_login) .woocommerce-error {
	border-left-color: #9f1239;
	background: #fff1f2;
}

body.woocommerce-account:has(#customer_login) .woocommerce-error a,
body.woocommerce-account:has(#customer_login) .woocommerce-message a,
body.woocommerce-account:has(#customer_login) .woocommerce-info a {
	color: var(--tm-brand);
	font-weight: 600;
}

@media (max-width: 767px) {
	body.woocommerce-account:has(#customer_login) #st-content-wrapper .st-breadcrumb .container,
	body.woocommerce-account:has(#customer_login) #st-content-wrapper > .container {
		padding-left: 16px;
		padding-right: 16px;
	}

	body.woocommerce-account:has(#customer_login) .woocommerce {
		padding: 16px 0 48px;
	}

	html body.woocommerce-account .woocommerce #customer_login.col2-set {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	html body.woocommerce-account .woocommerce #customer_login .u-column1,
	html body.woocommerce-account .woocommerce #customer_login .u-column2 {
		padding: 24px 18px 20px;
	}

	html body.woocommerce-account .woocommerce #customer_login .woocommerce-form-login > .form-row:has(button),
	html body.woocommerce-account .woocommerce #customer_login .woocommerce-form-register > .form-row:has(button) {
		margin-top: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html body.woocommerce-account .woocommerce #customer_login button.button {
		transition: none;
	}
}
