.bfd-account-card {
	--bfd-account-olive: #394e1b;
	--bfd-account-ink: var(--main_color, #121b17);
	--bfd-account-muted: #4b5548;
	--bfd-account-line: #d8dfd3;
	box-sizing: border-box;
	width: min(100%, 34rem);
	margin: clamp(1.5rem, 5vw, 4rem) auto;
	padding: clamp(1.25rem, 4vw, 2.75rem);
	border: 1px solid var(--bfd-account-line);
	border-radius: 12px;
	background: #fff;
	color: var(--bfd-account-ink);
	overflow-wrap: anywhere;
}

.bfd-account-card--register {
	border-inline-start: 5px solid var(--bfd-account-olive);
	box-shadow: 0 10px 28px rgb(18 27 23 / 8%);
}

.bfd-account-card--recovery {
	width: min(100%, 29rem);
	border-block-start: 4px solid var(--bfd-account-olive);
	background: #f6f8f3;
}

.bfd-account-card h1 {
	margin: 0 0 1.5rem;
	color: inherit;
	font: 600 clamp(1.65rem, 4vw, 2.25rem) / 1.15 var(--title_font_family, 'Playfair Display'), Georgia, serif;
}

.bfd-account-card :is(form, .woocommerce) {
	margin: 0;
}

.bfd-account-card :is(.form-row, .lost_reset_password > p, .woocommerce-privacy-policy-text) {
	float: none;
	width: 100%;
	margin: 0 0 1rem;
	padding: 0;
}

.bfd-account-card :is(.bfd-account-hint, .lost_reset_password > p:first-child, .woocommerce-privacy-policy-text) {
	color: var(--bfd-account-muted);
	font-size: .9rem;
	line-height: 1.6;
}

.bfd-account-card .bfd-account-hint {
	margin: 0 0 .75rem;
}

.bfd-account-card label {
	display: block;
	margin-bottom: 0.4rem;
	color: inherit;
	font-size: .875rem;
	font-weight: 600;
}

.bfd-account-card .input-text {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 0.625rem 0.75rem;
	border: 1px solid #879282;
	border-radius: 6px;
	background: #fff;
	color: inherit;
	font-size: 1rem;
}

.bfd-account-card .password-input {
	display: block;
	position: relative;
}

.bfd-account-card .password-input .input-text {
	padding-inline-end: 3.25rem;
}

.bfd-account-card .show-password-input {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	display: grid;
	width: 44px;
	place-items: center;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.bfd-account-card .show-password-input::before {
	width: 17px;
	height: 11px;
	border: 1.5px solid currentColor;
	border-radius: 70%;
	background: radial-gradient(circle, currentColor 2px, transparent 2.5px);
	content: '';
}

.bfd-account-card .show-password-input.display-password::after {
	position: absolute;
	width: 19px;
	height: 1.5px;
	background: currentColor;
	content: '';
	transform: rotate(-35deg);
}

.bfd-account-card button[type='submit'] {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: .625rem 1rem;
	border: 1px solid transparent;
	border-radius: 6px;
	background: var(--bfd-account-olive);
	color: #fff;
	font-weight: 600;
	white-space: normal;
	cursor: pointer;
}

.bfd-account-card--recovery button[type='submit'] {
	background: var(--bfd-account-ink);
}

.bfd-account-card button[type='submit']:hover {
	background: #2c3b21;
}

.bfd-account-card .bfd-account-return {
	margin: 1.5rem 0 0;
	padding-top: .75rem;
	border-top: 1px solid var(--bfd-account-line);
	font-size: .875rem;
}

.bfd-account-card a {
	color: var(--bfd-account-olive);
	text-decoration: underline;
	text-underline-offset: .18em;
}

.bfd-account-card .bfd-account-return a,
.customer_login_default #bfd-account-register-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.bfd-account-card :is(a, button, input):focus-visible,
.customer_login_default #bfd-account-register-link:focus-visible {
	outline: 2px solid #394e1b;
	outline-offset: 2px;
}
