/* ── MultiAuth Login — Front-end Forms ─────────────────────── */

/* ── Login wall ────────────────────────────────────────────── */
.mal-login-wall {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 50vh;
	padding: 40px 20px;
}

.mal-login-wall__inner {
	background: #fff;
	border-radius: 12px;
	width: 100%;
	max-width: 420px;
	padding: 32px 28px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.mal-login-wall__title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 600;
	text-align: center;
}

.mal-login-wall__desc {
	margin: 0 0 20px;
	text-align: center;
	color: #666;
	font-size: 14px;
}

/* ── Inline form wrapper ───────────────────────────────────── */
.mal-inline-form {
	max-width: 420px;
	margin: 0 auto;
	padding: 24px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ── Tabs ──────────────────────────────────────────────────── */
.mal-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid #eee;
	margin-bottom: 20px;
}

.mal-tab {
	flex: 1;
	padding: 10px 16px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	font-size: 15px;
	font-weight: 500;
	color: #888;
	cursor: pointer;
	transition: color 0.15s, border-color 0.15s;
}

.mal-tab:hover {
	color: #333;
}

.mal-tab--active {
	color: #FF7396;
	border-bottom-color: #FF7396;
}

/* ── Sub-tabs (Password / OTP) ─────────────────────────────── */
.mal-sub-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 16px;
}

.mal-sub-tab {
	flex: 1;
	padding: 8px 12px;
	background: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	color: #666;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.mal-sub-tab:hover {
	background: #eee;
}

.mal-sub-tab--active {
	background: #FF7396;
	border-color: #FF7396;
	color: #fff;
}

/* ── Panels ────────────────────────────────────────────────── */
.mal-panel {
	display: none;
}

.mal-panel--active {
	display: block;
}

.mal-subpanel {
	display: none;
}

.mal-subpanel--active {
	display: block;
}

/* ── Form fields ───────────────────────────────────────────── */
.mal-field {
	margin-bottom: 16px;
}

.mal-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 500;
	color: #333;
}

.mal-field input[type="text"],
.mal-field input[type="email"],
.mal-field input[type="tel"],
.mal-field input[type="password"] {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.5;
	color: #333;
	background: #fff;
	transition: border-color 0.15s;
	box-sizing: border-box;
}

.mal-field input:focus {
	outline: none;
	border-color: #FF7396;
	box-shadow: 0 0 0 1px #FF7396;
}

/* ── Phone input with prefix ───────────────────────────────── */

/* ── Password rules checklist ──────────────────────────────── */
.mal-pw-rules {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 12px;
	font-size: 12px;
	color: #999;
}

.mal-pw-rules li::before {
	content: '○ ';
}

.mal-pw-rules li.mal-pw-pass {
	color: #00a32a;
}

.mal-pw-rules li.mal-pw-pass::before {
	content: '✓ ';
}

/* ── Phone input with prefix ───────────────────────────────── */
.mal-phone-input {
	display: flex;
	align-items: stretch;
}

.mal-phone-prefix {
	display: flex;
	align-items: center;
	padding: 0 12px;
	background: #f5f5f5;
	border: 1px solid #ccc;
	border-right: none;
	border-radius: 6px 0 0 6px;
	font-size: 14px;
	color: #333;
	font-weight: 500;
}

.mal-phone-input input[type="tel"] {
	border-radius: 0 6px 6px 0;
}

/* ── Buttons ───────────────────────────────────────────────── */
.mal-btn {
	display: inline-block;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s, opacity 0.15s;
	width: 100%;
	text-align: center;
}

.mal-btn--primary {
	background: #FF7396;
	color: #fff;
}

.mal-btn--primary:hover {
	background: #e6506f;
}

.mal-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ── Form messages ─────────────────────────────────────────── */
.mal-form-message {
	margin-bottom: 12px;
	padding: 0;
	font-size: 13px;
	border-radius: 6px;
	display: none;
}

.mal-form-message--visible {
	display: block;
	padding: 10px 12px;
}

.mal-form-message--error {
	background: #fef0f0;
	color: #cc1818;
	border: 1px solid #facece;
}

.mal-form-message--success {
	background: #f0faf0;
	color: #00a32a;
	border: 1px solid #c3e6cb;
}

/* ── Form links ────────────────────────────────────────────── */
.mal-form-link {
	margin: 12px 0 0;
	text-align: center;
	font-size: 13px;
}

.mal-form-link a {
	color: #FF7396;
	text-decoration: none;
}

.mal-form-link a:hover {
	text-decoration: underline;
}

/* Resend timer */
.mal-otp-resend--disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.mal-resend-timer {
	display: inline-block;
	font-size: 12px;
	color: #888;
	margin-left: 4px;
}

/* ── OTP steps ─────────────────────────────────────────────── */
.mal-otp-step {
	display: none;
}

.mal-otp-step--active {
	display: block;
}

/* ── Register view toggle (mobile / email) ─────────────────── */
.mal-reg-view {
	display: none;
}

.mal-reg-view--active {
	display: block;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 480px) {
	.mal-login-wall__inner,
	.mal-inline-form {
		padding: 20px 16px;
		margin: 0 12px;
	}
}
