/**
 * Tafrud registration UX styling.
 *  (2) Force the phone + full-name inputs to render exactly like the theme's
 *      other register inputs (the Eduma CSS sizes inputs by type and skipped
 *      type="tel", which made the phone field narrower / misaligned).
 *  (3) Inline error box shown inside the popup.
 */

form[name="registerformpopup"] input[name="billing_phone"],
form[name="registerform"]      input[name="billing_phone"],
form[name="registerformpopup"] input[name="tafrud_full_name"],
form[name="registerform"]      input[name="tafrud_full_name"],
form[name="registerformpopup"] input[name="user_login"],
form[name="registerform"]      input[name="user_login"] {
	width: 100% !important;
	box-sizing: border-box !important;
	display: block !important;
}

/* The phone <p> wrapper should share the exact spacing of the other field
   <p> wrappers (it is the same element type, but normalise margins in case a
   stray rule targets the class). */
form[name="registerformpopup"] p.tafrud-phone-field,
form[name="registerform"]      p.tafrud-phone-field {
	margin: 0 0 15px !important;
	padding: 0 !important;
}

/* Inline error inside the register popup. */
.tafrud-reg-error {
	background: #fdecea;
	border: 1px solid #f5c2c0;
	color: #b3261e;
	padding: 11px 14px;
	border-radius: 8px;
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.7;
	text-align: right;
	direction: rtl;
}
.tafrud-reg-error a {
	color: #b3261e;
	font-weight: 700;
	text-decoration: underline;
}

/* "Sign in with Google" block inside the popup login form (Site Kit). */
.tafrud-siwg {
	margin: 14px 0 4px;
}
.tafrud-siwg__divider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	color: #8c8278;
	font-size: 13px;
}
.tafrud-siwg__divider::before,
.tafrud-siwg__divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e5dcd5;
}
.tafrud-siwg__btn {
	display: flex;
	justify-content: center;
	min-height: 40px;
}
.tafrud-siwg__btn iframe {
	margin: 0 auto !important;
}
