/* =========================================================================
   BGH Store Style — Sign in / create account (My Account, logged out)
   Split card: brand panel (dark, gold) + form panel (white).
   ========================================================================= */

/* ---- Page frame --------------------------------------------------------- */

body.bgh-ss .site-main:has(.bgh-auth) .page-header { display: none; }
body.bgh-ss .site-main:has(.bgh-auth) { padding-top: 40px; }
body.bgh-ss.woocommerce-account:not(.logged-in) .site-main .woocommerce:has(.bgh-auth) { max-width: 1120px; margin-left: auto; margin-right: auto; }

body.bgh-ss .woocommerce:has(.bgh-auth) > .woocommerce-notices-wrapper:not(:empty) { margin-bottom: 18px; }

/* ---- Card --------------------------------------------------------------- */

.bgh-auth {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
	min-height: 660px;
	background: #fff;
	border: 1px solid var(--bgh-line);
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 30px 80px -40px rgba(17, 17, 17, .35);
}

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

.bgh-auth__brand {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	padding: 56px 52px 44px;
	color: #fff;
	background:
		radial-gradient(circle at 88% 8%, rgba(212, 168, 75, .30) 0%, rgba(212, 168, 75, 0) 46%),
		radial-gradient(circle at 0% 100%, rgba(212, 168, 75, .16) 0%, rgba(212, 168, 75, 0) 42%),
		linear-gradient(180deg, rgba(14, 14, 14, .62) 0%, rgba(14, 14, 14, .94) 70%),
		var(--bgh-auth-img, none) center / cover no-repeat,
		var(--bgh-dark);
}
.bgh-auth__brand::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 1px;
	background: linear-gradient(180deg, rgba(212, 168, 75, 0), rgba(212, 168, 75, .55), rgba(212, 168, 75, 0));
}
.bgh-auth__brand-in { display: flex; flex-direction: column; gap: 22px; margin-top: auto; }

.bgh-auth .bgh-auth__eyebrow {
	margin: 0;
	font: 600 11px/1 var(--bgh-sans);
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--bgh-gold);
}
body.bgh-ss .site-main .bgh-auth .bgh-auth__headline {
	margin: 0;
	font: 400 clamp(38px, 4.2vw, 54px)/1.02 var(--bgh-serif);
	letter-spacing: -.01em;
	color: #fff;
}
.bgh-auth__perks {
	display: grid;
	gap: 14px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}
.bgh-auth__perks li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font: 500 15px/1.45 var(--bgh-sans);
	color: rgba(255, 255, 255, .88);
}
.bgh-auth__perks li > span {
	flex: 0 0 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1px solid rgba(212, 168, 75, .55);
	border-radius: 50%;
	background: rgba(212, 168, 75, .12);
	color: var(--bgh-gold);
}
.bgh-auth .bgh-auth__foot {
	margin: 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font: 500 12px/1.5 var(--bgh-sans);
	letter-spacing: .04em;
	color: rgba(255, 255, 255, .55);
}

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

.bgh-auth__panel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px 56px 52px;
}
.bgh-auth__panel-in { width: 100%; max-width: 420px; }

/* Sign in / Create account switch */
.bgh-auth__switch {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	margin: 0 0 34px;
	padding: 4px;
	background: var(--bgh-cream);
	border: 1px solid var(--bgh-line);
	border-radius: 999px;
}
body.bgh-ss .bgh-auth__switch button {
	min-height: 42px;
	margin: 0;
	padding: 8px 16px !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	font: 600 14px/1 var(--bgh-sans) !important;
	color: var(--bgh-muted) !important;
	text-transform: none;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease;
}
body.bgh-ss .bgh-auth__switch button:hover { color: var(--bgh-ink) !important; }
body.bgh-ss .bgh-auth__switch button[aria-selected="true"] {
	background: var(--bgh-ink) !important;
	color: #fff !important;
}
body.bgh-ss .bgh-auth__switch button:focus-visible { outline: 2px solid var(--bgh-gold); outline-offset: 2px; }

/* Which view shows */
.bgh-auth[data-view="login"] .bgh-auth__pane--register,
.bgh-auth[data-view="register"] .bgh-auth__pane--login { display: none; }
.bgh-auth__pane { animation: bgh-auth-in .28s ease both; }
@keyframes bgh-auth-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bgh-auth__pane { animation: none; } }

body.bgh-ss .site-main .bgh-auth .bgh-auth__title {
	margin: 0 0 10px;
	font: 400 clamp(32px, 3.2vw, 42px)/1.05 var(--bgh-serif);
	color: var(--bgh-ink);
}
.bgh-auth .bgh-auth__sub {
	margin: 0;
	font: 400 14.5px/1.65 var(--bgh-sans);
	color: var(--bgh-muted);
}
body.bgh-ss .site-main .bgh-auth .bgh-auth__sub a {
	font-weight: 600;
	color: var(--bgh-ink);
	text-decoration: underline;
	text-decoration-color: var(--bgh-gold);
	text-underline-offset: 3px;
	text-decoration-thickness: 2px;
}
body.bgh-ss .site-main .bgh-auth .bgh-auth__sub a:hover { color: var(--bgh-gold-d); }

/* ---- Google button (Nextend Social Login) ------------------------------- */

.bgh-auth__social { margin: 28px 0 0; }
.bgh-auth__social .nsl-container { display: block !important; margin: 0 !important; padding: 0 !important; }
.bgh-auth__social .nsl-container-buttons { display: block !important; padding: 0 !important; }
body.bgh-ss .site-main .bgh-auth__social .nsl-container a {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	text-decoration: none !important;
	box-shadow: none !important;
}
.bgh-auth__social .nsl-button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 12px;
	width: 100% !important;
	min-height: 52px;
	margin: 0 !important;
	padding: 0 20px !important;
	background: #fff !important;
	border: 1px solid var(--bgh-field) !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	color: var(--bgh-ink) !important;
	transition: border-color .18s ease, background-color .18s ease;
}
.bgh-auth__social .nsl-button:hover { background: var(--bgh-cream) !important; border-color: var(--bgh-gold) !important; }
.bgh-auth__social .nsl-button-svg-container { display: flex !important; padding: 0 !important; }
.bgh-auth__social .nsl-button-svg-container svg { width: 20px !important; height: 20px !important; }
.bgh-auth__social .nsl-button-label-container {
	flex: 0 0 auto !important;
	margin: 0 !important;
	padding: 0 !important;
	font: 600 15px/1.2 var(--bgh-sans) !important;
	color: var(--bgh-ink) !important;
	text-align: center;
}
/* Buttons Nextend may inject inside the email forms: we show our own above. */
.bgh-auth__form .nsl-container { display: none !important; }

.bgh-auth .bgh-auth__or {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 24px 0 0;
	font: 500 12px/1 var(--bgh-sans);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--bgh-muted);
}
.bgh-auth__or::before,
.bgh-auth__or::after { content: ""; flex: 1; height: 1px; background: var(--bgh-line); }

/* ---- Forms -------------------------------------------------------------- */

body.bgh-ss .site-main .woocommerce .bgh-auth form.login,
body.bgh-ss .site-main .woocommerce .bgh-auth form.register {
	max-width: none;
	margin: 26px 0 0 !important;
	padding: 0 !important;
	background: none;
	border: 0 !important;
	border-radius: 0 !important;
}
body.bgh-ss .site-main .woocommerce .bgh-auth form .form-row { margin: 0 0 18px; }
body.bgh-ss .site-main .woocommerce .bgh-auth form .form-row label {
	margin: 0 0 8px;
	font: 600 13px/1.4 var(--bgh-sans);
	color: var(--bgh-ink);
}
body.bgh-ss .site-main .woocommerce .bgh-auth form .input-text {
	min-height: 52px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #fff;
}
body.bgh-ss .site-main .woocommerce .bgh-auth form .input-text::placeholder { color: #A8A196; }

/* Show / hide password (button added by WooCommerce) */
body.bgh-ss .bgh-auth .password-input { position: relative; display: block; }
body.bgh-ss .bgh-auth .password-input .input-text { padding-right: 52px; }
body.bgh-ss .site-main .bgh-auth .show-password-input {
	position: absolute;
	top: 50%;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-height: 0;
	margin: 0;
	padding: 0 !important;
	transform: translateY(-50%);
	background: none !important;
	border: 0 !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	color: var(--bgh-muted) !important;
	cursor: pointer;
}
body.bgh-ss .site-main .bgh-auth .show-password-input:hover { color: var(--bgh-ink) !important; background: var(--bgh-cream) !important; }
body.bgh-ss .site-main .bgh-auth .show-password-input::after {
	content: "" !important;
	display: block;
	width: 20px;
	height: 20px;
	font-family: inherit !important;
	background: currentColor !important;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.bgh-ss .site-main .bgh-auth .show-password-input.display-password::after {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18'/%3E%3Cpath d='M10.6 6.1A9.8 9.8 0 0 1 12 6c6.4 0 10 6 10 6a17 17 0 0 1-3.2 3.8M6.6 6.6C3.8 8.4 2 12 2 12s3.6 7 10 7a9.6 9.6 0 0 0 5.4-1.6'/%3E%3Cpath d='M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18'/%3E%3Cpath d='M10.6 6.1A9.8 9.8 0 0 1 12 6c6.4 0 10 6 10 6a17 17 0 0 1-3.2 3.8M6.6 6.6C3.8 8.4 2 12 2 12s3.6 7 10 7a9.6 9.6 0 0 0 5.4-1.6'/%3E%3Cpath d='M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E");
}

/* Remember me + forgot password */
.bgh-auth__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 2px 0 0;
}
body.bgh-ss .site-main .woocommerce .bgh-auth form label.woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 !important;
	font: 500 14px/1.2 var(--bgh-sans);
	color: var(--bgh-text);
	cursor: pointer;
}
body.bgh-ss .site-main .woocommerce .bgh-auth form input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--bgh-ink); }
body.bgh-ss .site-main .bgh-auth .bgh-auth__forgot { font: 600 14px/1.2 var(--bgh-sans); color: var(--bgh-gold-d); }
body.bgh-ss .site-main .bgh-auth .bgh-auth__forgot:hover { color: var(--bgh-ink); }

/* Main button */
body.bgh-ss .site-main .woocommerce .bgh-auth button.bgh-auth__submit,
body.bgh-ss .site-main .bgh-auth .bgh-auth__submit {
	display: flex !important;
	width: 100% !important;
	min-height: 54px;
	margin: 24px 0 0 !important;
	border-radius: 999px !important;
	font-size: 15.5px !important;
}
body.bgh-ss .site-main .woocommerce .bgh-auth button.bgh-auth__submit:hover { transform: translateY(-1px); }

/* Screen-reader-only text (theme usually provides this). */
.bgh-auth .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Small print */
.bgh-auth .bgh-auth__note,
.bgh-auth .bgh-auth__fine,
.bgh-auth .woocommerce-privacy-policy-text p {
	margin: 0 0 4px;
	font: 400 13px/1.6 var(--bgh-sans);
	color: var(--bgh-muted);
}
.bgh-auth .bgh-auth__fine { margin-top: 16px; text-align: center; }
.bgh-auth .woocommerce-privacy-policy-text { margin: 4px 0 0; }

/* ---- Tablet and mobile -------------------------------------------------- */

@media (max-width: 960px) {
	.bgh-auth { grid-template-columns: 1fr; min-height: 0; }
	.bgh-auth__brand { order: 2; padding: 40px 32px 32px; gap: 28px; }
	.bgh-auth__brand::after { top: 0; left: 0; right: 0; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, rgba(212, 168, 75, 0), rgba(212, 168, 75, .55), rgba(212, 168, 75, 0)); }
	.bgh-auth__panel { padding: 44px 32px 40px; }
	.bgh-auth__panel-in { max-width: 460px; }
}

@media (max-width: 600px) {
	body.bgh-ss .site-main:has(.bgh-auth) { padding-top: 20px; padding-left: 14px; padding-right: 14px; }
	.bgh-auth { border-radius: 18px; }
	.bgh-auth__panel { padding: 30px 20px 30px; }
	.bgh-auth__switch { margin-bottom: 26px; }
	.bgh-auth__brand { padding: 32px 22px 26px; }
	body.bgh-ss .site-main .bgh-auth .bgh-auth__headline { font-size: 34px; }
	.bgh-auth__perks li { font-size: 14px; }
}
