﻿/* Shared authentication pages */
html,
body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	background: #eef7f2 !important;
}

.mm-auth-wrap {
	--brand-950: #123b2a;
	--brand-900: #155438;
	--brand-800: #176542;
	--brand-700: #0f7a43;
	--brand-600: #16884d;
	--brand-500: #28a463;
	--brand-100: #e6f4ec;
	--brand-050: #f4faf6;
	--ink: #14231b;
	--muted: #66756d;
	--line: rgba(21, 84, 56, 0.16);
	--danger: #d92d20;
	--card: rgba(255, 255, 255, 0.78);
	--card-border: rgba(255, 255, 255, 0.74);
	position: relative;
	min-height: 100vh;
	width: 100%;
	overflow-x: hidden;
	color: var(--ink);
	background: repeating-linear-gradient( 90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 11%, rgba(255, 255, 255, 0.18) 11%, rgba(255, 255, 255, 0.18) 18% ), linear-gradient( 120deg, #eef9f4 0%, #dff4ea 25%, #edf5e8 46%, #f7ece4 68%, #e4f0ea 100% );
	font-family: "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

	.mm-auth-wrap,
	.mm-auth-wrap * {
		box-sizing: border-box;
	}

		.mm-auth-wrap::before {
			content: "";
			position: absolute;
			inset: 0;
			pointer-events: none;
			background: radial-gradient(circle at 7% 82%, rgba(244, 181, 170, 0.28), transparent 27%), radial-gradient(circle at 92% 10%, rgba(52, 141, 98, 0.16), transparent 31%);
		}

		.mm-auth-wrap.mm-arabic,
		.mm-auth-wrap.mm-arabic input,
		.mm-auth-wrap.mm-arabic select,
		.mm-auth-wrap.mm-arabic textarea,
		.mm-auth-wrap.mm-arabic button {
			font-family: "Readex Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
		}

.mm-brandbar {
	position: absolute;
	z-index: 5;
	top: 26px;
	right: clamp(20px, 4vw, 64px);
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.mm-arabic .mm-brandbar {
	right: auto;
	left: clamp(20px, 4vw, 64px);
}

.mm-lang-switcher select {
	appearance: none;
	min-width: 102px;
	height: 38px;
	border: 1px solid rgba(20, 35, 27, 0.16);
	border-radius: 999px;
	padding: 0 34px 0 15px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	background: linear-gradient(45deg, transparent 50%, #52635a 50%) calc(100% - 16px) 16px / 5px 5px no-repeat, linear-gradient(135deg, #52635a 50%, transparent 50%) calc(100% - 12px) 16px / 5px 5px no-repeat, rgba(255, 255, 255, 0.78);
	backdrop-filter: blur(12px);
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(29, 73, 51, 0.08);
}

	.mm-lang-switcher select:focus {
		outline: none;
		border-color: var(--brand-500);
		box-shadow: 0 0 0 4px rgba(40, 164, 99, 0.12);
	}

.mm-auth-row {
	position: relative;
	z-index: 1;
	width: min(1360px, calc(100% - 64px));
	min-height: 100vh;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 80px 0 48px;
}

.mm-auth-box {
	width: 100%;
	max-width: 480px;
	padding: 40px 36px 30px;
	border: 1px solid var(--card-border);
	border-radius: 40px;
	background: var(--card);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	box-shadow: 0 28px 70px rgba(31, 83, 56, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.85);
	text-align: center;
}

.mm-card-logo {
	width: 180px;
	max-height: 58px;
	object-fit: contain;
	margin: 0 auto 20px;
	display: block;
}

.mm-auth-title {
	margin: 0 0 8px;
	color: var(--ink);
	font-size: 26px;
	line-height: 1.15;
	font-weight: 800;
}

.mm-auth-subtitle {
	display: block;
	margin: 0 auto 26px;
	max-width: 390px;
	color: var(--muted);
	font-size: 13.5px;
	line-height: 1.55;
}

.mm-form-field {
	margin-top: 18px;
	text-align: left;
}

.mm-arabic .mm-form-field {
	text-align: right;
}

.mm-field-label {
	display: block;
	margin: 0 4px 8px;
	color: var(--brand-950);
	font-size: 13px;
	font-weight: 700;
}

.mm-digit-container + .field-validation-error {
	text-align: center;
}

.mm-auth-input {
	display: block;
	width: 100%;
	height: 50px;
	padding: 0 16px;
	border: 1px solid rgba(23, 101, 66, 0.28);
	border-radius: 15px;
	outline: none;
	background: rgba(255, 255, 255, 0.86);
	color: var(--ink);
	font-size: 14px;
	direction: ltr;
	text-align: left;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

	.mm-auth-input:focus {
		border-color: var(--brand-600);
		background: #fff;
		box-shadow: 0 0 0 4px rgba(22, 136, 77, 0.14);
	}

.field-validation-error,
.validation-summary-errors {
	display: block;
	margin-top: 7px;
	color: #b42318;
	font-size: 12px;
}

.validation-summary-errors,
.message-error {
	margin: 0 0 16px;
	padding: 10px 12px;
	border-radius: 12px;
	background: rgba(217, 45, 32, 0.07);
	color: #b42318;
	font-size: 12px;
	text-align: left;
}

.mm-arabic .validation-summary-errors,
.mm-arabic .message-error {
	text-align: right;
}

.validation-summary-errors ul {
	margin: 0;
	padding-left: 18px;
}

.mm-arabic .validation-summary-errors ul {
	padding-right: 18px;
	padding-left: 0;
}

.mm-result-message {
	margin: 0 0 18px;
	padding: 11px 13px;
	border: 1px solid rgba(15, 122, 67, 0.18);
	border-radius: 12px;
	background: rgba(230, 244, 236, 0.75);
	color: var(--brand-900);
	font-size: 12.5px;
	line-height: 1.45;
	text-align: left;
}

.mm-arabic .mm-result-message {
	text-align: right;
}

.mm-phone-number {
	display: inline-block;
	margin-top: 4px;
	color: var(--brand-700);
	font-weight: 800;
	direction: ltr;
}

.mm-digit-container {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin: 20px 0 10px;
	direction: ltr;
}

.mm-digit-input {
	width: 60px;
	height: 64px;
	border: 1px solid rgba(23, 101, 66, 0.32);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.85);
	color: var(--ink);
	font-size: 24px;
	font-weight: 800;
	text-align: center;
	box-shadow: none;
	transition: all 0.2s ease;
}

	.mm-digit-input:focus {
		outline: none;
		border-color: var(--brand-600);
		background: #fff;
		box-shadow: 0 0 0 4px rgba(22, 136, 77, 0.14);
		transform: translateY(-2px);
	}

.mm-auth-buttons {
	margin-top: 24px;
}

	.mm-auth-buttons input[type="submit"] {
		width: 100%;
		height: 48px;
		border: 0;
		border-radius: 999px;
		background: var(--brand-700);
		color: #fff;
		font-size: 14px;
		font-weight: 700;
		letter-spacing: 0.02em;
		cursor: pointer;
		box-shadow: 0 12px 24px rgba(15, 122, 67, 0.19);
		transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
	}

		.mm-auth-buttons input[type="submit"]:hover {
			background: var(--brand-900);
			transform: translateY(-1px);
			box-shadow: 0 16px 30px rgba(15, 122, 67, 0.24);
		}

		.mm-auth-buttons input[type="submit"]:disabled {
			background: #91bda7;
			cursor: not-allowed;
			transform: none;
			box-shadow: none;
		}

.mm-resend-section {
	margin-top: 16px;
	text-align: center;
}

.mm-resend-text {
	margin-bottom: 8px;
	color: var(--muted);
	font-size: 13px;
}

.mm-countdown {
	display: inline-block;
	color: var(--brand-700);
	font-weight: 800;
	direction: ltr;
}

.mm-resend-button {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--brand-700);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

	.mm-resend-button:hover:not(:disabled) {
		color: var(--brand-900);
		text-decoration: underline;
	}

	.mm-resend-button:disabled {
		color: #9aa59f;
		cursor: not-allowed;
		text-decoration: none;
	}

.mm-back-link {
	display: inline-block;
	margin-top: 18px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

	.mm-back-link:hover,
	.mm-back-link:focus {
		color: var(--brand-700);
		text-decoration: none;
	}

.mm-auth-footer {
	margin-top: 24px;
	padding: 0;
	color: rgba(20, 35, 27, 0.58);
	text-align: center;
	font-size: 11px;
	line-height: 1.4;
}

	.mm-auth-footer a {
		color: var(--brand-700);
		font-weight: 700;
		text-decoration: none;
	}

.mm-is-hidden {
	display: none;
}

@media (max-width: 600px) {
	.mm-auth-row {
		padding-top: 88px;
		width: min(100% - 24px, 500px);
	}

	.mm-auth-box {
		padding: 32px 20px 24px;
		border-radius: 28px;
	}

	.mm-digit-input {
		width: 50px;
		height: 56px;
		font-size: 20px;
	}
}
