/**
 * Account access screen (login / register / lost password) on the logged-out
 * My Account page. Design: "GetWine - Account Access (Heritage Pour)".
 */

/* Hide the theme's "My Account" page heading; the card has its own. */
body.gwt-account-access .woocommerce-account .entry-header,
body.gwt-account-access article.page > .entry-header {
	display: none;
}

body.gwt-account-access .woocommerce-notices-wrapper {
	max-width: 1040px;
	margin: 0 auto;
}

body.gwt-account-access .woocommerce-notices-wrapper .woocommerce-error,
body.gwt-account-access .woocommerce-notices-wrapper .woocommerce-message,
body.gwt-account-access .woocommerce-notices-wrapper .woocommerce-info {
	border-radius: 12px;
	margin-bottom: 20px;
}

.gwt-account {
	padding: clamp(12px, 2vw, 24px) 0 clamp(28px, 4vw, 52px);
	font-family: 'General Sans', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: #211C16;
	-webkit-font-smoothing: antialiased;
}

.gwt-account *,
.gwt-account *::before,
.gwt-account *::after {
	box-sizing: border-box;
}

.gwt-account__card {
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	max-width: 1040px;
	margin: 0 auto;
	border: 1px solid #EEE7DA;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(33, 28, 22, 0.08);
	background: #FFFFFF;
}

/* Brand panel ------------------------------------------------------------ */

.gwt-account__brand {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(32px, 4vw, 52px);
	background: linear-gradient(150deg, #B42B2E 0%, #9E2427 55%, #7C1F22 100%);
	color: #F8F5EE;
	overflow: hidden;
}

.gwt-account__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(248, 245, 238, 0.75);
}

.gwt-account__dot {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: #8FAE1E;
}

.gwt-account__brand .gwt-account__headline {
	margin: 0;
	font-family: 'Clash Display', 'General Sans', sans-serif;
	font-weight: 600;
	font-size: clamp(34px, 4vw, 52px);
	line-height: 0.9;
	letter-spacing: -0.03em;
	color: #F8F5EE;
	text-transform: none;
}

.gwt-account__accent {
	color: #8FAE1E;
}

.gwt-account__brand .gwt-account__intro {
	max-width: 34ch;
	margin: 18px 0 1.5em; /* one empty line above the perks list */
	font-size: clamp(15px, 1.6vw, 18px);
	line-height: 1.5;
	color: rgba(248, 245, 238, 0.85);
}

.gwt-account__perks {
	display: flex;
	flex-direction: column;
	gap: 14px;
	list-style: none;
	margin: auto 0 0;
	padding: 34px 0 0;
}

.gwt-account__perks li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: 15px;
	color: rgba(248, 245, 238, 0.9);
}

.gwt-account__perk-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border: 1px solid rgba(248, 245, 238, 0.2);
	border-radius: 999px;
	background: rgba(248, 245, 238, 0.12);
	font-size: 15px;
}

/* Form panel ------------------------------------------------------------- */

.gwt-account__forms {
	padding: clamp(30px, 4vw, 52px);
	background: #FFFFFF;
}

.gwt-account__panel[hidden] {
	display: none;
}

.gwt-account__forms .gwt-account__title {
	margin: 0;
	padding: 0;
	font-family: 'Clash Display', 'General Sans', sans-serif;
	font-weight: 600;
	font-size: clamp(26px, 3vw, 34px);
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: #211C16;
	text-transform: none;
}

.gwt-account__forms .gwt-account__lead {
	margin: 8px 0 26px;
	font-size: 15px;
	line-height: 1.5;
	color: #5C554A;
}

.gwt-account__forms .gwt-account__lead a,
.gwt-account__forms .gwt-account__foot a,
.gwt-account .gwt-account__link {
	color: #B42B2E;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.gwt-account__forms .gwt-account__lead a:hover,
.gwt-account__forms .gwt-account__foot a:hover,
.gwt-account .gwt-account__link:hover {
	color: #8FAE1E;
}

.gwt-account__fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.gwt-account__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.gwt-account .gwt-account__label {
	display: block;
	margin: 0;
	font-weight: 600;
}

.gwt-account .gwt-account__label > span {
	display: block;
	margin-bottom: 7px;
	font-size: 13px;
	font-weight: 600;
	color: #3D3A34;
}

body.gwt-account-access .gwt-account input.gwt-account__field {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 13px 15px;
	border: 1px solid #E2D9C7;
	border-radius: 10px;
	background: #FBFAF7;
	box-shadow: none;
	font-family: 'General Sans', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.4;
	color: #211C16;
	outline: none;
}

body.gwt-account-access .gwt-account input.gwt-account__field:focus {
	border-color: #2F5D50;
	background: #FFFFFF;
	box-shadow: none;
}

body.gwt-account-access .gwt-account input.gwt-account__field::placeholder {
	color: #A79C8A;
	opacity: 1;
}

.gwt-account__forms .gwt-account__hint {
	margin: -4px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: #8A8272;
}

.gwt-account__options {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 18px 0 24px;
}

/* Out-ranks WooCommerce's `.woocommerce .woocommerce-form-login
   .woocommerce-form-login__rememberme { display: inline-block }`. */
body.gwt-account-access .gwt-account label.gwt-account__check {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	color: #3D3A34;
	cursor: pointer;
}

.gwt-account .gwt-account__check input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.gwt-account__check-box {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border: 2px solid #C3B79F;
	border-radius: 6px;
	background: #FFFFFF;
	color: #F8F5EE;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	transition: background 0.15s, border-color 0.15s;
}

.gwt-account .gwt-account__check input:checked + .gwt-account__check-box {
	border-color: #2F5D50;
	background: #2F5D50;
}

.gwt-account .gwt-account__check input:checked + .gwt-account__check-box::after {
	content: '\2713';
}

.gwt-account .gwt-account__check input:focus-visible + .gwt-account__check-box {
	outline: 2px solid #2F5D50;
	outline-offset: 2px;
}

.gwt-account .gwt-account__link {
	font-size: 14px;
}

body.gwt-account-access .gwt-account button.gwt-account__button,
body.gwt-account-access .gwt-account .button.gwt-account__button {
	display: block;
	width: 100%;
	margin: 0;
	padding: 15px;
	border: 0;
	border-radius: 10px;
	background: #B42B2E;
	color: #F8F5EE;
	font-family: 'Clash Display', 'General Sans', sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: center;
	text-transform: none;
	text-shadow: none;
	box-shadow: none;
	cursor: pointer;
	transition: background 0.15s;
}

body.gwt-account-access .gwt-account button.gwt-account__button:hover,
body.gwt-account-access .gwt-account .button.gwt-account__button:hover {
	background: #9E2427;
	color: #F8F5EE;
}

/* Open line between the fields / privacy text and the submit button. The
   selectors repeat the base button rule's prefix so they out-rank its margin: 0. */
body.gwt-account-access .gwt-account .gwt-account__panel[data-gwt-panel="register"] button.gwt-account__button,
body.gwt-account-access .gwt-account .gwt-account__panel[data-gwt-panel="reset"] button.gwt-account__button,
body.gwt-account-access .gwt-account .gwt-account__panel[data-gwt-panel="new-password"] button.gwt-account__button {
	margin-top: 24px;
}

/* WooCommerce's woocommerce.js wraps every password input in span.password-input
   and appends span.show-password-input (the "eye"). The wrapper is a direct
   child span of our label, so without these rules it picks up the label-text
   span styling above and the eye drops below the field. */
body.gwt-account-access .gwt-account .gwt-account__label > .password-input {
	display: block;
	position: relative;
	margin: 0;
	font-size: inherit;
	color: inherit;
}

body.gwt-account-access .gwt-account .password-input input.gwt-account__field {
	padding-right: 46px;
}

/* The site's custom CSS has `body.page-id-7 .woocommerce form .show-password-input
   { top: auto }`, loaded after this file, so this selector must out-rank it. */
body.gwt-account-access .gwt-account .gwt-account__label .password-input > span.show-password-input {
	position: absolute;
	top: 50%;
	right: 14px;
	bottom: auto;
	left: auto;
	margin: 0;
	padding: 0;
	transform: translateY(-50%);
	font-size: 18px;
	line-height: 1;
	color: #A79C8A;
	cursor: pointer;
}

body.gwt-account-access .gwt-account .gwt-account__label .password-input > span.show-password-input::after {
	margin-left: 0;
}

body.gwt-account-access .gwt-account .gwt-account__label .password-input > span.show-password-input:hover::after,
body.gwt-account-access .gwt-account .gwt-account__label .password-input > span.show-password-input.display-password::after {
	color: #2F5D50;
}

/* Fields injected by other plugins (reCAPTCHA note, privacy policy text…). */
.gwt-account__extras:empty {
	display: none;
}

.gwt-account__extras {
	margin-top: 16px;
}

.gwt-account__extras p,
.gwt-account__extras .woocommerce-privacy-policy-text p,
.gwt-account__extras .sgr-infotext {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.5;
	color: #8A8272;
}

.gwt-account__extras p:last-child,
.gwt-account__extras .woocommerce-privacy-policy-text:last-child p:last-child {
	margin-bottom: 0;
}

.gwt-account__extras a {
	color: #B42B2E;
}

.gwt-account__extras .g-recaptcha {
	margin-bottom: 12px;
}

.gwt-account__notice {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 4px;
	padding: 14px 16px;
	border-radius: 10px;
	background: #EDF1DE;
	font-size: 14px;
	line-height: 1.5;
	color: #5C7016;
}

.gwt-account__notice-icon {
	font-size: 16px;
}

.gwt-account__forms .gwt-account__foot {
	margin: 20px 0 0;
	font-size: 14px;
	text-align: center;
	color: #5C554A;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 860px) {
	.gwt-account__card {
		grid-template-columns: 1fr;
	}

	.gwt-account__perks {
		padding-top: 26px;
	}
}

@media (max-width: 480px) {
	.gwt-account__row {
		grid-template-columns: 1fr;
	}

	.gwt-account__brand .gwt-account__headline {
		font-size: 34px;
	}
}
