/**
 * Shopimo Registration Dual OTP Verification Stylesheet
 * Minimal Luxury design system inspired by TataCliq
 */

.wpr-register-steps-container {
	position: relative;
	width: 100%;
	margin-top: 15px;
}

/* Step Indicator Bar */
.wpr-reg-progress-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	position: relative;
	padding: 0 10px;
}

.wpr-reg-progress-bar::before {
	content: '';
	position: absolute;
	top: 14px;
	left: 20px;
	right: 20px;
	height: 2px;
	background: #e2e8f0;
	z-index: 1;
}

.wpr-reg-progress-step {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.wpr-reg-step-circle {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #cbd5e1;
	color: #64748b;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.wpr-reg-step-label {
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wpr-reg-progress-step.active .wpr-reg-step-circle {
	border-color: #0f172a;
	background: #0f172a;
	color: #fff;
}

.wpr-reg-progress-step.active .wpr-reg-step-label {
	color: #0f172a;
	font-weight: 700;
}

.wpr-reg-progress-step.completed .wpr-reg-step-circle {
	border-color: #10b981;
	background: #10b981;
	color: #fff;
}

.wpr-reg-progress-step.completed .wpr-reg-step-label {
	color: #10b981;
}

/* Form Steps */
.wpr-reg-step-panel {
	display: none;
	animation: wprFadeSlideIn 0.3s ease forwards;
}

.wpr-reg-step-panel.active {
	display: block;
}

@keyframes wprFadeSlideIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Step 2: Verification Panel */
.wpr-otp-channel-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 16px;
	transition: all 0.25s ease;
}

.wpr-otp-channel-card.verified {
	border-color: #10b981;
	background: #f0fdf4;
}

.wpr-otp-channel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.wpr-otp-channel-title {
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 6px;
}

.wpr-otp-channel-destination {
	font-size: 12px;
	color: #64748b;
	font-weight: 500;
}

.wpr-otp-status-badge {
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 12px;
	background: #e2e8f0;
	color: #475569;
}

.wpr-otp-channel-card.verified .wpr-otp-status-badge {
	background: #dcfce7;
	color: #15803d;
}

/* 6-Digit OTP Blocks */
.wpr-otp-digits-row {
	display: flex !important;
	gap: 8px !important;
	justify-content: space-between !important;
	margin-bottom: 12px !important;
	box-sizing: border-box !important;
}

#customer_login .wpr-register-steps-container input.wpr-otp-digit-box,
#customer_login input.wpr-otp-digit-box,
.wpr-register-steps-container input.wpr-otp-digit-box,
input.wpr-otp-digit-box {
	display: inline-block !important;
	width: 44px !important;
	min-width: 44px !important;
	max-width: 44px !important;
	height: 48px !important;
	min-height: 48px !important;
	max-height: 48px !important;
	line-height: 46px !important;
	padding: 0 !important;
	margin: 0 !important;
	text-align: center !important;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	letter-spacing: 0 !important;
	text-indent: 0 !important;
	text-transform: none !important;
	color: #0f172a !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 6px !important;
	background: #ffffff !important;
	outline: none !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	-webkit-appearance: none !important;
	-moz-appearance: textfield !important;
	appearance: none !important;
	vertical-align: middle !important;
	transition: all 0.2s ease !important;
}

#customer_login .wpr-register-steps-container input.wpr-otp-digit-box:focus,
#customer_login input.wpr-otp-digit-box:focus,
.wpr-register-steps-container input.wpr-otp-digit-box:focus,
input.wpr-otp-digit-box:focus {
	border-color: #0f172a !important;
	background: #ffffff !important;
	color: #0f172a !important;
	box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
	outline: none !important;
}

.wpr-otp-channel-card.verified input.wpr-otp-digit-box,
#customer_login .wpr-register-steps-container input.wpr-otp-digit-box:disabled,
#customer_login input.wpr-otp-digit-box:disabled,
input.wpr-otp-digit-box:disabled {
	border-color: #a7f3d0 !important;
	background: #f0fdf4 !important;
	color: #059669 !important;
	cursor: not-allowed !important;
	box-shadow: none !important;
}

.wpr-otp-meta-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
}

.wpr-otp-resend-btn {
	background: none;
	border: none;
	padding: 0;
	font-size: 12px;
	font-weight: 700;
	color: #0f172a;
	cursor: pointer;
	text-decoration: underline;
	transition: opacity 0.2s;
}

.wpr-otp-resend-btn:disabled,
.wpr-otp-resend-btn.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	text-decoration: none;
}

.wpr-otp-timer-display {
	color: #64748b;
	font-weight: 500;
}

/* Step 3: Password Panel */
.wpr-password-wrapper {
	position: relative;
}

.wpr-pw-hint {
	font-size: 12px;
	color: #64748b;
	margin-top: 6px;
	margin-bottom: 16px;
}

/* Buttons */
.wpr-reg-btn {
	width: 100%;
	height: 46px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.3px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	border: none;
	background: #0f172a;
	color: #fff;
	transition: all 0.2s ease;
}

.wpr-reg-btn:hover {
	background: #1e293b;
	color: #fff;
}

.wpr-reg-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.wpr-reg-back-link {
	display: inline-block;
	margin-top: 14px;
	font-size: 12px;
	color: #64748b;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s;
}

.wpr-reg-back-link:hover {
	color: #0f172a;
}

/* Mobile Responsive Adjustments */
@media (max-width: 480px) {
	.wpr-otp-digits-row {
		gap: 6px !important;
	}
	#customer_login .wpr-register-steps-container input.wpr-otp-digit-box,
	#customer_login input.wpr-otp-digit-box,
	.wpr-register-steps-container input.wpr-otp-digit-box,
	input.wpr-otp-digit-box {
		width: 38px !important;
		min-width: 38px !important;
		max-width: 38px !important;
		height: 44px !important;
		min-height: 44px !important;
		max-height: 44px !important;
		line-height: 42px !important;
		font-size: 18px !important;
	}
}

@media (max-width: 360px) {
	.wpr-otp-digits-row {
		gap: 4px !important;
	}
	#customer_login .wpr-register-steps-container input.wpr-otp-digit-box,
	#customer_login input.wpr-otp-digit-box,
	.wpr-register-steps-container input.wpr-otp-digit-box,
	input.wpr-otp-digit-box {
		width: 33px !important;
		min-width: 33px !important;
		max-width: 33px !important;
		height: 40px !important;
		min-height: 40px !important;
		max-height: 40px !important;
		line-height: 38px !important;
		font-size: 16px !important;
	}
}
