.tm-auth { width: 100%; max-width: 504px; margin: 0 auto; color: #171717; font-family: inherit; font-size: 14px; line-height: 1.5; text-align: left; }
.tm-auth, .tm-auth * { box-sizing: border-box; }
.tm-auth__logo { display: block; width: 120px; height: 42px; margin: 0 auto 28px; object-fit: contain; }
.tm-auth h2 { margin: 0 0 18px; color: inherit; font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -.6px; }
.tm-auth[data-auth-stage="email"] h2 { margin-bottom: 32px; text-align: center; }
.tm-auth[data-auth-stage="code"] h2, .tm-auth[data-auth-stage="code"] .tm-auth__intro { text-align: center; }
.tm-auth[data-auth-stage="code"] .tm-auth__field { width: min(236px, 100%); margin: 10px auto 0; }
.tm-auth[data-auth-stage="code"] .tm-auth__form { gap: 24px; }
.tm-auth-dialog .tm-auth[data-auth-stage="code"] { min-height: 440px; }
.tm-auth:is([data-auth-stage="email"], [data-auth-stage="code"]) .tm-auth__field > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tm-auth__intro { margin: 0 0 26px; color: #626262; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.tm-auth__form { display: grid; gap: 16px; margin: 0; }
.tm-auth__separator { display: flex; align-items: center; gap: 16px; margin: 4px 0; color: #626262; font-size: 13px; }
.tm-auth__separator::before, .tm-auth__separator::after { content: ''; height: 1px; flex: 1; background: #e5e5e5; }
.tm-auth__social { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tm-auth .tm-auth__button.tm-auth__social-button { width: auto; }
.tm-auth .tm-auth__button.tm-auth__social-card { flex: 0 0 68px; width: 68px; height: 68px; min-height: 68px; padding: 20px; border-radius: 14px; }
.tm-auth__social-card svg { display: block; flex-shrink: 0; }
.tm-auth__field { display: grid; min-width: 0; gap: 8px; font-size: 13px; font-weight: 500; }
.tm-auth__field input { appearance: none; width: 100%; min-width: 0; height: 60px; margin: 0; padding: 16px; border: 1px solid #a5a5a5; border-radius: 12px; background: #fff; color: #171717; font: inherit; font-size: 16px; box-shadow: none; }
.tm-auth__field input::placeholder { color: #6b6b6b; opacity: 1; }
.tm-auth__password { position: relative; }
.tm-auth__password input { padding-right: 52px; }
.tm-auth .tm-auth__password-toggle { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #626262; cursor: pointer; }
.tm-auth .tm-auth__password-toggle:hover { background: #f6f6f6; color: #171717; }
.tm-auth .tm-auth__code { height: 64px; border: 2px solid #171717; border-radius: 10px; padding: 16px 16px 16px calc(16px + .65em); text-align: center; font-family: ui-monospace, monospace; font-size: 22px; font-weight: 400; letter-spacing: .65em; font-variant-numeric: tabular-nums; }
.tm-auth .tm-auth__code::placeholder { color: #838383; }
.tm-auth .tm-auth__code:focus-visible { outline: none; box-shadow: 0 0 0 1px #171717; }
.tm-auth .tm-auth__button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 56px; margin: 0; padding: 14px 18px; border: 1px solid #d5d5d5; border-radius: 12px; background: #fff; color: #171717; font: inherit; font-size: 16px; font-weight: 500; line-height: 1.4; text-align: center; cursor: pointer; box-shadow: none; }
.tm-auth .tm-auth__button:hover { background: #f6f6f6; }
.tm-auth .tm-auth__button--primary { border-color: #171717; background: #171717; color: #fff; }
.tm-auth .tm-auth__button--primary:hover { background: #333; }
.tm-auth .tm-auth__button:disabled, .tm-auth input:disabled { opacity: .55; cursor: default; }
.tm-auth__form[aria-busy="true"] .tm-auth__button:disabled, .tm-auth__form[aria-busy="true"] input:disabled { opacity: 1; }
.tm-auth .tm-auth__button[aria-busy="true"] { position: relative; cursor: progress; }
.tm-auth .tm-auth__button[aria-busy="true"]::before { content: ''; position: absolute; left: 18px; width: 17px; height: 17px; border: 1.5px solid rgb(255 255 255 / 25%); border-top-color: currentColor; border-right-color: currentColor; border-radius: 50%; animation: tm-auth-spin .75s linear infinite; }
.tm-auth__loading-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.tm-auth[data-auth-stage="code"] .tm-auth__loading-status { position: static; display: block; width: auto; height: auto; margin: 24px 0 0; overflow: visible; clip-path: none; white-space: normal; color: #626262; text-align: center; }
@keyframes tm-auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tm-auth .tm-auth__button[aria-busy="true"]::before { animation: none; } }
.tm-auth :is(input, button):focus-visible { outline: 2px solid #171717; outline-offset: 3px; }
.tm-auth__recovery { display: flex; justify-content: flex-end; margin-top: -10px; margin-bottom: -6px; }
.tm-auth__signup { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; padding-top: 10px; color: #626262; font-size: 13px; }
.tm-auth__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.tm-auth .tm-auth__link { width: auto; min-height: 44px; padding: 6px 0; border: 0; border-radius: 3px; background: transparent; color: #575757; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.tm-auth .tm-auth__link:hover { background: transparent; color: #171717; }
.tm-auth .tm-auth__alternative { border-color: transparent; background: var(--tm-color-surface-configurator, #f5f5f7); color: #171717; }
.tm-auth .tm-auth__alternative:hover { background: var(--tm-color-surface-configurator, #f5f5f7); box-shadow: inset 0 0 0 1px #d5d5d5; }
.tm-auth__resend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 4px; margin-top: 8px; font-size: 14px; }
.tm-auth .tm-auth__resend .tm-auth__link { color: #171717; font-size: inherit; font-weight: 500; }
.tm-auth__hint { margin: -10px 0 0; color: #626262; font-size: 12px; }
.tm-auth__error, .tm-auth__notice { margin: 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.tm-auth__error { color: #171717; font-weight: 500; }
.tm-auth__notice { color: #4b4b4b; }
.tm-auth [hidden] { display: none !important; }
.tm-auth-dialog { box-sizing: border-box; position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: 0; padding: 64px 28px 32px; border: 0; border-radius: 28px; background: #fff; color: #171717; box-shadow: 0 18px 70px rgb(0 0 0 / 18%); overflow: auto; overscroll-behavior: contain; font-family: inherit; font-size: 14px; line-height: 1.5; }
.tm-auth-dialog::backdrop { background: rgb(0 0 0 / 36%); }
.tm-auth-dialog__close, .tm-auth-dialog .tm-auth__back { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #171717; cursor: pointer; }
.tm-auth-dialog .tm-auth__back { right: auto; left: 14px; }
.tm-auth-dialog__close:hover, .tm-auth-dialog .tm-auth__back:hover { background: var(--tm-color-surface-configurator, #f5f5f7); }
.tm-auth-dialog__close:focus-visible, .tm-auth-dialog .tm-auth__back:focus-visible { outline: 2px solid #171717; outline-offset: 2px; }
.tm-auth-dialog__loading { min-height: 220px; text-align: center; }
.tm-auth-dialog__unavailable h2 { text-align: center; }
.tm-auth-dialog__unavailable p { margin: 0 0 24px; }
html.has-customer-auth-dialog { overflow: hidden; }
@media (max-width: 480px) { .tm-auth h2 { font-size: 24px; } .tm-auth__intro { margin-bottom: 22px; } .tm-auth-dialog { padding: 60px 24px 28px; border-radius: 24px; } .tm-auth__logo { margin-bottom: 24px; } }
@media (forced-colors: active) { .tm-auth-dialog { border: 1px solid CanvasText; } .tm-auth .tm-auth__code:focus-visible { outline: 2px solid Highlight; outline-offset: 3px; box-shadow: none; } }
