.mh-auth {
  --mh-field: #fff;
  color-scheme: light;
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 0;
  min-height: calc(100dvh - 78px);
  display: flex;
  flex-direction: column;
  font-family: "Manthub Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--mh-ink);
  background: radial-gradient(ellipse at 86% 25%, #e5efff 0, transparent 48%), linear-gradient(120deg, #fff, #f5f8ff 75%, #fff);
}
.mh-auth *, .mh-auth *::before, .mh-auth *::after { box-sizing: border-box; }
.mh-auth a { text-decoration: none; }
.mh-auth h1, .mh-auth h2 { font-family: inherit; color: var(--mh-ink); margin: 0; }
.mh-auth-ambient { pointer-events: none; position: absolute; z-index: -1; width: 820px; height: 720px; right: -300px; top: -450px; transform: rotate(-30deg); border-radius: 50%; background: linear-gradient(125deg, #d3e5ff30, #96c4ff4d); box-shadow: 0 0 0 65px #b5d4ff1a, 0 0 0 130px #b5d4ff10; }
.mh-auth-layout { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 90px; flex: 1; max-width: 1220px; padding-block: 30px 32px; }
.mh-auth-intro h1 { font-size: clamp(36px, 3.4vw, 54px); line-height: 1.14; font-weight: 750; letter-spacing: -.05em; margin: 23px 0 20px; }
.mh-auth-intro > p { color: var(--mh-muted); font-size: 18px; line-height: 1.65; letter-spacing: -.02em; max-width: 470px; margin: 0; }
.mh-auth-art { height: 205px; position: relative; max-width: 450px; margin: 15px 0 9px; }
.mh-auth-art > img { position: absolute; left: 46%; top: 50%; transform: translate(-50%, -50%) rotate(-5deg); border-radius: 25px; box-shadow: 0 18px 45px #006aff29; }
.mh-auth-orbit { position: absolute; left: 6%; right: 4%; height: 135px; top: 40px; border: 1px solid #9fc8ff; border-radius: 50%; transform: rotate(-15deg); }
.mh-auth-orbit::after { content: ""; position: absolute; inset: -27px 50px; border: 1px solid #a7cbff40; border-radius: 50%; transform: rotate(35deg); }
.mh-auth-chip { position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 14px 17px; border: 1px solid #dfebff; border-radius: 14px; color: var(--mh-ink); background: #ffffffd9; box-shadow: 0 10px 30px #336cc60b; font-size: 13px; font-weight: 550; }
.mh-chip-branch { left: 0; top: 26px; transform: rotate(-5deg); }
.mh-chip-branch svg { color: #006aff; }
.mh-chip-check { right: 0; bottom: 22px; transform: rotate(4deg); }
.mh-chip-check svg { color: #0cbb74; }
.mh-auth-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #147dff; }
.mh-dot-one { left: 21%; bottom: 26px; }
.mh-dot-two { right: 21%; top: 28px; }
.mh-auth-points { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; color: var(--mh-muted); font-size: 12px; }
.mh-auth-points span { display: inline-flex; align-items: center; gap: 7px; }
.mh-auth-points svg { color: #4481d8; }
.mh-auth-card { width: 100%; max-width: 480px; min-width: 0; justify-self: end; border: 1px solid var(--mh-border); border-radius: 24px; background: var(--mh-surface); box-shadow: 0 20px 70px #2864bc0d; padding: 32px; }
.mh-auth-card-heading > img { width: 42px; height: 42px; border-radius: 11px; margin-bottom: 14px; }
.mh-auth-card-heading h2 { font-size: 30px; font-weight: 700; letter-spacing: -.045em; line-height: 1.15; }
.mh-auth-card-heading > p { color: var(--mh-muted); font-size: 15px; line-height: 1.6; margin: 8px 0 22px; }
.mh-auth-card .ui.container.fluid { width: 100% !important; max-width: 100% !important; min-width: 0; margin: 0 !important; padding: 0 !important; }
.mh-auth .ui.top.attached.header { display: none; }
.mh-auth .ui.attached.segment { width: 100%; padding: 0; margin: 0; border: 0; background: transparent; box-shadow: none; color: var(--mh-ink); }
.mh-auth .ui.form { width: 100%; max-width: 100%; font-family: inherit; font-size: 14px; }
.mh-auth .ui.form .field { margin-bottom: 18px; }
.mh-auth .ui.form .field > label, .mh-auth .ui.form .field label { color: var(--mh-ink); font-size: 14px; font-weight: 550; margin-bottom: 9px; }
.mh-auth .ui.form .required.field > label::after { color: #e2586c; }
.mh-auth .ui.form input[type="text"], .mh-auth .ui.form input[type="email"], .mh-auth .ui.form input[type="password"] { width: 100%; height: 49px; padding: 12px 14px; border: 1px solid var(--mh-border); border-radius: 10px; color: var(--mh-ink); background: var(--mh-field); font: inherit; box-shadow: 0 1px 2px #143d7a03; transition: border-color .15s, box-shadow .15s; }
.mh-auth .ui.form input::placeholder { color: var(--mh-muted); opacity: .7; }
.mh-auth .ui.form input:focus { border-color: #438fff; box-shadow: 0 0 0 3px #006aff14; outline: none; }
.mh-auth .ui.form input:autofill, .mh-auth .ui.form input:-webkit-autofill { -webkit-text-fill-color: var(--mh-ink); caret-color: var(--mh-ink); box-shadow: inset 0 0 0 1000px var(--mh-field); }
.mh-auth .ui.form input:autofill:focus, .mh-auth .ui.form input:-webkit-autofill:focus { box-shadow: inset 0 0 0 1000px var(--mh-field), 0 0 0 3px #006aff14; }
.mh-auth .ui.form .error input { border-color: #dc5a70; background: var(--mh-field); }
.mh-auth .ui.form .field > .tw-flex { align-items: center; margin-bottom: 9px !important; gap: 8px; }
.mh-auth .ui.form .field > .tw-flex label { margin-bottom: 0; }
.mh-auth .ui.form a { color: #0965eb; font-size: 12px; font-weight: 550; }
.mh-auth .ui.form a:hover { text-decoration: underline; }
.mh-auth .ui.form .inline.field { margin-top: 0; margin-bottom: 18px; }
.mh-auth .ui.checkbox label { padding-left: 0; font-size: 13px !important; color: var(--mh-muted) !important; line-height: 1.5; }
.mh-auth .ui.checkbox input:not(:checked) { background: var(--mh-field); border-color: #b9cbe3; }
.mh-auth .ui.checkbox input:checked { background-color: var(--mh-blue); border-color: var(--mh-blue); }
.mh-auth .ui.checkbox label::before { background: var(--mh-field); border-color: #c6d4e9; border-radius: 5px; }
.mh-auth .ui.checkbox input:checked ~ label::after { color: #006aff; }
.mh-auth .ui.primary.button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 49px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #0074ff, #0063f5); font: inherit; font-size: 15px; font-weight: 650; box-shadow: 0 5px 16px #006aff18; }
.mh-auth .ui.primary.button:hover { background: #005bdd; }
.mh-auth .ui.primary.button:disabled { opacity: .55; cursor: not-allowed; }
.mh-auth .ui.form .field:last-child { margin-bottom: 0; }
.mh-auth-password { position: relative; }
.mh-auth .ui.form .mh-auth-password input { padding-right: 48px; }
.mh-password-toggle { position: absolute; right: 7px; top: 7px; width: 35px; height: 35px; display: grid; place-items: center; border: 0; border-radius: 7px; color: var(--mh-muted); background: transparent; cursor: pointer; }
.mh-password-toggle:hover { color: var(--mh-blue); background: #006aff09; }
.mh-password-toggle .mh-eye-slash { display: none; }
.mh-password-toggle[aria-pressed="true"] .mh-eye-slash { display: block; }
.mh-auth-account-note { color: var(--mh-muted); font-size: 13px; line-height: 1.65; margin: 18px 0 0; text-align: center; }
.mh-auth-account-note a { color: var(--mh-blue); font-weight: 600; }
.mh-auth-card:has(.mh-auth-account-note) .field:has(a[href$="/user/sign_up"]) { display: none; }
.mh-auth-account-note > span { display: block; }
.mh-auth-card-footer { border-top: 1px solid var(--mh-border); margin-top: 20px; padding-top: 16px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--mh-muted); font-size: 12px; }
.mh-auth-card-footer svg { color: #3980df; }
.mh-auth .ui.negative.message, .mh-auth .flash-error { border: 1px solid #f2b6c0; background: #fff0f3; color: #9f2441; border-radius: 10px; box-shadow: none; font-size: 13px; line-height: 1.5; padding: 12px 14px; margin-bottom: 20px; }
.mh-auth .ui.message p { color: inherit; }
.mh-auth .divider-text { color: var(--mh-muted); font-size: 12px; margin: 25px 0 15px; }
.mh-auth .signin-passkey { display: block; text-align: center; margin-top: 16px; color: var(--mh-blue); font-size: 14px; cursor: pointer; }
.mh-auth .mh-captcha-field { display: grid; justify-items: center; gap: 8px; width: 100%; min-width: 0; margin-block: 3px 18px; }
.mh-auth-signup .ui.form .mh-captcha-field {margin-top: 20px;}
.mh-captcha-widget { width: 100%; min-width: 0; display: flex; justify-content: center; }
.mh-captcha-status { color: var(--mh-muted); font-size: 12px; line-height: 1.4; text-align: center; margin: 0; }
.mh-captcha-status:empty { display: none; }
.mh-captcha-retry { background: transparent; border: 0; padding: 3px 8px; font: inherit; font-size: 12px; color: var(--mh-blue); cursor: pointer; text-decoration: underline; }
.mh-captcha-retry[hidden] { display: none; }
.mh-auth .mh-register-note { margin: 0 0 18px; padding: 11px 13px; border: 1px solid var(--mh-border); border-radius: 9px; font-size: 13px; line-height: 1.5; color: var(--mh-muted); background: #006aff06; }
.mh-auth-signup .ui.container.fluid + .ui.container.fluid { margin-top: 22px !important; text-align: center; font-size: 13px; color: var(--mh-muted); }
.mh-auth-signup .ui.container.fluid + .ui.container.fluid a { color: var(--mh-blue); font-weight: 600; }
.mh-auth-pending .mh-auth-layout { grid-template-columns: 1fr; }
.mh-auth-recovery .mh-register-note {overflow-wrap: anywhere;}
.mh-auth-recovery .mh-status-back {margin-top: 0; font-size: 13px;}
.mh-auth-pending .mh-auth-card { justify-self: center; }
.mh-auth-pending .mh-button { width: 100%; }
.mh-auth-footer { display: flex; align-items: center; gap: 25px; max-width: 1220px; border-top: 1px solid var(--mh-border); padding-block: 24px; font-size: 12px; color: var(--mh-muted); }
.mh-auth-footer a { color: inherit; }
.mh-auth-footer > a:last-child { margin-left: auto; }
.mh-auth :focus-visible { outline: 3px solid #388aff; outline-offset: 3px; }
html[data-mh-theme="dark"] .mh-auth { --mh-field: #10213a; color-scheme: dark; background: radial-gradient(ellipse at 86% 18%, #173660 0, transparent 48%), linear-gradient(130deg, #0b1629, #111f38); }
html[data-mh-theme="dark"] .mh-auth-ambient { opacity: .3; }
html[data-mh-theme="dark"] .mh-auth-chip { background: #172e4e; border-color: #355275; }
html[data-mh-theme="dark"] .mh-auth .ui.form a { color: #75afff; }
html[data-mh-theme="dark"] .mh-auth .ui.checkbox label::before { border-color: #526888; }
html[data-mh-theme="dark"] .mh-auth .ui.negative.message, html[data-mh-theme="dark"] .mh-auth .flash-error { background: #431c2b; border-color: #8b4059; color: #ffb9c8; }
@media (max-width: 1150px) { .mh-auth-layout { gap: 55px; } .mh-auth-card { padding: 30px; } .mh-auth-points { gap: 14px; } .mh-auth-intro h1 { font-size: 39px; } .mh-auth-chip { padding: 12px; font-size: 12px; } }
@media (max-width: 900px) { .mh-auth-layout { grid-template-columns: 1fr 1fr; gap: 35px; } .mh-auth-intro h1 { font-size: 33px; } .mh-auth-intro > p { font-size: 16px; } .mh-auth-intro .mh-badge { font-size: 11px; } .mh-auth-art { height: 180px; } .mh-auth-art > img { width: 90px; height: 90px; border-radius: 21px; } .mh-auth-chip { font-size: 11px; gap: 6px; padding: 10px; } .mh-auth-chip svg { width: 16px; height: 16px; } .mh-auth-orbit { height: 115px; } .mh-auth-card { padding: 27px; } .mh-auth-card-heading h2 { font-size: 27px; } }
@media (max-width: 800px) { .mh-auth { min-height: calc(100dvh - 72px); } .mh-auth-layout { grid-template-columns: 1fr; padding-block: 35px; } .mh-auth-intro { display: none; } .mh-auth-card { justify-self: center; max-width: 450px; padding: 32px; } .mh-auth-card-heading > img { margin-bottom: 17px; } .mh-auth-footer { max-width: 450px; flex-wrap: wrap; gap: 14px; } .mh-auth-footer > span { order: 3; width: 100%; font-size: 11px; } }
@media (max-width: 500px) { .mh-auth-layout { padding-block: 27px 35px; } .mh-auth-card { padding: 27px 24px; border-radius: 20px; } .mh-auth-card-heading h2 { font-size: 28px; } .mh-auth-card-heading > p { margin-bottom: 25px; font-size: 14px; } .mh-auth .ui.form .field { margin-bottom: 21px; } .mh-auth-footer { padding-block: 21px; } .mh-auth .ui.form .field > .tw-flex { gap: 5px; } .mh-auth .ui.form a { font-size: 11px; } }
@media (max-width: 360px) { .mh-auth-card { padding: 25px 19px; } .mh-auth-card-heading h2 { font-size: 26px; } .mh-auth .ui.form .field label { font-size: 13px; } .mh-auth .ui.form a { font-size: 10px; } .mh-auth-card-footer { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .mh-auth .ui.form input { transition: none; } }
.mh-registration-details[hidden], .mh-verification-step[hidden] {display: none !important;}
.mh-auth .ui.form #email_code {height: 64px; text-align: center; font-size: 28px; font-weight: 650; letter-spacing: .25em;}
.mh-verification-hint {font-size: 13px; line-height: 1.6; color: var(--mh-muted);}
.mh-verification-actions {display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 18px 0;}
.mh-verification-actions button {border: 0; padding: 4px 0; background: transparent; color: var(--mh-blue); font: inherit; font-size: 13px; cursor: pointer;}
.mh-verification-actions button:disabled {color: var(--mh-muted); cursor: not-allowed;}
.mh-email-code-status { margin: 9px 0 0; font-size: 12px; line-height: 1.6; color: var(--mh-muted, #52658e); }
.mh-email-code-status:empty {display: none;}
.mh-email-code-status:not(:empty) {margin-bottom: 16px;}
.mh-email-code-status[data-error="true"] {color: #b12d4b;}
html[data-mh-theme="dark"] .mh-email-code-status[data-error="true"] {color: #ffafbf;}
