/* The brand color comes from /brand.css, generated from BRAND_COLOR. */
:root { --brand: #da291c; --ink: #1b1b1b; --muted: #5f6368; --line: #e1e4e8; --surface: #fff; --background: #f3f5f7; }

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--background); }

/* Login */
body.login { display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 100%; max-width: 400px; padding: 40px 36px 36px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 12px; box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08); text-align: center; }
.login-logo { display: block; height: 44px; max-width: 220px; margin: 0 auto 24px; }
.login-card h1 { margin: 0 0 8px; font-size: 24px; font-weight: 600; }
.login-intro { margin: 0 0 28px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.login-error { margin: 0 0 20px; padding: 10px 12px; font-size: 14px; line-height: 1.4; color: #8a1c1c; background: #fdecec; border: 1px solid #f5c2c2; border-radius: 8px; }
.login-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 16px; font-size: 15px; font-weight: 600; color: #fff; background: #2f2f2f; border-radius: 6px; text-decoration: none; }
.login-button:hover, .login-button:focus-visible { background: #000; }
.login-button:focus-visible, .chat-logout:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.microsoft-icon { width: 20px; height: 20px; flex: none; }

/* Chat: a thin bar and the chat filling everything else */
body.chat { display: flex; flex-direction: column; background: var(--surface); }
.chat-bar { display: flex; align-items: center; gap: 12px; flex: none; height: 48px; padding: 0 16px; background: var(--surface); border-bottom: 3px solid var(--brand); }
.chat-logo { height: 26px; max-width: 150px; }
.chat-title { font-size: 15px; font-weight: 600; }
.chat-user { margin-left: auto; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-logout { flex: none; padding: 6px 12px; font-size: 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.chat-logout:hover { border-color: var(--muted); }
.chat-frame { flex: 1; width: 100%; min-height: 0; border: 0; }

@media (max-width: 520px) {
  .login-card { padding: 32px 22px 28px; }
  .chat-title, .chat-user { display: none; }
  .chat-logout { margin-left: auto; }
}
