/* Minimalist Modern Frontend Stylesheet for Unlock Plugin (RTL) */

:root {
	--unlock-bg: #ffffff;
	--unlock-card-bg: #ffffff;
	--unlock-text-main: #0f172a;
	--unlock-text-muted: #64748b;
	--unlock-primary: #2563eb;
	--unlock-primary-hover: #1d4ed8;
	--unlock-border: #e2e8f0;
	--unlock-input-bg: #f8fafc;
	--unlock-input-focus: #ffffff;
	--unlock-radius: 12px;
	--unlock-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

.unlock-auth-container.rtl {
	direction: rtl;
	text-align: right;
	font-family: inherit;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px 10px;
}

.unlock-auth-card {
	background: var(--unlock-card-bg);
	border: 1px solid var(--unlock-border);
	border-radius: var(--unlock-radius);
	box-shadow: var(--unlock-shadow);
	padding: 32px 28px;
	width: 100%;
	max-width: 420px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tabs Header Styling */
.unlock-tabs-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 2px solid #f1f5f9;
	margin-bottom: 24px;
}

.unlock-tab-btn {
	flex: 1;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	padding: 10px 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--unlock-text-muted);
	cursor: pointer;
	transition: all 0.2s ease;
	margin-bottom: -2px;
	text-align: center;
}

.unlock-tab-btn:hover {
	color: var(--unlock-text-main);
}

.unlock-tab-btn.active {
	color: var(--unlock-primary);
	border-bottom-color: var(--unlock-primary);
	font-weight: 700;
}

/* Registration Fields Grid (50% / 100%) */
.unlock-reg-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}

.unlock-field-50 {
	flex: 0 0 calc(50% - 6px);
	width: calc(50% - 6px);
	margin-bottom: 6px;
	box-sizing: border-box;
}

.unlock-field-100 {
	flex: 0 0 100%;
	width: 100%;
	margin-bottom: 6px;
	box-sizing: border-box;
}

@media (max-width: 480px) {
	.unlock-field-50 {
		flex: 0 0 100%;
		width: 100%;
	}
}

.unlock-form-header {
	margin-bottom: 24px;
	text-align: center;
}

.unlock-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--unlock-text-main);
	margin: 0 0 6px 0;
	letter-spacing: -0.3px;
}

.unlock-subtitle {
	font-size: 13px;
	color: var(--unlock-text-muted);
	margin: 0;
	line-height: 1.6;
}

.unlock-edit-link {
	color: var(--unlock-primary);
	text-decoration: none;
	font-weight: 600;
	margin-right: 6px;
	display: inline-block;
}

.unlock-edit-link:hover {
	text-decoration: underline;
}

.unlock-form-group {
	margin-bottom: 18px;
}

.unlock-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.unlock-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--unlock-text-main);
	margin-bottom: 6px;
}

.unlock-label.text-center {
	text-align: center;
}

.unlock-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.unlock-input {
	width: 100%;
	padding: 12px 14px;
	font-size: 14px;
	color: var(--unlock-text-main);
	background: var(--unlock-input-bg);
	border: 1.5px solid var(--unlock-border);
	border-radius: var(--unlock-radius);
	outline: none;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.unlock-input-wrapper .unlock-input {
	padding-left: 38px;
}

.unlock-input-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	color: var(--unlock-text-muted);
	height: 18px;
	width: 18px;
	z-index: 2;
}

.unlock-input-icon svg {
	display: block;
	stroke: var(--unlock-text-muted);
	opacity: 0.7;
	transition: stroke 0.2s, opacity 0.2s;
}

.unlock-input-wrapper:focus-within .unlock-input-icon svg {
	stroke: var(--unlock-primary);
	opacity: 1;
}

.unlock-input:focus {
	background: var(--unlock-input-focus);
	border-color: var(--unlock-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.unlock-input.ltr {
	direction: ltr;
	text-align: left;
}

/* OTP Boxes Minimalist */
.unlock-otp-boxes {
	display: flex;
	gap: 10px;
	justify-content: center;
	direction: ltr;
	margin-top: 10px;
}

.unlock-otp-digit {
	width: 48px;
	height: 52px;
	font-size: 22px;
	font-weight: 700;
	text-align: center;
	color: var(--unlock-text-main);
	background: var(--unlock-input-bg);
	border: 1.5px solid var(--unlock-border);
	border-radius: 10px;
	outline: none;
	transition: all 0.2s ease;
}

.unlock-otp-digit:focus {
	border-color: var(--unlock-primary);
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
	transform: translateY(-1px);
}

.unlock-timer-bar {
	text-align: center;
	font-size: 13px;
	color: var(--unlock-text-muted);
	margin: 16px 0;
}

.unlock-resend-link {
	color: var(--unlock-primary);
	font-weight: 600;
	text-decoration: none;
}

.unlock-resend-link:hover {
	text-decoration: underline;
}

.unlock-btn-submit {
	width: 100%;
	padding: 13px 20px;
	font-size: 14px;
	font-weight: 600;
	color: var(--unlock-btn-text, #ffffff);
	background: var(--unlock-btn-bg, #2563eb);
	border: none;
	border-radius: var(--unlock-radius);
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 8px;
}

.unlock-btn-submit:hover {
	background: var(--unlock-primary-hover);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.unlock-btn-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.unlock-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: unlock-spin 0.8s linear infinite;
}

@keyframes unlock-spin {
	to { transform: rotate(3600deg); }
}

.unlock-form-notice {
	font-size: 13px;
	padding: 10px 14px;
	border-radius: 8px;
	margin-bottom: 14px;
	text-align: center;
	font-weight: 500;
}

.unlock-form-notice.error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.unlock-form-notice.success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.unlock-logged-in-box {
	background: var(--unlock-card-bg);
	border: 1px solid var(--unlock-border);
	border-radius: var(--unlock-radius);
	padding: 24px;
	text-align: center;
	max-width: 400px;
	margin: 0 auto;
}

.unlock-btn-logout {
	display: inline-block;
	margin-top: 10px;
	padding: 8px 18px;
	background: #f1f5f9;
	color: #475569;
	border-radius: 8px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	transition: background 0.2s;
}

.unlock-btn-logout:hover {
	background: #e2e8f0;
	color: #1e293b;
}

/* Replaced Theme Forms & Popups styling */
.unlock-replaced-theme-form {
	direction: rtl;
	text-align: right;
	width: 100%;
	padding: 16px;
	margin: 16px 0;
	box-sizing: border-box;
}

.unlock-replaced-theme-form .unlock-auth-container {
	padding: 0;
	margin: 0;
}

.unlock-replaced-theme-form .unlock-auth-card {
	border: none;
	box-shadow: none;
	padding: 12px 16px;
	background: transparent;
}

