/* My account, logged out: login / register card. */

/* No page title and a soft background behind the card. */
body.woocommerce-account:not(.logged-in) .entry-header {
	display: none;
}

body.woocommerce-account:not(.logged-in) .site-content,
body.woocommerce-account:not(.logged-in) #content {
	background: #faf9f8;
}

/* Full width, so the card centres on the screen (my-account.css caps this at 880px). */
body.woocommerce-account:not(.logged-in) .entry-content > .woocommerce {
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
}

.zal {
	display: flex;
	justify-content: center;
	padding: 28px 16px 48px;
}

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

.zal__card {
	width: 100%;
	max-width: 460px;
	padding: 40px 40px 32px;
	color: #231f20;
	background: #fff;
	border: 1px solid #f0eeed;
	font-size: 14px;
	line-height: 1.5;
}

/* ---------- Logo ---------- */

.zal__logo {
	display: flex;
	justify-content: center;
	margin: 0 0 30px;
}

.zal__logo .custom-logo-link {
	display: inline-flex;
}

.zal__logo img.custom-logo {
	width: auto;
	max-width: 190px;
	max-height: 64px;
	height: auto;
}

.zal__brand {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: .24em;
	text-transform: uppercase;
}

/* ---------- Headings ---------- */

body.woocommerce-account .entry-content > .woocommerce .zal .zal__title {
	margin: 0 0 8px;
	padding: 0;
	color: #231f20;
	border: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
}

.zal__sub {
	margin: 0 0 28px;
	color: #9b9290;
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
}

/* ---------- Fields ---------- */

/* WooCommerce draws a border and padding around login/register forms; the card is the box. */
body.woocommerce-account .entry-content > .woocommerce .zal .zal__form {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.zal__field {
	margin: 0 0 20px;
}

.zal__field label,
.zal__label-row label {
	display: block;
	margin: 0 0 8px;
	color: #231f20;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}

.zal__label-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

body.woocommerce-account .entry-content > .woocommerce .zal .zal__forgot {
	color: #231f20;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

body.woocommerce-account .entry-content > .woocommerce .zal .zal__forgot:hover {
	color: #231f20;
	text-decoration: underline;
}

.zal__control {
	position: relative;
}

.zal__icon {
	position: absolute;
	top: 50%;
	left: 16px;
	display: inline-flex;
	color: #b5acaa;
	transform: translateY(-50%);
	pointer-events: none;
}

body.woocommerce-account .entry-content > .woocommerce .zal .zal__input {
	display: block;
	width: 100%;
	height: 48px;
	min-height: 48px;
	margin: 0;
	padding: 0 16px 0 46px;
	color: #231f20;
	background: #fff;
	border: 2px solid #ece6e5;
	border-radius: 14px;
	box-shadow: none;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.2;
	transition: border-color .15s ease;
}

body.woocommerce-account .entry-content > .woocommerce .zal .zal__input::placeholder {
	color: #b1a8a6;
	opacity: 1;
}

body.woocommerce-account .entry-content > .woocommerce .zal .zal__input:focus {
	border-color: #231f20;
	outline: none;
	box-shadow: none;
}

/* ---------- Submit ---------- */

body.woocommerce-account .entry-content > .woocommerce .zal .zal__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 48px;
	min-height: 48px;
	margin: 26px 0 0;
	padding: 0 20px;
	color: #fff;
	background: #161311;
	border: 0;
	border-radius: 14px;
	box-shadow: 0 6px 14px rgba(0, 0, 0, .14);
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
	transition: background .15s ease, transform .1s ease;
}

body.woocommerce-account .entry-content > .woocommerce .zal .zal__submit:hover,
body.woocommerce-account .entry-content > .woocommerce .zal .zal__submit:focus {
	color: #fff;
	background: #2d2926;
	border: 0;
}

body.woocommerce-account .entry-content > .woocommerce .zal .zal__submit:active {
	transform: translateY(1px);
}

/* ---------- Footer link ---------- */

.zal__foot {
	margin: 28px 0 0;
	padding-top: 22px;
	color: #7a716f;
	border-top: 1px solid #f0ecea;
	font-size: 14px;
	text-align: center;
}

body.woocommerce-account .entry-content > .woocommerce .zal .zal__foot a {
	color: #161311;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Privacy note (added by WooCommerce on the register form). */
.zal .woocommerce-privacy-policy-text {
	margin: 4px 0 0;
	color: #9b9290;
	font-size: 12px;
	line-height: 1.6;
}

.zal .woocommerce-privacy-policy-text p {
	margin: 0;
}

.zal .woocommerce-privacy-policy-text a {
	color: #161311;
	text-decoration: underline;
}

/* Error / success notices above the card. */
body.woocommerce-account:not(.logged-in) .entry-content > .woocommerce .woocommerce-notices-wrapper {
	max-width: 460px;
	margin: 20px auto 0;
	padding: 0 16px;
}

@media (max-width: 480px) {
	.zal__card {
		max-width: 400px;
	}

	.zal {
		padding: 16px 12px 36px;
	}

	.zal__card {
		padding: 28px 20px 22px;
	}

	body.woocommerce-account .entry-content > .woocommerce .zal .zal__title {
		font-size: 23px;
	}

	/* Keep the longer phone placeholder on one line. */
	body.woocommerce-account .entry-content > .woocommerce .zal .zal__input {
		padding-left: 42px;
		font-size: 13px;
	}

	.zal__icon {
		left: 14px;
	}

	.zal__sub {
		margin-bottom: 22px;
		font-size: 13px;
	}
}
