/* The stand-alone /login/ and /register/ pages (partials/auth_page.php): the sign-in card in the page. */
.ap-page { padding-top: calc(56px + 20px); padding-top: calc(var(--tc-header-h, 56px) + 20px); padding-bottom: 40px; }
.ap-wrap { width: calc(100% - 32px); width: min(440px, 100% - 32px); margin: 0 auto; display: grid; grid-gap: 18px; gap: 18px; }
.ap-head { text-align: center; }
.ap-head h1 { margin: 0 0 6px; font-size: 24px; font-size: clamp(24px, 6vw, 30px); line-height: 1.2; }
.ap-head p { margin: 0; color: #9aa39d; color: var(--tc-muted, #9aa39d); font-size: 14.5px; line-height: 1.5; }
.ap-noscript { text-align: center; }
.ap-invite { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
  background: rgba(57,255,106,0.08); background: var(--tc-primary-soft, rgba(57,255,106,0.08)); border: 1px solid rgba(57,255,106,0.3); }
.ap-invite img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: rgba(255,255,255,0.06); }
.ap-invite p { margin: 0; display: grid; grid-gap: 2px; gap: 2px; min-width: 0; }
.ap-invite b { font-size: 15px; }
.ap-invite small { color: #9aa39d; color: var(--tc-muted, #9aa39d); font-size: 13px; line-height: 1.45; }
.login.is-page {
  position: static; top: auto; right: auto; bottom: auto; left: auto; inset: auto; z-index: auto; display: block; padding: 0;
  background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  opacity: 1; visibility: visible; transition: none;
}
.login.is-page .auth-card { max-width: none; max-height: none; overflow: visible; transform: none; height: auto; border-radius: 20px; border-radius: var(--tc-radius-lg, 20px); }
.login.is-page .login-exit { display: none; }
@media (max-width: 480px) {
  .login.is-page { padding: 0; }
  .login.is-page .auth-card { height: auto; border-radius: 18px; }
}
html.auth-page-mode.auth-open, html.auth-page-mode.auth-open body { overflow: visible; }

/* compat:rich:start — capable devices only (html.tc-rich, set in the head): glass blur, big soft shadows,
   filters. Weak phones and old browsers use the lighter look in the rules above. */
.tc-rich .login.is-page { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* compat:rich:end */

/* compat:no-flexgap:start — rebuilt by tools/css_compat.py: spacing for engines without flex gap
   (html.no-flexgap, set in the head). Edit the gap in the rule above, then run the tool. */
.no-flexgap .ap-invite > :not(:last-child) { margin-right: 12px; }
/* compat:no-flexgap:end */
