/* tenant-auth.css — site owner/member login forms */
/* 2026-06-10: Tenant authentication UI */
.tenant-auth-wrap { display: flex; justify-content: center; align-items: flex-start; padding: 32px 16px 48px; min-height: 50vh; }
.tenant-auth-card { width: 100%; max-width: 420px; background: var(--site-surface, #fff); border: 1px solid var(--site-border, #e2e8f0); border-radius: 14px; padding: 28px 24px 24px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06); }
.tenant-auth-icon { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--site-accent-soft, #eff6ff); color: var(--site-accent, #2563eb); font-size: 1.25rem; }
.tenant-auth-card h2 { margin: 0 0 8px; text-align: center; font-size: 1.25rem; color: var(--site-text, #0f172a); }
.tenant-auth-lead { margin: 0 0 18px; text-align: center; font-size: 0.88rem; color: var(--site-muted, #64748b); line-height: 1.5; }
.tenant-auth-error { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: #fef2f2; color: #b91c1c; font-size: 0.85rem; }
.tenant-auth-form { display: flex; flex-direction: column; gap: 14px; }
.tenant-auth-group label { display: block; margin-bottom: 6px; font-size: 0.82rem; font-weight: 600; color: var(--site-text, #334155); }
.tenant-auth-input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--site-border, #cbd5e1); border-radius: 8px; font-family: var(--site-font-family, inherit); font-size: 0.95rem; background: var(--site-surface, #fff); color: var(--site-text, #0f172a); }
.tenant-auth-input:focus { outline: none; border-color: var(--site-accent, #2563eb); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.tenant-auth-input--readonly { background: var(--site-accent-soft, #f8fafc); color: var(--site-muted, #475569); cursor: default; }
.tenant-auth-hint { margin: 6px 0 0; font-size: 0.78rem; color: var(--site-muted, #64748b); line-height: 1.4; }
.tenant-auth-email-status { margin: 6px 0 0; font-size: 0.78rem; line-height: 1.45; font-weight: 600; }
.tenant-auth-email-status--loading { color: var(--site-muted, #64748b); }
.tenant-auth-email-status--ok { color: #15803d; }
.tenant-auth-email-status--error { color: #b91c1c; }
.tenant-auth-input--invalid { border-color: #f87171 !important; background: #fef2f2 !important; }
.tenant-auth-input--valid { border-color: #86efac !important; background: #f0fdf4 !important; }
.tenant-auth-password-field { position: relative; display: flex; align-items: center; }
.tenant-auth-password-icon { position: absolute; left: 12px; color: var(--site-muted, #94a3b8); font-size: 0.85rem; pointer-events: none; }
.tenant-auth-password-field .tenant-auth-input { padding-left: 36px; padding-right: 42px; }
.tenant-auth-password-toggle { position: absolute; right: 4px; width: 34px; height: 34px; border: none; background: transparent; color: var(--site-muted, #64748b); cursor: pointer; border-radius: 6px; }
.tenant-auth-password-toggle:hover { color: var(--site-accent, #2563eb); background: var(--site-accent-soft, #f1f5f9); }
.tenant-auth-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px 16px; border: none; border-radius: 8px; background: var(--site-accent, #2563eb); color: var(--site-accent-contrast, #fff); font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.tenant-auth-btn:hover { filter: brightness(1.05); }
.tenant-auth-foot { margin: 16px 0 0; text-align: center; font-size: 0.85rem; }
.tenant-auth-foot a { color: var(--site-link, var(--site-accent, #2563eb)); text-decoration: none; }
.tenant-auth-foot a:hover { text-decoration: underline; }
.tenant-auth-note { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: var(--site-accent-soft, #eff6ff); color: var(--site-muted, #475569); font-size: 0.82rem; line-height: 1.45; text-align: center; }
.tenant-auth-note i { color: var(--site-accent, #2563eb); margin-right: 4px; }
.tenant-auth-steps { margin: 0 0 8px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tenant-auth-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--site-accent-soft, #f8fafc); font-size: 0.85rem; color: var(--site-text, #334155); }
.tenant-auth-steps i { color: var(--site-accent, #2563eb); width: 18px; text-align: center; }
.tenant-auth-icon--success { background: #dcfce7; color: #15803d; }
.tenant-auth-icon--error { background: #fef2f2; color: #b91c1c; }
.tenant-auth-icon--info { background: var(--site-accent-soft, #eff6ff); color: var(--site-accent, #2563eb); }
/* site header auth tools — 2026-06-10: fix contrast on colored headers */
.site-auth-tools { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.site-header .site-auth-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; text-decoration: none; white-space: nowrap; line-height: 1.2; color: var(--site-auth-solid-color, #1e293b); background: var(--site-auth-solid-bg, #fff); border: 1px solid var(--site-auth-solid-border, rgba(15, 23, 42, 0.14)); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); transition: color 0.15s, border-color 0.15s, background 0.15s; }
.site-header .site-auth-link i { font-size: 0.88rem; line-height: 1; flex-shrink: 0; }
.site-header .site-auth-link:hover { color: var(--site-accent, #2563eb); border-color: var(--site-accent, #2563eb); background: #fff; }
.site-header .site-auth-link--primary { color: var(--site-auth-outline-color, #fff); background: var(--site-auth-outline-bg, rgba(255, 255, 255, 0.14)); border-color: var(--site-auth-outline-border, rgba(255, 255, 255, 0.5)); box-shadow: none; }
.site-header .site-auth-link--primary:hover { color: var(--site-auth-outline-color, #fff); filter: brightness(1.08); border-color: var(--site-auth-outline-border, rgba(255, 255, 255, 0.5)); }
.site-header .site-auth-link--admin { color: var(--site-header-auth-outline-color, var(--site-auth-outline-color, #fff)); background: var(--site-header-auth-admin-bg, rgba(0, 0, 0, 0.12)); border-color: var(--site-header-auth-admin-border, rgba(255, 255, 255, 0.42)); box-shadow: none; }
.site-header .site-auth-link--admin:hover { color: var(--site-header-auth-outline-color, #fff); filter: brightness(1.05); background: var(--site-header-hover-bg, rgba(0, 0, 0, 0.2)); border-color: var(--site-header-auth-admin-border, rgba(255, 255, 255, 0.6)); }
.site-auth-member-name { font-size: 0.82rem; color: var(--site-muted, #64748b); white-space: nowrap; }
.site-auth-dropdown { position: relative; }
.site-header .site-auth-dropdown-toggle { cursor: pointer; font-family: inherit; }
.site-auth-dropdown-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; font-size: 0.82rem; font-weight: 600; color: #fff; background: var(--site-accent, #2563eb); border: none; cursor: pointer; white-space: nowrap; }
.site-auth-dropdown-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--site-surface, #fff); border: 1px solid var(--site-border, #e2e8f0); border-radius: 10px; box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12); padding: 6px; z-index: 200; }
.site-auth-dropdown.is-open .site-auth-dropdown-menu { display: block; }
.site-auth-dropdown-menu a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 7px; font-size: 0.84rem; color: var(--site-on-surface, var(--site-text, #334155)); text-decoration: none; }
.site-auth-dropdown-menu a:hover { background: var(--site-accent-soft, #f1f5f9); color: var(--site-link, var(--site-accent, #2563eb)); }
.site-auth-dropdown-menu a.is-danger { color: #b91c1c; }
.site-auth-dropdown-menu a.is-danger:hover { background: #fef2f2; }
.site-auth-dropdown-group-label { padding: 8px 12px 4px; margin: 0; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #94a3b8; }
.site-auth-dropdown-group-label:not(:first-child) { border-top: 1px solid var(--site-border, #e2e8f0); margin-top: 4px; padding-top: 10px; }
.site-auth-dropdown-badge { margin-left: auto; min-width: 18px; padding: 1px 6px; border-radius: 999px; font-size: 0.65rem; font-weight: 700; background: #fee2e2; color: #b91c1c; text-align: center; }
/* 2026-06-10: tablet/mobile — member auth buttons icon-only in header */
@media (max-width: 1024px) { .site-auth-tools { justify-content: flex-end; } .site-header .site-auth-link { padding: 8px 10px; gap: 0; } .site-header .site-auth-link-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } }
