.mi-signup-root[hidden] {
	display: none !important;
}

.mi-signup-root {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	letter-spacing: normal !important;
}

.mi-signup-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(14, 24, 19, 0.62);
	backdrop-filter: blur(4px);
}

.mi-signup-modal {
	position: relative;
	z-index: 1;
	width: min(720px, 100%);
	max-height: min(90vh, 920px);
	overflow: auto;
	padding: 32px;
	border-radius: 30px;
	background: #ffffff;
	box-shadow: 0 24px 80px rgba(16, 31, 22, 0.22);
}

.mi-signup-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: #f2f4ef;
	color: #173524;
	font-size: 24px;
	cursor: pointer;
}

.mi-signup-head h2 {
	margin: 0 0 10px;
	color: #173524;
	font-size: clamp(30px, 5vw, 48px);
	line-height: 1;
	letter-spacing: -0.04em;
}

.mi-signup-head p {
	margin: 0 0 24px;
	color: #65756c;
	font-size: 17px;
	line-height: 1.6;
}

.mi-signup-step {
	display: none;
}

.mi-signup-step.is-active {
	display: block;
}

.mi-signup-account-actions {
	display: grid;
	gap: 14px;
}

.mi-signup-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.mi-signup-grid__full {
	grid-column: 1 / -1;
}

.mi-signup-form label {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: #173524;
	font-weight: 600;
}

.mi-required {
	color: #c65c36;
	font-style: normal;
}

.mi-signup-form input,
.mi-signup-form select {
	width: 100%;
	min-height: 56px;
	padding: 16px 18px;
	border: 1px solid #dfe7da;
	border-radius: 18px;
	background: #fff9ef;
	color: #173524;
	font-size: 16px;
}

.mi-password-field {
	position: relative;
}

.mi-password-field input {
	padding-right: 60px;
}

.mi-password-toggle {
	position: absolute;
	top: 50%;
	right: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none !important;
	box-shadow: none !important;
	background: none !important;
	outline: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	color: #65756c;
	transform: translateY(-50%);
	cursor: pointer;
	min-width: 32px !important;
	min-height: 32px !important;
}

.mi-password-toggle.is-active {
	color: #173524;
}

.mi-password-toggle__icon {
	display: block;
	width: 22px;
	height: 22px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 22px 22px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2365756c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.mi-password-toggle.is-active .mi-password-toggle__icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173524' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18'/%3E%3Cpath d='M10.6 10.7A3 3 0 0 0 13.4 13.5'/%3E%3Cpath d='M9.4 5.2A11.1 11.1 0 0 1 12 5c6.5 0 10 7 10 7a18.7 18.7 0 0 1-4 5.1'/%3E%3Cpath d='M6.6 6.7A18 18 0 0 0 2 12s3.5 7 10 7a9.7 9.7 0 0 0 4.2-.9'/%3E%3C/svg%3E");
}

.mi-signup-form small {
	color: #65756c;
	font-weight: 500;
}

.mi-signup-message {
	min-height: 26px;
	margin-top: 16px;
	color: #c65c36;
	font-size: 15px;
	font-weight: 600;
}

.mi-signup-message.is-success {
	color: #1d6b3f;
}

.mi-signup-submit,
.mi-signup-link {
	width: 100%;
	min-height: 58px;
	margin-top: 14px;
	border-radius: 18px;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
}

.mi-signup-submit {
	border: 0;
	background: #f6ad33;
	color: #173524;
	box-shadow: inset 0 -4px 0 rgba(23, 53, 36, 0.18);
}

.mi-signup-submit--link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.mi-signup-link {
	border: 1px solid #dfe7da;
	background: #fff;
	color: #173524;
}

.mi-signup-link--action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

body.mi-signup-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.mi-signup-modal {
		padding: 22px;
		border-radius: 24px;
	}

	.mi-signup-grid {
		grid-template-columns: 1fr;
	}
}
