/* =========================================================
   AFAFKA ACCOUNT MENU 1.0.2
   Blocksy Login Modal + WooCommerce Login UI
   ========================================================= */


/* =========================================================
   REMEMBER ME + FORGOT PASSWORD
   ========================================================= */

.afafka-enhanced-login-form .afafka-login-helper-row {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 18px !important;

	width: 100% !important;
	box-sizing: border-box !important;

	margin: 20px 0 24px !important;
	padding: 0 !important;

	color: #5f4a40 !important;

	font-size: 15px !important;
	line-height: 1.4 !important;
}


/*
 * IMPORTANT:
 * Move the complete Blocksy "Remember Me" unit, including its checkbox,
 * rather than moving only the label text.
 */
.afafka-enhanced-login-form .afafka-login-remember-unit {
	display: inline-flex !important;
	align-items: center !important;
	gap: 10px !important;

	width: auto !important;

	margin: 0 !important;
	padding: 0 !important;

	color: #5f4a40 !important;

	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
}

.afafka-enhanced-login-form .afafka-login-remember-unit input[type="checkbox"] {
	flex: 0 0 auto !important;

	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;

	margin: 0 !important;

	accent-color: #95603f;
}

.afafka-enhanced-login-form .afafka-login-forgot-link {
	margin: 0 !important;
	padding: 0 !important;

	color: #95603f !important;

	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;

	text-decoration: none !important;
	white-space: nowrap !important;
}

.afafka-enhanced-login-form .afafka-login-forgot-link:hover,
.afafka-enhanced-login-form .afafka-login-forgot-link:focus {
	color: #75462f !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}


/* Remove old empty Blocksy/WooCommerce helper wrappers if JS leaves them empty. */
.afafka-enhanced-login-form .woocommerce-LostPassword:empty,
.afafka-enhanced-login-form .lost_password:empty {
	display: none !important;

	margin: 0 !important;
	padding: 0 !important;
}


/* =========================================================
   CREATE ACCOUNT
   Always last — below Google/Facebook when Social Login exists
   ========================================================= */

.afafka-login-register-prompt {
	width: 100% !important;
	box-sizing: border-box !important;

	margin: 24px 0 0 !important;
	padding: 20px 0 0 !important;

	border-top: 1px solid rgba(83, 57, 43, 0.12) !important;

	color: #75645b !important;

	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;

	text-align: center !important;
}

.afafka-login-register-prompt a {
	color: #95603f !important;
	font-weight: 600 !important;
	text-decoration: none !important;
}

.afafka-login-register-prompt a:hover,
.afafka-login-register-prompt a:focus {
	color: #75462f !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}


/* =========================================================
   SOCIAL LOGIN SPACING
   Do not restyle Google's button — only spacing.
   ========================================================= */

.afafka-enhanced-login-form .afafka-social-login {
	margin-top: 26px !important;
	margin-bottom: 0 !important;
}


/* =========================================================
   LOGIN INPUTS / CHROME AUTOFILL
   ========================================================= */

.afafka-enhanced-login-form input[type="text"],
.afafka-enhanced-login-form input[type="email"],
.afafka-enhanced-login-form input[type="password"] {
	background-color: #ffffff !important;
	color: #4f382d !important;
	caret-color: #4f382d !important;
}

.afafka-enhanced-login-form input:-webkit-autofill,
.afafka-enhanced-login-form input:-webkit-autofill:hover,
.afafka-enhanced-login-form input:-webkit-autofill:focus,
.afafka-enhanced-login-form input:-webkit-autofill:active {
	-webkit-text-fill-color: #4f382d !important;

	-webkit-box-shadow:
		0 0 0 1000px #ffffff inset !important;

	box-shadow:
		0 0 0 1000px #ffffff inset !important;

	caret-color: #4f382d !important;

	transition:
		background-color 9999s ease-out 0s !important;
}

.afafka-enhanced-login-form input:autofill {
	background-color: #ffffff !important;
	color: #4f382d !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {
	.afafka-enhanced-login-form .afafka-login-helper-row {
		gap: 12px !important;

		font-size: 14px !important;
	}

	.afafka-enhanced-login-form .afafka-login-remember-unit,
	.afafka-enhanced-login-form .afafka-login-forgot-link {
		font-size: 14px !important;
	}
}

@media (max-width: 380px) {
	.afafka-enhanced-login-form .afafka-login-helper-row {
		align-items: flex-start !important;
		flex-direction: column !important;
		gap: 12px !important;
	}

	.afafka-enhanced-login-form .afafka-login-forgot-link {
		white-space: normal !important;
	}
}


/* =========================================================
   AFAFKA LOGIN LEGAL V2
   Legal notice lives inside Create Account prompt.
   ========================================================= */

.afafka-login-register-prompt .afafka-login-legal {
	display: block;
	flex-basis: 100%;
	width: 100%;
	box-sizing: border-box;

	margin: 8px 0 0 !important;
	padding: 0 4px !important;

	color: #8a7b73 !important;

	font-size: 11px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;

	text-align: center !important;
}

.afafka-login-register-prompt .afafka-login-legal a {
	color: #95603f !important;

	font-size: inherit !important;
	font-weight: 400 !important;

	text-decoration: underline !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 2px;

	white-space: nowrap;
}

.afafka-login-register-prompt .afafka-login-legal a:hover,
.afafka-login-register-prompt .afafka-login-legal a:focus {
	color: #75462f !important;
}
