/**
 * Kilagbe Main Site — Registration form styling.
 *
 * Scoped to .kilagbe-registration (the register-column wrapper added by
 * templates/myaccount-form-login.php) and .kilagbe-whatsapp-group-cta
 * (the post-registration dashboard CTA). Never redefines any selector
 * used by the login half or any other part of the site. Colors reuse the
 * existing Kilagbe design tokens already in kilagbe-login.css:
 * #0E6B4F (accent), #0A4E3A (hover), #E7F2ED (tint), #E4E1D8 (border),
 * #1B231F (text), #5C6B64 (muted text).
 */

.kilagbe-registration {
	font-family: -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", "Hind Siliguri", Arial, sans-serif;
}

.kilagbe-registration-google {
	display: flex;
	justify-content: center;
	margin-bottom: 14px;
}

.kilagbe-registration-divider {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #5C6B64;
	font-size: 13px;
	margin: 4px 0 16px;
}

.kilagbe-registration-divider::before,
.kilagbe-registration-divider::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: #E4E1D8;
}

.kilagbe-registration-form .woocommerce-form-row input.input-text {
	border: 1px solid #E4E1D8;
	border-radius: 8px;
	padding: 9px 10px;
	font-size: 14px;
	color: #1B231F;
	width: 100%;
}

.kilagbe-registration-form .woocommerce-form-row input.input-text:focus {
	outline: 2px solid rgba(14, 107, 79, 0.35);
	outline-offset: 0;
	border-color: #0E6B4F;
}

.kilagbe-registration-form .woocommerce-form-row input[readonly] {
	background: #F3F4F2;
	color: #5C6B64;
}

.kilagbe-whatsapp-input-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.kilagbe-whatsapp-input-row input {
	flex: 1 1 auto;
	min-width: 0;
}

.kilagbe-whatsapp-verify-btn,
.kilagbe-otp-submit-btn {
	flex: 0 0 auto;
	background: #fff;
	color: #0A4E3A;
	border: 1px solid #0E6B4F;
	border-radius: 8px;
	padding: 0 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.kilagbe-whatsapp-verify-btn:hover:not(:disabled),
.kilagbe-otp-submit-btn:hover:not(:disabled) {
	background: #E7F2ED;
}

.kilagbe-whatsapp-verify-btn:disabled,
.kilagbe-otp-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.kilagbe-whatsapp-status {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	min-height: 16px;
}

.kilagbe-whatsapp-status.is-success {
	color: #0A4E3A;
	font-weight: 600;
}

.kilagbe-whatsapp-status.is-error {
	color: #b3261e;
}

.kilagbe-whatsapp-status.is-pending {
	color: #5C6B64;
}

.kilagbe-otp-row {
	background: #F7F5F0;
	border: 1px solid #E4E1D8;
	border-radius: 8px;
	padding: 12px 14px;
	margin: 0 0 14px;
}

.kilagbe-otp-input-row {
	display: flex;
	gap: 8px;
	margin-top: 6px;
}

.kilagbe-otp-input-row input {
	flex: 0 1 140px;
	letter-spacing: 4px;
	font-size: 16px;
	text-align: center;
}

.kilagbe-otp-resend-btn {
	display: inline-block;
	margin-top: 8px;
	background: none;
	border: none;
	color: #0A4E3A;
	font-size: 12px;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
}

.kilagbe-otp-resend-btn:disabled {
	color: #8A958F;
	text-decoration: none;
	cursor: not-allowed;
}

.kilagbe-registration-form .woocommerce-form-register__submit:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* Post-registration WhatsApp-group CTA on the My Account dashboard. */
.kilagbe-whatsapp-group-cta {
	margin: 0 0 20px;
}

.kilagbe-whatsapp-group-cta-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #0E6B4F;
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
}

.kilagbe-whatsapp-group-cta-button:hover {
	background: #0A4E3A;
	color: #fff;
}

@media (max-width: 782px) {
	.kilagbe-whatsapp-input-row,
	.kilagbe-otp-input-row {
		flex-direction: column;
	}

	.kilagbe-whatsapp-verify-btn,
	.kilagbe-otp-submit-btn {
		padding: 10px 14px;
	}

	.kilagbe-otp-input-row input {
		flex: 1 1 auto;
	}
}
