Files
ds-chat/frontend/src/pages/LoginPage.css
T
ksmithandClaude Sonnet 5 e9fcb9fea2 Rebuild frontend from the Claude Design handoff, DarkSingularity brand
Replaces the Phase 1 placeholder UI with a single persistent app shell (top
bar + sidebar + chat pane, 860px responsive breakpoint) matching the
"PWA chat system UI" design handoff: message bubbles with consecutive-run
avatar/name grouping, auto-growing composer, room search, and the real
DarkSingularity logo (also used to regenerate the PWA icons).

The handoff didn't cover Phase 2 (private rooms, roles, invites) or
browsing/joining open rooms, so those are added using the same visual
language: a room info panel with role badges, invite-by-username with a
pending-invites list, member management (remove/promote/demote/transfer
ownership), room settings (rename/describe/delete), and separate
browse-rooms/invites-inbox modals. Unread badges, last-message preview, and
the typing indicator are deliberately deferred -- both need new backend
features (read-tracking, a WS typing event) that weren't in scope this pass.

Two small backend additions round out data the new UI needs but the API
didn't expose: MessageRead.username (historic messages had no sender name)
and InviteRead.target_username / MyInviteRead.room_name+invited_by_username
(a recipient's invite list can't otherwise resolve a room they're not in).
Both are additive; 35 backend tests still pass.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-13 21:10:58 -06:00

93 lines
1.8 KiB
CSS

.login-screen {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: var(--sp-6);
background:
radial-gradient(600px 400px at 50% -10%, color-mix(in srgb, var(--ds-accent-3) 18%, transparent), transparent 70%),
var(--ds-void);
}
.login-card {
width: min(380px, 100%);
background: var(--card-bg);
border: 1px solid var(--ds-border);
border-radius: var(--radius);
padding: var(--sp-8) var(--sp-6);
display: flex;
flex-direction: column;
gap: var(--sp-6);
}
.login-brand {
display: flex;
align-items: center;
justify-content: center;
gap: var(--sp-2);
}
.login-brand img {
width: 40px;
height: 40px;
border-radius: 8px;
object-fit: cover;
}
.login-brand span {
font-weight: 800;
font-size: 1.45rem;
}
.login-copy {
text-align: center;
color: var(--ds-muted);
font-size: 0.9rem;
line-height: 1.5;
margin: calc(-1 * var(--sp-4)) 0 0;
}
.login-form {
display: flex;
flex-direction: column;
gap: var(--sp-4);
}
.login-form label {
display: flex;
flex-direction: column;
gap: 6px;
font-size: 0.78rem;
color: var(--ds-muted);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.login-form input {
background: var(--ds-void);
border: 1px solid var(--ds-border);
border-radius: var(--radius);
padding: 9px 11px;
font-size: 0.9rem;
color: var(--ds-text);
text-transform: none;
letter-spacing: 0;
font-weight: 400;
}
.login-form input:focus {
border-color: var(--ds-accent);
outline: none;
}
.login-error {
font-size: 0.86rem;
color: var(--ds-danger);
border: 1px solid color-mix(in srgb, var(--ds-danger) 40%, transparent);
background: color-mix(in srgb, var(--ds-danger) 10%, transparent);
border-radius: var(--radius);
padding: 8px 10px;
margin: 0;
}