/* OTP Login Container */
.lf-otp-container {
	max-width: 480px;
	margin: 60px auto;
	padding: 48px 32px;
	border: 1px solid rgba(171, 138, 59, 0.16);
	border-radius: 24px;
	background: rgba(255, 251, 245, 0.92);
	box-shadow: 0 14px 40px rgba(79, 52, 34, 0.1);
}

/* On WooCommerce My Account Page */
.woocommerce-account .lf-woocommerce-otp-wrapper .lf-otp-container {
	max-width: 100%;
	margin: 0;
	padding: 32px;
}

/* Logo */
.lf-otp-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 32px;
}

.lf-otp-logo img {
	max-height: 60px;
	width: auto;
	filter: drop-shadow(0 4px 12px rgba(52, 59, 23, 0.12));
}

/* Heading */
.lf-otp-heading {
	margin: 0 0 12px;
	color: var(--lf-ink);
	font-size: 1.8rem;
	font-weight: 400;
	text-align: center;
	line-height: 1.1;
}

.lf-otp-subheading {
	margin: 0 0 28px;
	color: rgba(79, 52, 34, 0.72);
	font-size: 0.98rem;
	text-align: center;
	line-height: 1.6;
}

/* Alert Messages */
.lf-otp-alert {
	margin: 0 0 20px;
	padding: 14px 16px;
	border-radius: 12px;
	font-size: 0.95rem;
	line-height: 1.5;
	animation: slideDown 0.3s ease;
}

.lf-otp-alert.error {
	background: rgba(220, 38, 38, 0.08);
	border: 1px solid rgba(220, 38, 38, 0.2);
	color: #991b1b;
}

.lf-otp-alert.success {
	background: rgba(34, 197, 94, 0.08);
	border: 1px solid rgba(34, 197, 94, 0.2);
	color: #15803d;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Step 1: Mobile Input */
.lf-otp-step,
.lf-otp-verify {
	display: grid;
	gap: 16px;
}

.lf-otp-step.hidden,
.lf-otp-verify.hidden {
	display: none;
}

/* Form Group */
.lf-form-group {
	display: grid;
	gap: 8px;
}

.lf-form-group label {
	color: var(--lf-brown);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.lf-form-group input {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid rgba(171, 138, 59, 0.24);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--lf-brown);
	font-size: 1rem;
	transition: all 0.25s ease;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.lf-form-group input:focus {
	outline: none;
	border-color: rgba(171, 138, 59, 0.48);
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 0 0 4px rgba(171, 138, 59, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.lf-form-group input::placeholder {
	color: rgba(79, 52, 34, 0.56);
}

/* OTP Input */
#lf-otp-code {
	letter-spacing: 0.1em;
	font-size: 1.5rem !important;
	font-weight: 700;
	text-align: center;
	font-family: 'Courier New', monospace;
}

/* Button */
.lf-otp-btn,
.lf-otp-secondary-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 14px;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.25s ease;
}

.lf-otp-btn {
	background: linear-gradient(180deg, #b99649 0%, #96772f 100%);
	color: var(--lf-white);
	box-shadow: 0 14px 28px rgba(171, 138, 59, 0.18);
}

.lf-otp-btn:hover:not(:disabled),
.lf-otp-btn:focus-visible:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 18px 36px rgba(171, 138, 59, 0.24);
}

.lf-otp-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Secondary Button */
.lf-otp-secondary-btn {
	background: transparent;
	color: var(--lf-gold-deep);
	border: 1px solid rgba(171, 138, 59, 0.26);
	font-size: 0.92rem;
	height: 44px;
	margin-top: 12px;
}

.lf-otp-secondary-btn:hover,
.lf-otp-secondary-btn:focus-visible {
	background: rgba(171, 138, 59, 0.08);
	border-color: rgba(171, 138, 59, 0.4);
}

/* Mobile Display */
.lf-mobile-display {
	font-weight: 700;
	color: var(--lf-brown);
}

/* Action Links */
.lf-otp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid rgba(171, 138, 59, 0.12);
}

.lf-otp-link {
	background: none;
	border: none;
	color: var(--lf-gold-deep);
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	padding: 0;
	transition: color 0.25s ease;
}

.lf-otp-link:hover,
.lf-otp-link:focus-visible {
	color: var(--lf-brown);
	outline: none;
}

/* Timer */
.lf-otp-timer {
	display: block;
	text-align: center;
	margin: 16px 0;
	color: rgba(79, 52, 34, 0.76);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.lf-otp-timer.hidden {
	display: none;
}

.lf-otp-timer.expired {
	color: #dc2626;
}

/* Info Box */
.lf-otp-info {
	padding: 16px;
	margin: 20px 0 0;
	border: 1px solid rgba(171, 138, 59, 0.14);
	border-radius: 12px;
	background: rgba(255, 251, 245, 0.72);
	color: rgba(79, 52, 34, 0.76);
	font-size: 0.92rem;
	line-height: 1.6;
}

.lf-otp-info strong {
	color: var(--lf-brown);
	display: block;
	margin-bottom: 6px;
}

/* Responsive */
@media (max-width: 640px) {
	.lf-otp-container {
		max-width: 100%;
		margin: 40px 16px;
		padding: 32px 20px;
	}

	.lf-otp-heading {
		font-size: 1.45rem;
	}

	.lf-otp-subheading {
		font-size: 0.92rem;
	}

	.lf-form-group input,
	.lf-otp-btn,
	.lf-otp-secondary-btn {
		height: 44px;
		font-size: 0.95rem;
	}

	#lf-otp-code {
		font-size: 1.3rem !important;
	}
}

/* Loading state */
.lf-otp-btn:disabled {
	background: linear-gradient(180deg, #a8875d 0%, #7a6424 100%);
	cursor: not-allowed;
}
