/* Shared public-site and Crew authentication modal. */
.auth-dialog, #dlg-join { width: min(480px, calc(100vw - 24px)); }
.auth-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding-right: 28px; }
.auth-brand img { width: 44px; height: auto; }
.auth-brand .wordmark { font-size: clamp(1.3rem, 5vw, 1.8rem); }
.auth-kicker { margin-top: 16px; color: var(--muted); }
.auth-dialog #auth-title, #dlg-join legend, #dlg-join h2 { margin: 24px 0 0; font-size: clamp(2.2rem, 7vw, 3rem); }
.auth-dialog #auth-title:focus { outline: none; }
.auth-lead, .auth-confirm { margin-top: 12px; color: var(--ink-2); font-size: .95rem; }
.auth-dialog .auth-submit { width: 100%; margin-top: 24px; }
.auth-text { display: block; margin-top: 8px; padding-block: 6px; min-height: 36px; font-size: .85rem; text-decoration: underline; text-underline-offset: .2em; }
.auth-alt { margin-top: 16px; font-size: .86rem; color: var(--muted); }
.auth-alt .link { color: var(--ink); }
.auth-dialog input:not([type=radio]):not([type=checkbox]), #dlg-join input:not([type=radio]):not([type=checkbox]), #dlg-join textarea { background: rgba(0, 0, 0, .08); border: 0; border-bottom: 2px solid var(--ink); padding: 12px 0 10px; box-shadow: none; font-size: 1rem; }
.auth-dialog input:focus, #dlg-join input:focus, #dlg-join textarea:focus { border-bottom-color: var(--red); }
.auth-dialog button:focus-visible, .auth-dialog a:focus-visible, #dlg-join button:focus-visible, #dlg-join a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.auth-dialog [hidden] { display: none !important; }
@media (max-width: 520px) { .auth-dialog, #dlg-join { padding: 24px; } }

.crew .auth-dialog label:not(.chip) { margin-top: 1.05rem; }

/* One visual language for login, registration and invitation applications. */
.auth-invitation { margin: 0; padding: 0; }
.auth-dialog .auth-invitation input { font: inherit; letter-spacing: normal; }
.auth-application { margin-top: 16px; font-size: .86rem; color: var(--muted); line-height: 1.7; }
#dlg-join .kicker { margin-top: 16px; color: var(--muted); }
#dlg-join legend { margin-bottom: 0; }
#dlg-join .pane-actions { margin-top: 24px; }
#dlg-join [data-next] { flex: 1; }
#dlg-join ::placeholder { color: var(--muted); }
