/* Shared shell behaviour for public pages, account forms and invitation outcomes. */
.tm-auth-page, .tm-public-page { color: var(--tm-text-primary); }
:is(.tm-auth-page, .tm-public-page, .tm-invite-shell) :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #17548b; outline-offset: 3px; }
:is(.tm-auth-page, .tm-public-page, .tm-invite-shell) :is(button, .tm-btn, .tm-auth-btn, .tm-social-btn) { min-height: 44px; }
:is(.tm-auth-page, .tm-public-page, .tm-invite-shell) :is(p, h1, h2, h3, label, a, strong) { overflow-wrap: anywhere; }
.tm-auth-page .tm-auth-container { background: var(--tm-cream); padding: 2.5rem 1rem; align-items: flex-start; }
.tm-auth-page .tm-auth-card { background: #fffdf8; border: 1px solid #dfd8c7; border-radius: 18px; box-shadow: 0 2px 4px rgb(74 55 40 / .05); padding: 2rem; margin: 0; max-width: 500px; }
.tm-auth-brand { display: block; text-align: center; font-family: 'Luckiest Guy', cursive; font-size: 1.65rem; color: #352e23; margin-bottom: 1.3rem; text-decoration: none; }
.tm-auth-page .tm-auth-logo { width: 64px; }
.tm-auth-page .tm-auth-header { margin-bottom: 1.5rem; }
.tm-auth-page .tm-auth-content input:not([type=checkbox]):not([type=radio]):not([type=hidden]) { width: 100%; min-height: 46px; background: white; border: 1px solid #aaa18c; border-radius: 9px; padding: .65rem .75rem; }
.tm-auth-page .tm-auth-content form { display: flex; flex-direction: column; gap: 1rem; }
.tm-auth-page .tm-auth-content button { padding: .75rem 1rem; border: 1px solid #aaa18c; border-radius: 9px; font-weight: 650; }
.tm-auth-page .tm-auth-btn-primary { border-color: var(--tm-primary-orange); background: var(--tm-primary-orange); }
.tm-auth-page .tm-auth-link, .tm-public-page .tm-footer-link { color: #914109; }
.tm-auth-page .tm-auth-content a:not(.tm-social-btn), .tm-invite-shell a { text-decoration: underline; text-underline-offset: 3px; }
.tm-auth-page .tm-form-error { color: #a72817; }
.tm-auth-page .tm-auth-message { overflow-wrap: anywhere; }
.tm-public-page .tm-container { width: 100%; }
.tm-public-page .tm-footer-links { flex-wrap: wrap; }
.tm-public-page .tm-btn-primary { background-color: var(--tm-primary-orange); }
.tm-public-page .tm-btn-primary:hover { background-color: var(--tm-primary-orange-hover); }
.tm-public-page .tm-brand-text { overflow-wrap: normal; }
.tm-public-page header > a { min-width: 0; }
.tm-public-page header > a > div { min-width: 0; }
.tm-public-page .tm-card { min-width: 0; }
.tm-invite-shell { max-width: 760px; padding: 1.5rem; border: 1px solid #dfd8c7; border-radius: 18px; background: #fffdf8; margin: auto; }
.tm-invite-shell h1 { font-size: 1.8rem; font-weight: 750; line-height: 1.2; margin-bottom: 1rem; }
.tm-invite-shell p, .tm-invite-shell form { margin: 1rem 0; }
.tm-invite-shell .tm-card { padding: 0; border: 0; background: transparent; box-shadow: none; }
@media(max-width: 767px) {
 .tm-auth-page .tm-auth-container { padding: 1rem; }
 .tm-auth-page .tm-auth-card { padding: 1.25rem; }
 .tm-public-page .tm-public-brand { gap: .8rem; }
 .tm-public-page .tm-public-header-logo { width: 44px; height: auto; }
 .tm-public-page .tm-brand-text { font-size: 1.65rem; }
 .tm-public-page .tm-container { padding: 1rem; }
 .tm-public-page .tm-card { padding: 1.25rem; }
 .tm-invite-shell { padding: 1.1rem; }
 .tm-invite-shell .tm-btn { white-space: normal; }
}
.tm-public-page .tm-public-muted { color: var(--tm-text-secondary); }
.tm-public-page .tm-public-accent { color: var(--tm-primary-orange); }
.tm-auth-page .tm-auth-content :is(h1, h2) { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.tm-auth-page .tm-auth-content :is(ul, fieldset) { margin-block: .75rem; }

.tm-public-brand { text-decoration: none; display: flex; align-items: center; gap: 1.5rem; }
