/* src/auth/ui: the login, link and no-access cards, the user menu and the admin's users page. Both apps define the same
   design tokens (--glass, --accent, --r-panel …): the cards take each app's own look. */
/* the sign-in, invite and consent pages: the column centred when it fits, scrolled when it does not (a phone with the
   keyboard up: the button under it was out of reach when the page was a fixed, centred grid that never scrolled) */
.au-page { position: fixed; inset: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 24px 16px; box-sizing: border-box; background: radial-gradient(1200px 700px at 30% 20%, rgba(124, 196, 255, 0.10), transparent 60%), radial-gradient(900px 600px at 80% 90%, rgba(177, 156, 255, 0.08), transparent 60%), #0b0d12; font-family: var(--font, system-ui); color: var(--text, #eef1f6); z-index: 1000; }
.au-col { width: min(380px, 100%); margin: auto; display: flex; flex-direction: column; gap: 18px; }
.au-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: 0.01em; }
.au-brand svg { flex: none; }
.au-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--r-panel, 18px); background: var(--glass-strong, rgba(14, 16, 22, 0.8)); border: 1px solid var(--line, rgba(255, 255, 255, 0.09)); box-shadow: var(--shadow, none); backdrop-filter: var(--blur, none); }
.au-card h1 { margin: 0 0 4px; font-size: 19px; font-weight: 650; }
.au-card label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-2, #aab); }
.au-card input, .au-new input:not([type=checkbox]), .au-linkrow input { font: inherit; font-size: 14px; color: var(--text, #eef1f6); background: var(--glass-soft, rgba(255, 255, 255, 0.055)); border: 1px solid var(--line, rgba(255, 255, 255, 0.09)); border-radius: var(--r-ctl, 10px); padding: 9px 11px; outline: none; }
.au-card input:focus, .au-new input:focus { border-color: var(--accent, #7cc4ff); }
.au-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 550; color: var(--text, #eef1f6); background: var(--glass-soft, rgba(255, 255, 255, 0.055)); border: 1px solid var(--line, rgba(255, 255, 255, 0.09)); border-radius: var(--r-ctl, 10px); padding: 9px 14px; cursor: pointer; text-decoration: none; }
.au-btn:hover { background: var(--glass-hover, rgba(255, 255, 255, 0.09)); }
.au-btn.primary { background: var(--accent, #7cc4ff); color: var(--accent-ink, #06121f); border-color: transparent; }
.au-btn.primary:hover { filter: brightness(1.08); }
.au-btn:disabled { opacity: 0.55; cursor: default; }
.au-btn.small { padding: 4px 9px; font-size: 12px; }
.au-btn.danger { background: rgba(255, 122, 133, 0.18); border-color: rgba(255, 122, 133, 0.5); color: #ffb3ba; }
/* the terms' box on an invitation's card (where sign-up is on): as the login page's (src/auth/login/page.ts) */
.au-card label.au-check { flex-direction: row; align-items: flex-start; gap: 9px; font-size: 12.5px; line-height: 1.5; color: var(--text-2, #aab); cursor: pointer; }
.au-card label.au-check input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; padding: 0; accent-color: var(--accent, #7cc4ff); }
.au-terms { display: flex; flex-direction: column; gap: 8px; }
.au-terms a { color: var(--accent, #7cc4ff); }
.au-err { margin: 0; color: var(--err, #ff7a85); font-size: 13px; }
.au-note { margin: 0; color: var(--text-3, #889); font-size: 12px; }
.au-wait { text-align: center; color: var(--text-3, #889); }

.au-menu { position: relative; display: inline-flex; }
.au-avatar { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong, rgba(255, 255, 255, 0.16)); background: linear-gradient(135deg, rgba(124, 196, 255, 0.35), rgba(177, 156, 255, 0.35)); color: var(--text, #eef1f6); font: 600 11px var(--font, system-ui); cursor: pointer; letter-spacing: 0.03em; }
.au-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px; border-radius: 14px; background: var(--glass-strong, rgba(14, 16, 22, 0.92)); border: 1px solid var(--line, rgba(255, 255, 255, 0.09)); box-shadow: var(--shadow, none); backdrop-filter: var(--blur, none); z-index: 900; display: flex; flex-direction: column; }
.au-who { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.09)); margin-bottom: 4px; font-size: 13px; }
.au-who span { color: var(--text-3, #889); font-size: 12px; }
.au-who em { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent, #7cc4ff); }
.au-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 9px; background: none; color: var(--text, #eef1f6); font: inherit; font-size: 13px; text-align: left; cursor: pointer; text-decoration: none; }
.au-item:hover { background: var(--glass-hover, rgba(255, 255, 255, 0.09)); }
.au-sep { height: 1px; margin: 4px 6px; background: var(--line, rgba(255, 255, 255, 0.09)); }
.au-avatar.anon { display: inline-grid; place-items: center; color: var(--text-2, #c8ccd6); }

.au-modal { position: fixed; inset: 0; background: rgba(4, 6, 10, 0.55); display: grid; place-items: center; z-index: 1100; font-family: var(--font, system-ui); color: var(--text, #eef1f6); }
.au-panel { width: min(900px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; padding: 18px 20px; border-radius: var(--r-panel, 18px); background: var(--glass-strong, rgba(14, 16, 22, 0.95)); border: 1px solid var(--line, rgba(255, 255, 255, 0.09)); box-shadow: var(--shadow, none); backdrop-filter: var(--blur, none); display: flex; flex-direction: column; gap: 14px; }
.au-head { display: flex; align-items: center; justify-content: space-between; }
.au-head h2 { margin: 0; font-size: 17px; }
.au-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--text-2, #aab); cursor: pointer; }
.au-icon:hover { background: var(--glass-hover, rgba(255, 255, 255, 0.09)); color: var(--text, #eef1f6); }
.au-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.au-table th { text-align: left; font-weight: 550; color: var(--text-3, #889); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 8px; border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.09)); }
.au-table td { padding: 8px; border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.06)); vertical-align: middle; }
.au-table td.au-user b, .au-table td.au-user span { display: block; }
.au-table td.au-user span { color: var(--text-3, #889); font-size: 12px; margin-top: 2px; }
.au-table tr.off td { opacity: 0.5; }
.au-actions { display: flex; gap: 4px; align-items: center; justify-content: flex-end; white-space: nowrap; }
.au-link { padding: 12px; border-radius: 12px; background: rgba(124, 196, 255, 0.09); border: 1px solid rgba(124, 196, 255, 0.35); font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.au-linkrow { display: flex; gap: 6px; }
.au-linkrow input { flex: 1; font-family: var(--mono, monospace); font-size: 12px; }
.au-new { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 6px; }
.au-new h3 { width: 100%; margin: 0; font-size: 13px; display: flex; gap: 6px; align-items: center; color: var(--text-2, #aab); font-weight: 550; }
.au-new input:not([type=checkbox]) { flex: 1 1 180px; padding: 7px 10px; }
.au-new label { font-size: 13px; display: flex; gap: 5px; align-items: center; color: var(--text-2, #aab); }
.au-switch { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--text-2, #aab); cursor: pointer; user-select: none; }
/* the users page (AdminPanel): wider, a closed beta's note, each person's projects under their row */
.au-panel.wide { width: min(1160px, calc(100vw - 32px)); }
.au-count { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--glass-soft, rgba(255, 255, 255, 0.055)); color: var(--text-3, #889); font-size: 12px; font-weight: 500; vertical-align: 2px; }
.au-betanote { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 196, 92, 0.38); background: rgba(255, 196, 92, 0.08); color: var(--text-2, #aab); font-size: 13px; line-height: 1.5; }
.au-betanote b { color: #ffd27a; margin-right: 4px; }
.au-dim { color: var(--text-3, #889); }
.au-table tr.open td { border-bottom-color: transparent; }
.au-table tr.au-projects td { padding: 0 8px 12px; }
.au-plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.au-proj { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; border: 1px solid var(--line, rgba(255, 255, 255, 0.09)); background: var(--glass-soft, rgba(255, 255, 255, 0.055)); color: inherit; text-decoration: none; min-width: 0; }
.au-proj:hover { background: var(--glass-hover, rgba(255, 255, 255, 0.09)); border-color: var(--accent, #7cc4ff); }
.au-pthumb { flex: none; width: 56px; height: 42px; border-radius: 7px; background: rgba(0, 0, 0, 0.25); overflow: hidden; }
.au-pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.au-pmeta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.au-pmeta b { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-pmeta small { color: var(--text-3, #889); font-size: 11.5px; }
