html,
body {
	margin: 0;
	min-height: 100%;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

.mpa-body {
	margin: 0;
	color: #1c241f;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.mpa-screen {
	--mpa-primary: #195300;
	--mpa-secondary: #2f7a10;
	--mpa-bg: #0c2e00;
	--mpa-bg-image: none;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background:
		linear-gradient(135deg, var(--mpa-bg), var(--mpa-secondary)),
		var(--mpa-bg-image);
	background-position: center;
	background-size: cover;
	background-blend-mode: multiply;
}

.mpa-card {
	width: min(100%, 980px);
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	overflow: hidden;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.mpa-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 22px;
	padding: 56px 44px;
	text-align: center;
	background: linear-gradient(180deg, rgba(25, 83, 0, 0.05), rgba(25, 83, 0, 0.11));
	border-right: 1px solid rgba(25, 83, 0, 0.12);
}

.mpa-primary-logo {
	max-width: min(340px, 100%);
	max-height: 220px;
	object-fit: contain;
}

.mpa-store-name {
	margin: 0;
	color: var(--mpa-primary);
	font-size: 2rem;
	font-weight: 750;
	line-height: 1.15;
}

.mpa-panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 56px 44px;
}

.mpa-secondary-logo {
	width: min(320px, 100%);
	max-height: 110px;
	margin: 0 auto 24px;
	object-fit: contain;
}

.mpa-title {
	margin: 0 0 14px;
	color: var(--mpa-primary);
	font-size: 2rem;
	line-height: 1.15;
}

.mpa-description,
.mpa-secondary-text {
	color: #58665d;
	font-size: 1rem;
	line-height: 1.55;
}

.mpa-description p,
.mpa-secondary-text p {
	margin: 0 0 12px;
}

.mpa-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 12px;
}

.mpa-label {
	color: #26352a;
	font-weight: 700;
}

.mpa-code-field {
	position: relative;
}

.mpa-input {
	width: 100%;
	height: 54px;
	padding: 0 56px 0 16px;
	border: 1px solid #cfd8d1;
	border-radius: 12px;
	background: #fff;
	color: #1c241f;
	font-size: 1rem;
}

.mpa-no-toggle .mpa-input {
	padding-right: 16px;
}

.mpa-input:focus {
	border-color: var(--mpa-primary);
	box-shadow: 0 0 0 3px rgba(25, 83, 0, 0.16);
	outline: none;
}

.mpa-input[aria-invalid="true"] {
	border-color: #c73e2f;
	box-shadow: 0 0 0 3px rgba(199, 62, 47, 0.12);
}

.mpa-toggle-code {
	position: absolute;
	top: 50%;
	right: 8px;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #52635a;
	cursor: pointer;
	transform: translateY(-50%);
}

.mpa-toggle-code:hover,
.mpa-toggle-code:focus {
	background: rgba(25, 83, 0, 0.08);
	color: var(--mpa-primary);
	outline: none;
}

.mpa-toggle-code:focus-visible {
	box-shadow: 0 0 0 3px rgba(25, 83, 0, 0.16);
}

.mpa-icon {
	position: relative;
	width: 22px;
	height: 14px;
	border: 2px solid currentColor;
	border-radius: 999px / 70%;
}

.mpa-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	transform: translate(-50%, -50%);
}

.mpa-icon-eye-off {
	display: none;
}

.mpa-icon-eye-off::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -4px;
	width: 30px;
	height: 2px;
	background: currentColor;
	transform: rotate(42deg);
}

.mpa-toggle-code.is-visible .mpa-icon-eye {
	display: none;
}

.mpa-toggle-code.is-visible .mpa-icon-eye-off {
	display: block;
}

.mpa-feedback {
	display: none;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 0.94rem;
	line-height: 1.35;
}

.mpa-feedback.is-visible {
	display: block;
}

.mpa-feedback.is-error {
	border: 1px solid rgba(180, 35, 24, 0.16);
	background: #fdecec;
	color: #9f2a20;
}

.mpa-submit {
	height: 54px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(180deg, var(--mpa-secondary) 0%, var(--mpa-primary) 100%);
	color: #fff;
	font-weight: 750;
	cursor: pointer;
}

.mpa-submit:hover {
	filter: brightness(0.95);
}

.mpa-submit:disabled,
.mpa-submit:disabled:hover {
	background: #8aa37f;
	cursor: wait;
	filter: none;
	opacity: 0.92;
}

@media (max-width: 860px) {
	.mpa-screen {
		padding: 18px;
	}

	.mpa-card {
		grid-template-columns: 1fr;
	}

	.mpa-brand {
		padding: 36px 28px;
		border-right: 0;
		border-bottom: 1px solid rgba(25, 83, 0, 0.12);
	}

	.mpa-panel {
		padding: 36px 28px;
	}

	.mpa-store-name,
	.mpa-title {
		font-size: 1.65rem;
	}
}
