.mta-auth * { box-sizing: border-box; }
.mta-auth { width: 100%; max-width: 542px; margin-inline: auto; color: #222; font-family: inherit; }
.mta-auth .screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; padding: 0; }
.mta-widget-button { line-height: 1; min-height: 0 !important; height: auto !important; overflow: visible !important; }
.mta-auth__header { text-align: center; margin: 0 0 32px; }
.mta-auth__header h2 { margin: 0 0 8px; font-size: 32px; line-height: 1.2; font-weight: 700; letter-spacing: 0; color: #151515; }
.mta-auth__header p { margin: 0; font-size: 16px; line-height: 1.5; color: #666; }
.mta-card { border: 1px solid #ddd; background: #fff; padding: 34px 24px; border-radius: 0; }
.mta-form { display: none; }
.mta-view-signup .mta-signup-form, .mta-view-login .mta-login-form, .mta-view-reset .mta-reset-form { display: block; }
.mta-label, .mta-field { display: block; font-size: 14px; line-height: 1.45; font-weight: 500; color: #252525; }
.mta-required-star { color: #cc3b3b; font-weight: 700; }
.mta-role-block, .mta-login-access-block { margin-bottom: 30px; }
.mta-role-options { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 14px; color: #343434; }
.mta-access-note { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 12px; border: 1px solid #e7dccf; background: #fbf7f2; color: #7e4f27; font-size: 14px; line-height: 1.35; font-weight: 600; }
.mta-radio, .mta-check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.45; color: inherit; cursor: pointer; }
.mta-radio input, .mta-check input { position: absolute; opacity: 0; pointer-events: none; }
.mta-radio span { width: 20px; height: 20px; border: 5px solid #edf3ff; border-radius: 999px; background: #edf3ff; }
.mta-radio input:checked + span { border-color: #3b7ee8; background: #fff; box-shadow: inset 0 0 0 4px #fff; }
.mta-check span { position: relative; width: 20px; height: 20px; border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; flex: 0 0 auto; }
.mta-check input:checked + span { background: #3b7ee8; border-color: #3b7ee8; }
.mta-check input:checked + span::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mta-field-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 18px; }
.mta-field-grid > * { grid-column: span 3; }
.mta-full { grid-column: 1 / -1; }
.mta-half { grid-column: span 3; }
.mta-third { grid-column: span 2; }
.mta-custom-field-group { box-sizing: border-box; grid-column: 1 / -1; width: 100%; }
.mta-custom-field-group *, .mta-custom-field-group *::before, .mta-custom-field-group *::after { box-sizing: border-box; }
.mta-custom-field-group__title { margin: 0 0 18px; color: #222; font-size: 20px; line-height: 1.3; }
.mta-custom-field-group__values { display: grid; gap: 12px; margin: 0; }
.mta-custom-field-group__value { display: grid; grid-template-columns: minmax(120px, .75fr) minmax(0, 1.25fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid #e5e7eb; }
.mta-custom-field-group__value dt, .mta-custom-field-group__value dd { margin: 0; }
.mta-custom-field-group__value dt { color: #6b7280; font-weight: 600; }
.mta-custom-field-group__value dd { color: #222; overflow-wrap: anywhere; }
.mta-field-label { display: block; margin: 0; color: inherit; font: inherit; }
.mta-field input, .mta-field textarea, .mta-field select { width: 100%; min-width: 0; height: 48px; margin-top: 8px; border: 1px solid #ddd; border-radius: 0; background: #fff; color: #333; font: inherit; padding: 0 16px; outline: none; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.mta-field textarea { height: auto; min-height: 104px; padding-top: 12px; resize: vertical; }
.mta-field input:hover, .mta-field textarea:hover, .mta-field select:hover { border-color: #c9b39e; }
.mta-field input:focus, .mta-field textarea:focus, .mta-field select:focus { border-color: #b88a5d; box-shadow: 0 0 0 2px rgba(184,138,93,.14); }
.mta-field.is-error input, .mta-field.is-error textarea, .mta-field.is-error select, .mta-check.is-error > span { border-color: #cc3b3b; box-shadow: 0 0 0 2px rgba(204,59,59,.12); }
.mta-error-text { display: block; width: 100%; margin-top: 7px; color: #cc3b3b; font-size: 12px; line-height: 1.35; font-weight: 600; }
.mta-error-text--check { margin: -6px 0 4px 30px; }
.mta-password-control { position: relative; }
.mta-password-control input { padding-right: 48px; }
.mta-eye { position: absolute; right: 12px; top: calc(50% + 4px); transform: translateY(-50%); width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #333; cursor: pointer; padding: 0; }
.mta-eye svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mta-eye .mta-eye-closed, .mta-eye.is-visible .mta-eye-open { display: none; }
.mta-eye.is-visible .mta-eye-closed { display: block; }
.mta-consents { display: grid; gap: 16px; margin: 32px 0; color: #343434; }
.mta-consents a, .mta-login-row a, .mta-link-button, .mta-switch button { color: #a9703f; text-decoration: none; }
.mta-link-button { border: 0; background: transparent; padding: 0; cursor: pointer; font: inherit; }
.mta-login-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 32px; color: #343434; }
.mta-popup-buttons { display: inline-flex; align-items: center; justify-content: inherit; flex-wrap: wrap; gap: 12px; max-width: 100%; }
.mta-popup-buttons--both { gap: 10px; }
.mta-submit, .mta-open-popup , .mta-submit.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 14px; max-width: 100%; min-height: 46px; border: 0; border-radius: 0; background: #b7895d; color: #fff; padding: 12px 22px; font-size: 16px; line-height: 1.2; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.mta-dashboard-home-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; max-width: 100%; min-height: 44px; border: 1px solid #b7895d; border-radius: 4px; background: #b7895d; color: #fff; padding: 10px 18px; font-size: 15px; line-height: 1.2; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.mta-open-popup--login { border: 1px solid #b7895d; background: transparent; color: #9f734d; }
.mta-submit , .mta-submit.btn-primary { margin: 0 auto; min-width: 138px; display: flex; }
.mta-submit:hover, .mta-open-popup:hover , .mta-submit.btn-primary:hover{ background: #9f734d; color: #fff; transform: translateY(0px); }
.mta-dashboard-home-button:hover { background: #9f734d; border-color: #9f734d; color: #fff; transform: translateY(0px); text-decoration: none; }
.mta-open-popup--login:hover { background: #f7efe8; color: #9f734d; }
.mta-submit:focus-visible, .mta-open-popup:focus-visible { outline: 2px solid #b7895d; outline-offset: 3px; }
.mta-dashboard-home-button:focus-visible { outline: 2px solid #b7895d; outline-offset: 3px; }
.mta-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.mta-button-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 1; color: currentColor; }
.mta-button-icon svg { display: block; width: 1em; height: 1em; fill: currentColor; }
.mta-switch { text-align: center; margin-top: 22px; color: #343434; }
.mta-switch button { border: 0; background: transparent; padding: 0; cursor: pointer; font: inherit; }
.mta-notice { margin-bottom: 18px; padding: 12px 14px; border-left: 4px solid #cc3b3b; background: #fff4f4; color: #8a1f1f; }
.mta-notice.is-success { border-left-color: #1d8f5a; background: #eefbf4; color: #12633d; }
.mta-choice-list { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 8px; }
.mta-inline-choice { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.mta-inline-choice input { width: auto; height: auto; margin: 0; padding: 0; }
.mta-popup-portal, .mta-popup-portal__scope { position: static; }
.mta-popup[hidden] { display: none; }
.mta-popup { position: fixed !important; inset: 0 !important; z-index: 999999; width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.mta-popup__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.48); }
.mta-popup__dialog { position: relative; z-index: 1; width: min(100%, 650px); max-height: calc(100vh - 48px); margin: auto; overflow: auto; background: #f7f7f7; padding: 28px 20px; animation: mtaPopupIn .28s ease-out both; }
.mta-popup__close { position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: #222; }
.mta-logged-in { text-align: center; }
.mta-logged-in h2 { margin-top: 0; }
.mta-account-menu, .mta-account-menu * { box-sizing: border-box; }
.mta-account-menu { position: relative !important; display: inline-flex !important; align-items: center; width: auto !important; max-width: 100%; text-align: left; vertical-align: middle; isolation: isolate; }
.mta-account-toggle { display: inline-flex !important; align-items: center; justify-content: center; gap: 10px; width: auto !important; min-width: 0; min-height: 44px; border: 1px solid #d8dee8; border-radius: 4px; background: #fff; color: #222; padding: 8px 14px; cursor: pointer; font: inherit; line-height: 1.2; box-shadow: none; }
.mta-account-toggle:hover, .mta-account-menu.is-open .mta-account-toggle { border-color: #b7895d; color: #111; }
.mta-account-avatar, .mta-account-avatar img { width: 28px !important; height: 28px !important; max-width: 28px !important; border-radius: 50%; display: inline-flex; overflow: hidden; flex: 0 0 28px; }
.mta-account-name { display: block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mta-account-caret { width: 9px; height: 9px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); flex: 0 0 9px; }
.mta-account-dropdown { position: fixed !important; right: auto !important; left: var(--mta-account-left, 12px) !important; top: var(--mta-account-top, 64px) !important; bottom: auto !important; z-index: 999999 !important; width: max-content !important; min-width: 210px; max-width: min(280px, calc(100vw - 24px)); height: auto !important; min-height: 0 !important; max-height: calc(100vh - 90px); overflow: auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 18px 44px rgba(15,23,42,.16); padding: 6px; display: none !important; }
.mta-account-menu.is-open .mta-account-dropdown { display: block !important; }
.mta-account-nav, .mta-account-nav ul, .mta-account-dropdown .sub-menu { position: static !important; display: block !important; float: none !important; width: auto !important; height: auto !important; min-height: 0 !important; max-height: none !important; list-style: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; opacity: 1 !important; visibility: visible !important; transform: none !important; }
.mta-account-dropdown .sub-menu { margin-top: 2px !important; padding-left: 10px !important; border-left: 1px solid #edf1f6 !important; }
.mta-account-nav li { position: relative !important; display: block !important; float: none !important; width: 100% !important; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
.mta-account-nav a { display: flex !important; align-items: center; width: 100% !important; min-height: 38px; padding: 9px 12px !important; border-radius: 6px; color: #1f2937; text-decoration: none !important; font-size: 14px; line-height: 1.35; font-weight: 500; white-space: nowrap; background: transparent; }
.mta-account-nav a:hover, .mta-account-nav a:focus { background: #f6f3f0; color: #9f734d; outline: none; }
.mta-account-nav__logout { margin-top: 6px !important; padding-top: 6px !important; border-top: 1px solid #edf1f6 !important; }
.mta-account-nav__logout a { color: #b42318; font-weight: 700; }
.mta-account-nav__logout a:hover, .mta-account-nav__logout a:focus { background: #fff1f1; color: #912018; }
.mta-verify-card { text-align: center; max-width: 638px; margin-inline: auto; padding: 34px 30px; }
.mta-complete-head,
.mta-verified-head { margin-bottom: 18px; }
.mta-success-icon { display: inline-flex; align-items: center; justify-content: center; width: 82px; height: 82px; margin: 0 auto 16px; border-radius: 50%; background: linear-gradient(180deg, #f0fff7 0%, #e7f6ef 100%); color: #12633d; box-shadow: 0 16px 34px rgba(18,99,61,.16), inset 0 0 0 1px rgba(18,99,61,.08); }
.mta-success-icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mta-success-icon-img { width: 48px; height: 48px; object-fit: contain; filter: invert(26%) sepia(68%) saturate(720%) hue-rotate(102deg) brightness(92%) contrast(91%); }
.mta-complete-head h2,
.mta-verified-head h2 { margin-bottom: 8px; }
.mta-signup-success-card,
.mta-verified-card { position: relative; overflow: hidden; text-align: center; max-width: 638px; margin-inline: auto; padding: 34px 38px 38px; border-color: #e5eee8; background: linear-gradient(180deg, #ffffff 0%, #fbfffd 100%); box-shadow: 0 18px 44px rgba(18,99,61,.08); }
.mta-signup-success-card::before,
.mta-verified-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #12633d, #b7895d); }
.mta-signup-success-message,
.mta-verified-message { margin: 0 auto 24px; max-width: 520px; color: #343434; font-size: 17px; line-height: 1.6; }
.mta-success-login { margin-top: 0; }
.mta-verified-thanks { margin: 0 0 12px; color: #12633d; font-weight: 800; }
.mta-verified-contact { margin: 18px 0 0; color: #666; }
.mta-verify-thanks { margin: 0 0 28px; font-weight: 600; }
.mta-verify-timer { margin: 0 0 26px; color: #a27852; font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: 1px; }
.mta-verify-message { margin: 0 auto 24px; max-width: 540px; line-height: 1.5; }
.mta-resend { border: 0; background: transparent; color: #a9703f; font: inherit; cursor: pointer; padding: 0; }
.mta-resend:disabled { opacity: .65; cursor: wait; }
.mta-verify-divider { height: 1px; background: #e7e2de; margin: 34px 0; }
.mta-verify-footer { margin: 0 auto; max-width: 430px; line-height: 1.5; }
@keyframes mtaPopupIn {
	from { opacity: 0; transform: translateY(18px) scale(.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes mtaFormItemIn {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}
.mta-view-signup .mta-signup-form .mta-role-block,
.mta-view-login .mta-login-form .mta-field-grid > *,
.mta-view-reset .mta-reset-form .mta-field-grid > *,
.mta-view-signup .mta-signup-form .mta-field-grid > *,
.mta-view-signup .mta-signup-form .mta-consents,
.mta-view-login .mta-login-form .mta-login-row,
.mta-view-signup .mta-signup-form .mta-submit,
.mta-view-login .mta-login-form .mta-submit,
.mta-view-reset .mta-reset-form .mta-submit,
.mta-view-signup .mta-signup-form .mta-switch,
.mta-view-login .mta-login-form .mta-switch,
.mta-view-reset .mta-reset-form .mta-switch {
	animation: mtaFormItemIn .42s ease-out both;
	animation-delay: var(--mta-form-delay, 0ms);
}
.mta-view-signup .mta-signup-form .mta-role-block,
.mta-view-login .mta-login-form .mta-field-grid > :nth-child(1),
.mta-view-reset .mta-reset-form .mta-field-grid > :nth-child(1),
.mta-view-signup .mta-signup-form .mta-field-grid > :nth-child(1) { --mta-form-delay: 30ms; }
.mta-view-login .mta-login-form .mta-field-grid > :nth-child(2),
.mta-view-signup .mta-signup-form .mta-field-grid > :nth-child(2) { --mta-form-delay: 70ms; }
.mta-view-signup .mta-signup-form .mta-field-grid > :nth-child(3) { --mta-form-delay: 110ms; }
.mta-view-signup .mta-signup-form .mta-field-grid > :nth-child(4) { --mta-form-delay: 150ms; }
.mta-view-signup .mta-signup-form .mta-field-grid > :nth-child(5) { --mta-form-delay: 190ms; }
.mta-view-signup .mta-signup-form .mta-field-grid > :nth-child(n+6) { --mta-form-delay: 230ms; }
.mta-view-signup .mta-signup-form .mta-consents,
.mta-view-login .mta-login-form .mta-login-row { --mta-form-delay: 260ms; }
.mta-view-signup .mta-signup-form .mta-submit,
.mta-view-login .mta-login-form .mta-submit,
.mta-view-reset .mta-reset-form .mta-submit { --mta-form-delay: 310ms; }
.mta-view-signup .mta-signup-form .mta-switch,
.mta-view-login .mta-login-form .mta-switch,
.mta-view-reset .mta-reset-form .mta-switch { --mta-form-delay: 350ms; }
@media (prefers-reduced-motion: reduce) {
	.mta-popup__dialog,
	.mta-view-signup .mta-signup-form .mta-role-block,
	.mta-view-login .mta-login-form .mta-field-grid > *,
	.mta-view-reset .mta-reset-form .mta-field-grid > *,
	.mta-view-signup .mta-signup-form .mta-field-grid > *,
	.mta-view-signup .mta-signup-form .mta-consents,
	.mta-view-login .mta-login-form .mta-login-row,
	.mta-view-signup .mta-signup-form .mta-submit,
	.mta-view-login .mta-login-form .mta-submit,
	.mta-view-reset .mta-reset-form .mta-submit,
	.mta-view-signup .mta-signup-form .mta-switch,
	.mta-view-login .mta-login-form .mta-switch,
	.mta-view-reset .mta-reset-form .mta-switch {
		animation: none;
	}
}
@media (max-width: 640px) {
	.mta-auth__header h2 { font-size: 28px; }
	.mta-card { padding: 24px 18px; }
	.mta-field-grid { grid-template-columns: 1fr; gap: 20px; }
	.mta-half, .mta-third { grid-column: 1 / -1; }
	.mta-custom-field-group__value { grid-template-columns: 1fr; gap: 4px; }
	.mta-role-options, .mta-login-row { align-items: flex-start; flex-direction: column; }
	.mta-popup { padding: 12px; }
	.mta-popup__dialog { max-height: calc(100vh - 24px); padding: 24px 12px; }
}

/* Password Strength Styles */
.mta-password-strength { margin-top: 10px; }
.mta-password-strength__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; color: #666; }
.mta-password-strength__top strong { color: #222; font-weight: 600; }
.mta-password-strength__bar { height: 6px; background: #eee; border-radius: 3px; overflow: hidden; }
.mta-password-strength__fill { display: block; height: 100%; width: 0; transition: width 0.3s ease, background-color 0.3s ease; }

[data-score="1"] .mta-password-strength__fill { background-color: #ff4d4d; }
[data-score="2"] .mta-password-strength__fill { background-color: #ffa64d; }
[data-score="3"] .mta-password-strength__fill { background-color: #ffdb4d; }
[data-score="4"] .mta-password-strength__fill { background-color: #99e600; }
[data-score="5"] .mta-password-strength__fill { background-color: #2db300; }

.mta-password-rules { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; color: #999; }
.mta-password-rules li { display: flex; align-items: center; gap: 6px; }
.mta-password-rules li::before { content: "●"; font-size: 8px; }
.mta-password-rules li.is-met { color: #2db300; }
.mta-password-rules li.is-met::before { content: "✓"; font-size: 12px; font-weight: bold; }
.mta-check span.mta-required-star { display: none;}
