/* ============================================================
 * Khyati two-step registration form
 * Palette: Maroon #4B0F1F, Cream #F5EBDD, Cream Deep #EADBC2,
 *          Brown #2C1A14, Gold #C9A24A
 * ============================================================ */

.khyati-reg-wrap {
	max-width: 460px;
	margin: 60px auto;
	padding: 40px 36px;
	background: #EADBC2;
	border-radius: 6px;
	color: #2C1A14;
	font-family: inherit;
}

.khyati-reg-title {
	font-size: 28px;
	font-weight: 600;
	margin: 0 0 8px;
	color: #4B0F1F;
	letter-spacing: 0.3px;
}

.khyati-reg-sub {
	font-size: 14px;
	margin: 0 0 28px;
	color: #2C1A14;
	opacity: 0.85;
	line-height: 1.5;
}

.khyati-reg-change {
	color: #4B0F1F;
	text-decoration: underline;
	font-size: 13px;
	margin-left: 4px;
}

/* ---------- Form ------------------------------------------------ */
.khyati-reg-form { display: block; }

.khyati-reg-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin: 16px 0 6px;
	color: #2C1A14;
}

.khyati-reg-form input[type="email"],
.khyati-reg-form input[type="text"],
.khyati-reg-form input[type="tel"],
.khyati-reg-form input[type="password"] {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #C9A24A;
	border-radius: 4px;
	background: #F5EBDD;
	font-size: 15px;
	color: #2C1A14;
	box-sizing: border-box;
	transition: border-color 0.15s;
}

.khyati-reg-form input:focus {
	outline: none;
	border-color: #4B0F1F;
	box-shadow: 0 0 0 2px rgba(75, 15, 31, 0.15);
}

.khyati-reg-otp {
	letter-spacing: 8px;
	font-size: 20px !important;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.khyati-reg-hint {
	display: block;
	font-size: 12px;
	color: #2C1A14;
	opacity: 0.7;
	margin-top: 4px;
}

/* ---------- Checkboxes ------------------------------------------ */
.khyati-reg-check {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px !important;
	font-weight: 400 !important;
	margin-top: 18px !important;
	line-height: 1.45;
	cursor: pointer;
}

.khyati-reg-check input[type="checkbox"] {
	margin-top: 3px;
	accent-color: #4B0F1F;
	flex-shrink: 0;
}

.khyati-reg-check a {
	color: #4B0F1F;
	text-decoration: underline;
}

/* ---------- Buttons --------------------------------------------- */
.khyati-reg-btn {
	display: block;
	width: 100%;
	margin-top: 26px;
	padding: 14px;
	background: #4B0F1F;
	color: #F5EBDD;
	border: none;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s;
}

.khyati-reg-btn:hover { background: #3A0A17; }

.khyati-reg-btn:disabled {
	background: #B59A8E;
	cursor: not-allowed;
}

/* ---------- Resend ---------------------------------------------- */
.khyati-reg-resend-form {
	margin-top: 16px;
	text-align: center;
}

.khyati-reg-resend {
	background: transparent;
	border: none;
	color: #4B0F1F;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
	padding: 6px;
}

.khyati-reg-resend:disabled {
	color: #888;
	cursor: not-allowed;
	text-decoration: none;
}

/* ---------- Notices --------------------------------------------- */
.khyati-reg-error {
	margin: 10px 0;
	padding: 10px 14px;
	background: #4B0F1F;
	color: #F5EBDD;
	border-radius: 4px;
	font-size: 13px;
}

.khyati-reg-notice {
	margin: 10px 0;
	padding: 10px 14px;
	background: #C9A24A;
	color: #2C1A14;
	border-radius: 4px;
	font-size: 13px;
}

.khyati-reg-alt {
	margin-top: 24px;
	text-align: center;
	font-size: 13px;
	color: #2C1A14;
}

.khyati-reg-alt a {
	color: #4B0F1F;
	font-weight: 600;
	text-decoration: underline;
}

/* ---------- "Account exists" block ----------------------------- */
.khyati-reg-exists {
	margin: 0 0 24px;
	padding: 20px 22px;
	background: #F5EBDD;
	border: 1px solid #C9A24A;
	border-radius: 6px;
	color: #2C1A14;
}

.khyati-reg-exists strong {
	display: block;
	font-size: 16px;
	color: #4B0F1F;
	margin-bottom: 8px;
}

.khyati-reg-exists p {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.5;
}

.khyati-reg-exists-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.khyati-reg-exists-actions .khyati-reg-btn {
	display: inline-block;
	width: auto;
	margin: 0;
	padding: 10px 24px;
}

.khyati-reg-link {
	color: #4B0F1F;
	font-size: 13px;
	text-decoration: underline;
	font-weight: 600;
}

/* ---------- Honeypot (hidden from humans) ----------------------- */
.khyati-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none;
}

/* ---------- Password show/hide ---------------------------------- */
.khyati-reg-pass-wrap { position: relative; }

.khyati-reg-eye {
	position: absolute;
	right: 10px;
	bottom: 10px;
	background: transparent;
	border: none;
	color: #4B0F1F;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	padding: 4px 8px;
}

/* ---------- intl-tel-input overrides ---------------------------- */
.iti { width: 100%; }
.iti__country-list { color: #2C1A14; }
.iti--separate-dial-code .iti__selected-flag {
	background: #F5EBDD;
	border: 1px solid #C9A24A;
	border-right: none;
	border-radius: 4px 0 0 4px;
}

/* ---------- Mobile ---------------------------------------------- */
@media (max-width: 520px) {
	.khyati-reg-wrap {
		margin: 24px 14px;
		padding: 28px 22px;
	}
	.khyati-reg-title { font-size: 24px; }
}

/* ============================================================
 * Login form alignment fixes (parent-theme floating labels were
 * overlapping inputs; password eye + remember-me misaligned).
 * Scoped to .woocommerce-form-login so other forms are unaffected.
 * Applies to the main login form AND the injected inline reg form.
 * ============================================================ */
.woocommerce-form-login .woocommerce-form-row,
.woocommerce-form-login .form-row {
	display: flex;
	flex-direction: column;
	position: relative;
}

.woocommerce-form-login .woocommerce-form-row > label,
.woocommerce-form-login .form-row > label {
	position: relative;
	display: block;
	margin: 0 0 6px;
	transform: none;
	top: auto;
	left: auto;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	background: transparent;
	pointer-events: auto;
}

.woocommerce-form-login .woocommerce-form-row > br,
.woocommerce-form-login .form-row > br { display: none; }

.woocommerce-form-login .woocommerce-form-row input.input-text,
.woocommerce-form-login .form-row input.input-text {
	height: 50px;
	line-height: 1.4;
	padding: 0 15px;
	box-sizing: border-box;
	width: 100%;
}

.woocommerce-form-login .password-input { position: relative; }

.woocommerce-form-login .show-password-input {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	margin: 0;
}

.woocommerce-form-login .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	line-height: 1.3;
}

.woocommerce-form-login .woocommerce-form-login__rememberme input[type="checkbox"] {
	margin: 0;
	flex-shrink: 0;
}

/* ============================================================
 * Inline registration form on /my-account/ ("I'm new here" area)
 * Uses EXACT same HTML structure & classes as the parent-theme
 * login form, so floating labels and input styling are inherited.
 * We only add layout/spacing rules here — NO input/label overrides.
 * ============================================================ */
.khyati-inline-wrap {
	display: block !important;
	margin-top: 16px;
	visibility: visible !important;
}

.khyati-inline-reg.woocommerce-form-login {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	margin: 0;
}

/* Give the "Account exists" / error banners breathing room above the form. */
.khyati-inline-wrap .khyati-reg-exists,
.khyati-inline-wrap .khyati-reg-error {
	margin-top: 0 !important;
	margin-bottom: 20px !important;
}
