/**
 * Shopimo My Account Authentication & Registration Redesign Stylesheet
 * 
 * Accurately styled to match Reference Image 2: "Shopimo Pink Login Experience"
 * Layout: 52% Left Blush-Pink Panel + 48% Right Clean White Login/Register Panel
 */

/* ── 0. Neutralize Core Clearfix Pseudo-Elements ────────────────────────── */
#customer_login.wpr-auth-card::before,
#customer_login.wpr-auth-card::after,
.wpr-auth-page-wrapper::before,
.wpr-auth-page-wrapper::after {
	display: none !important;
	content: none !important;
	clear: none !important;
	width: 0 !important;
	height: 0 !important;
}

/* ── 1. Page Scaffolding & Card Container ───────────────────────────────── */
.wpr-auth-page-wrapper {
	width: 100% !important;
	padding: 30px 0 60px !important;
	box-sizing: border-box !important;
}

#customer_login.wpr-auth-card {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	width: 100% !important;
	max-width: 1140px !important;
	margin: 20px auto 40px !important;
	background: #ffffff !important;
	border-radius: 28px !important;
	box-shadow: 0 20px 60px rgba(218, 28, 92, 0.08), 0 4px 24px rgba(0, 0, 0, 0.04) !important;
	border: 1px solid #f8e1eb !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
	min-height: 620px !important;
	float: none !important;
	gap: 0 !important;
	padding: 0 !important;
}

/* Reset any inherited WooCommerce float or width rules on children */
#customer_login.wpr-auth-card .col-1,
#customer_login.wpr-auth-card .col-2 {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	flex: none !important;
}

/* ── 2. Left Panel: Soft Blush-Pink Experience (52% Width) ──────────────── */
.wpr-auth-media-pane {
	flex: 0 0 52% !important;
	width: 52% !important;
	max-width: 52% !important;
	background: linear-gradient(135deg, #fff3f7 0%, #fde6ee 50%, #fcdbe7 100%) !important;
	position: relative !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: space-between !important;
	padding: 40px 38px 28px !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
	border-right: 1px solid #fae1eb !important;
}

/* Ambient glow shapes */
.wpr-auth-pink-bg-glows {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 1;
}

.wpr-glow-1 {
	position: absolute;
	top: -60px;
	right: -60px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 107, 149, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
}

.wpr-glow-2 {
	position: absolute;
	bottom: 80px;
	left: -50px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(254, 205, 222, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
}

.wpr-glow-heart {
	position: absolute;
	top: 100px;
	right: 30px;
	color: #ff6b95;
	font-size: 22px;
	opacity: 0.55;
	transform: rotate(15deg);
}

.wpr-auth-media-top {
	position: relative;
	z-index: 2;
}

.wpr-auth-left-tagline {
	display: block;
	font-family: var(--wpr-font-heading, "Inter", sans-serif);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--wpr-color-accent, #da1c5c);
	margin-bottom: 8px;
}

.wpr-auth-left-title {
	font-family: "Outfit", var(--wpr-font-heading, "Inter", sans-serif) !important;
	font-size: 32px !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	color: #1e293b !important;
	margin: 0 0 10px !important;
	letter-spacing: -0.02em;
	padding: 0 !important;
}

.wpr-auth-left-title::after {
	display: none !important;
}

.wpr-auth-brand-highlight {
	display: block;
	color: var(--wpr-color-accent, #da1c5c) !important;
}

.wpr-auth-left-desc {
	font-size: 13.5px !important;
	line-height: 1.55 !important;
	color: #64748b !important;
	margin: 0 !important;
	max-width: 330px !important;
	font-weight: 400 !important;
}

/* Center hero visual */
.wpr-auth-hero-visual-wrap {
	position: relative;
	z-index: 2;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 12px 0 16px;
}

.wpr-auth-hero-visual {
	max-width: 340px;
	width: 100%;
	height: auto;
	object-fit: contain;
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(218, 28, 92, 0.1);
	transition: transform 0.4s ease;
}

#customer_login.wpr-auth-card:hover .wpr-auth-hero-visual {
	transform: scale(1.02);
}

/* Bottom 4 Benefit items */
.wpr-auth-bottom-benefits {
	position: relative;
	z-index: 2;
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 10px !important;
	padding-top: 16px !important;
	border-top: 1px solid rgba(218, 28, 92, 0.12) !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.wpr-benefit-col {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	text-align: center !important;
}

.wpr-benefit-icon-badge {
	width: 42px !important;
	height: 42px !important;
	border-radius: 50% !important;
	background: #ffffff !important;
	box-shadow: 0 4px 14px rgba(218, 28, 92, 0.12) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: var(--wpr-color-accent, #da1c5c) !important;
	font-size: 16px !important;
	margin-bottom: 6px !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.wpr-benefit-col:hover .wpr-benefit-icon-badge {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(218, 28, 92, 0.2) !important;
}

.wpr-benefit-label {
	font-family: var(--wpr-font-primary, "Inter", sans-serif) !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	color: #334155 !important;
	line-height: 1.3 !important;
	text-align: center !important;
	display: block !important;
}

/* ── 3. Right Panel: Clean White Interactive Form Pane (48% Width) ───────── */
.wpr-auth-form-pane {
	flex: 0 0 48% !important;
	width: 48% !important;
	max-width: 48% !important;
	background: #ffffff !important;
	padding: 44px 44px !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	box-sizing: border-box !important;
}

.wpr-auth-mobile-header {
	display: none;
}

/* ── 4. Primary Outer Tabs (Login vs Create Account) ────────────────────── */
.wpr-auth-primary-tabs {
	display: flex !important;
	background: #fdf2f6 !important;
	border: 1px solid #fce4ec !important;
	border-radius: 12px !important;
	padding: 4px !important;
	margin-bottom: 24px !important;
	box-sizing: border-box !important;
}

.wpr-auth-tab-btn {
	flex: 1 1 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 12px 18px !important;
	border: none !important;
	background: transparent !important;
	border-radius: 9px !important;
	font-family: var(--wpr-font-heading, "Inter", sans-serif) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em !important;
	color: #64748b !important;
	cursor: pointer !important;
	transition: all 0.25s ease !important;
	box-shadow: none !important;
	text-transform: none !important;
}

.wpr-auth-tab-btn:hover {
	color: var(--wpr-color-accent, #da1c5c) !important;
}

.wpr-auth-tab-btn.active {
	background: #ffffff !important;
	color: var(--wpr-color-accent, #da1c5c) !important;
	box-shadow: 0 2px 10px rgba(218, 28, 92, 0.12) !important;
	border-bottom: 2px solid var(--wpr-color-accent, #da1c5c) !important;
}

/* ── 5. Secondary Switcher (Email & Password vs Phone OTP) ──────────────── */
.wpr-login-tabs-header {
	display: flex !important;
	width: 100% !important;
	background: #f8fafc !important;
	border: 1px solid #edf2f7 !important;
	border-radius: 10px !important;
	padding: 4px !important;
	margin-bottom: 22px !important;
	box-sizing: border-box !important;
}

.wpr-login-tab-btn {
	flex: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	padding: 10px 16px !important;
	border: none !important;
	background: transparent !important;
	border-radius: 7px !important;
	font-family: var(--wpr-font-heading, "Inter", sans-serif) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #64748b !important;
	cursor: pointer !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	box-shadow: none !important;
	transition: all 0.2s ease !important;
}

.wpr-login-tab-btn:hover {
	color: var(--wpr-color-accent, #da1c5c) !important;
}

.wpr-login-tab-btn.active {
	background: #fdeef4 !important;
	color: var(--wpr-color-accent, #da1c5c) !important;
	font-weight: 700 !important;
	border: 1px solid rgba(218, 28, 92, 0.18) !important;
}

/* ── 6. Form Fields & Input Styling ─────────────────────────────────────── */
#customer_login form {
	border: none !important;
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	margin: 0 !important;
}

#customer_login .form-row {
	margin-bottom: 18px !important;
	padding: 0 !important;
	float: none !important;
	width: 100% !important;
}

#customer_login label {
	font-family: var(--wpr-font-heading, "Inter", sans-serif) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #334155 !important;
	display: block !important;
	margin-bottom: 7px !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

#customer_login label .required {
	color: var(--wpr-color-accent, #da1c5c) !important;
	font-weight: 700;
	text-decoration: none;
}

/* Inputs with Left Icon Wrap */
.wpr-field-wrap {
	position: relative !important;
	display: block !important;
	width: 100% !important;
}

.wpr-field-icon {
	position: absolute !important;
	left: 16px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	color: #94a3b8 !important;
	font-size: 16px !important;
	pointer-events: none !important;
	z-index: 2 !important;
	transition: color 0.2s ease !important;
}

.wpr-field-wrap:focus-within .wpr-field-icon {
	color: var(--wpr-color-accent, #da1c5c) !important;
}

#customer_login input[type="text"],
#customer_login input[type="email"],
#customer_login input[type="password"],
#customer_login input[type="tel"] {
	width: 100% !important;
	height: 50px !important;
	padding: 0 16px 0 46px !important;
	border: 1.5px solid #e2e8f0 !important;
	border-radius: 10px !important;
	font-family: var(--wpr-font-primary, "Inter", sans-serif) !important;
	font-size: 14px !important;
	color: #1e293b !important;
	background-color: #ffffff !important;
	outline: none !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

#customer_login input[type="text"]:focus,
#customer_login input[type="email"]:focus,
#customer_login input[type="password"]:focus,
#customer_login input[type="tel"]:focus {
	border-color: var(--wpr-color-accent, #da1c5c) !important;
	box-shadow: 0 0 0 3px rgba(218, 28, 92, 0.1) !important;
}

/* Options Row: Remember Me & Forgot Password */
.wpr-login-options-row {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	margin-top: 4px !important;
	margin-bottom: 20px !important;
}

.woocommerce-form-login__rememberme {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #475569 !important;
	margin: 0 !important;
	cursor: pointer;
}

.woocommerce-form-login__rememberme input[type="checkbox"] {
	width: 17px !important;
	height: 17px !important;
	accent-color: var(--wpr-color-accent, #da1c5c) !important;
	cursor: pointer !important;
	margin: 0 !important;
}

.woocommerce-LostPassword a {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: var(--wpr-color-accent, #da1c5c) !important;
	text-decoration: none !important;
	transition: opacity 0.2s ease !important;
}

.woocommerce-LostPassword a:hover {
	opacity: 0.8 !important;
	text-decoration: underline !important;
}

/* Action & Submit Buttons */
#customer_login.wpr-auth-card button[type="submit"],
#customer_login.wpr-auth-card .woocommerce-form-login__submit,
#customer_login.wpr-auth-card .wpr-send-otp-btn,
#customer_login.wpr-auth-card .wpr-verify-otp-btn,
#customer_login.wpr-auth-card .wpr-reg-btn {
	width: 100% !important;
	height: 50px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	border-radius: 10px !important;
	background: linear-gradient(135deg, #e91e63 0%, #da1c5c 100%) !important;
	color: #ffffff !important;
	font-family: var(--wpr-font-heading, "Inter", sans-serif) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em !important;
	text-transform: none !important;
	border: none !important;
	cursor: pointer !important;
	box-shadow: 0 6px 20px rgba(218, 28, 92, 0.3) !important;
	transition: all 0.25s ease !important;
}

#customer_login.wpr-auth-card button[type="submit"]:hover,
#customer_login.wpr-auth-card .woocommerce-form-login__submit:hover,
#customer_login.wpr-auth-card .wpr-send-otp-btn:hover,
#customer_login.wpr-auth-card .wpr-verify-otp-btn:hover,
#customer_login.wpr-auth-card .wpr-reg-btn:hover {
	background: linear-gradient(135deg, #da1c5c 0%, #b8144b 100%) !important;
	box-shadow: 0 8px 25px rgba(218, 28, 92, 0.42) !important;
	transform: translateY(-1px) !important;
}

#customer_login .woocommerce-form-login__submit:disabled,
#customer_login .wpr-send-otp-btn:disabled,
#customer_login .wpr-verify-otp-btn:disabled,
#customer_login .wpr-reg-btn:disabled {
	opacity: 0.65 !important;
	cursor: not-allowed !important;
	transform: none !important;
	box-shadow: none !important;
}

/* Bottom switch prompt */
.wpr-auth-bottom-switch {
	text-align: center !important;
	font-size: 13.5px !important;
	color: #64748b !important;
	margin-top: 22px !important;
	margin-bottom: 0 !important;
}

.wpr-auth-bottom-switch a {
	color: var(--wpr-color-accent, #da1c5c) !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	margin-left: 5px !important;
	transition: opacity 0.2s ease !important;
}

.wpr-auth-bottom-switch a:hover {
	opacity: 0.8 !important;
	text-decoration: underline !important;
}

/* ── 7. Phone OTP Inputs (Inside Login) ─────────────────────────────────── */
.wpr-otp-verification-wrapper {
	background: #fdf2f6 !important;
	border: 1px solid #fce4ec !important;
	border-radius: 10px !important;
	padding: 18px !important;
	margin-top: 14px !important;
	margin-bottom: 18px !important;
}

.wpr-otp-inputs-container {
	display: flex !important;
	gap: 8px !important;
	justify-content: space-between !important;
	margin-bottom: 14px !important;
}

.wpr-otp-inputs-container input.wpr-otp-input-digit {
	display: inline-block !important;
	width: 44px !important;
	min-width: 44px !important;
	max-width: 44px !important;
	height: 48px !important;
	min-height: 48px !important;
	line-height: 46px !important;
	padding: 0 !important;
	margin: 0 !important;
	text-align: center !important;
	font-family: "Inter", sans-serif !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 6px !important;
	background: #ffffff !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
}

.wpr-otp-inputs-container input.wpr-otp-input-digit:focus {
	border-color: var(--wpr-color-accent, #da1c5c) !important;
	box-shadow: 0 0 0 3px rgba(218, 28, 92, 0.1) !important;
}

.wpr-otp-meta-row {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	font-size: 13px !important;
	margin-bottom: 14px !important;
}

.wpr-otp-timer-text {
	color: #64748b !important;
}

.wpr-otp-countdown {
	font-weight: 700 !important;
	color: #0f172a !important;
}

.wpr-otp-resend-link {
	font-weight: 700 !important;
	color: var(--wpr-color-accent, #da1c5c) !important;
	text-decoration: none !important;
}

.wpr-otp-resend-link.disabled {
	opacity: 0.5 !important;
	pointer-events: none !important;
	color: #94a3b8 !important;
}

/* ── 8. Tab Panel Transitions ───────────────────────────────────────────── */
.wpr-auth-tab-panel {
	animation: wprAuthFadeIn 0.25s ease forwards;
}

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

/* ── 9. Responsive Breakpoints ─────────────────────────────────────────── */

/* Tablet & Compact Screens (≤ 1023px) */
@media (max-width: 1023px) {
	#customer_login.wpr-auth-card {
		flex-direction: column !important;
		max-width: 680px !important;
		border-radius: 20px !important;
	}
	.wpr-auth-media-pane {
		flex: 0 0 auto !important;
		width: 100% !important;
		max-width: 100% !important;
		padding: 32px 28px !important;
		border-right: none !important;
		border-bottom: 1px solid #fae1eb !important;
	}
	.wpr-auth-left-title {
		font-size: 26px !important;
	}
	.wpr-auth-hero-visual {
		max-width: 260px !important;
	}
	.wpr-auth-form-pane {
		flex: 0 0 auto !important;
		width: 100% !important;
		max-width: 100% !important;
		padding: 36px 30px !important;
	}
}

/* Mobile Screens (≤ 767px) */
@media (max-width: 767px) {
	.wpr-auth-page-wrapper {
		padding: 16px 0 40px !important;
	}
	#customer_login.wpr-auth-card {
		flex-direction: column !important;
		border-radius: 16px !important;
		margin: 0 12px !important;
		width: calc(100% - 24px) !important;
	}
	.wpr-auth-media-pane {
		padding: 24px 20px !important;
		border-right: none !important;
		border-bottom: 1px solid #fae1eb !important;
	}
	.wpr-auth-left-title {
		font-size: 24px !important;
	}
	.wpr-auth-hero-visual-wrap {
		margin: 10px 0 14px !important;
	}
	.wpr-auth-hero-visual {
		max-width: 220px !important;
	}
	.wpr-auth-bottom-benefits {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 12px 8px !important;
	}
	.wpr-auth-form-pane {
		padding: 28px 20px !important;
	}
	.wpr-auth-primary-tabs {
		margin-bottom: 20px !important;
	}
	.wpr-auth-tab-btn {
		font-size: 13px !important;
		padding: 10px !important;
	}
}

/* Small Mobile (≤ 430px) */
@media (max-width: 430px) {
	#customer_login.wpr-auth-card {
		margin: 0 !important;
		width: 100% !important;
		border-radius: 0 !important;
		border-left: none !important;
		border-right: none !important;
	}
	.wpr-auth-media-pane {
		padding: 20px 16px !important;
	}
	.wpr-auth-left-title {
		font-size: 22px !important;
	}
	.wpr-auth-hero-visual {
		max-width: 180px !important;
	}
	.wpr-auth-form-pane {
		padding: 22px 16px !important;
	}
	.wpr-otp-inputs-container {
		gap: 6px !important;
	}
	.wpr-otp-inputs-container input.wpr-otp-input-digit {
		width: 38px !important;
		min-width: 38px !important;
		max-width: 38px !important;
		height: 44px !important;
		min-height: 44px !important;
		font-size: 18px !important;
	}
}

/* Ultra Small Mobile (≤ 360px) */
@media (max-width: 360px) {
	.wpr-auth-form-pane {
		padding: 18px 12px !important;
	}
	.wpr-auth-tab-btn {
		font-size: 12px !important;
		padding: 8px 6px !important;
	}
	.wpr-otp-inputs-container {
		gap: 4px !important;
	}
	.wpr-otp-inputs-container input.wpr-otp-input-digit {
		width: 33px !important;
		min-width: 33px !important;
		max-width: 33px !important;
		height: 40px !important;
		min-height: 40px !important;
		font-size: 16px !important;
	}
}
