/* Demo sign in page. Fluent 2 tokens, self contained, no external requests, no inline script. */
:root {
  --bg: #ffffff;
  --canvas: #faf9f8;
  --line: #e0e0e0;
  --line-strong: #8a8886;
  --text: #242424;
  --text-2: #424242;
  --dim: #616161;
  --brand: #0f6cbd;
  --brand-hover: #115ea3;
  --accent: #107c10;
  --danger: #c50f1f;
  --danger-tint: #fdf3f4;
  --danger-line: #eeacb2;
  --danger-text: #960b18;
  --warn-tint: #fff4ce;
  --warn-line: #f2c288;
  --warn-text: #8a4b06;
  --font-base: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

.app-identity {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 24px; background: var(--bg); border-bottom: 1px solid var(--line);
  font-size: 12px; line-height: 16px;
}
.app-identity-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: 9999px;
  font-weight: 600; background: var(--warn-tint); color: var(--warn-text); border: 1px solid var(--warn-line);
}
.app-identity-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.app-identity-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-identity-label { color: var(--dim); margin-right: 4px; }
.app-identity-value { color: var(--text-2); font-weight: 600; }
.app-identity-sep { color: #d1d1d1; }
.app-identity-title { color: var(--text); font-weight: 600; font-size: 14px; }

.login {
  max-width: 420px;
  margin: 32px auto;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14), 0 0 2px rgba(0, 0, 0, 0.12);
}

h1 { margin: 0 0 8px; font-size: 24px; line-height: 32px; font-weight: 600; }
.lede { margin: 0 0 16px; color: var(--text-2); font-size: 14px; line-height: 20px; }

label { display: block; margin: 16px 0 4px; font-size: 14px; line-height: 20px; color: var(--text-2); }

input[type="text"], input[type="password"] {
  display: block; width: 100%; height: 44px; padding: 0 12px;
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 4px;
}
input[type="text"]:focus, input[type="password"]:focus {
  border-color: var(--brand);
  outline: 2px solid var(--brand); outline-offset: 1px;
}

button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

button.link {
  display: inline-flex; align-items: center; min-height: 44px; margin: 4px 0 0; padding: 0 4px;
  font-size: 14px; color: var(--brand); background: none; border: 0; text-decoration: underline;
}
button.link:hover { color: var(--brand-hover); }

button.primary {
  display: block; width: 100%; height: 44px; margin-top: 12px;
  font-size: 16px; font-weight: 600; color: #ffffff; background: var(--brand);
  border: 1px solid var(--brand); border-radius: 4px;
}
button.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
button.primary:disabled { opacity: 0.6; cursor: progress; }

.error {
  margin: 0 0 4px; padding: 8px 12px; font-size: 14px; line-height: 20px;
  color: var(--danger-text); background: var(--danger-tint);
  border: 1px solid var(--danger-line); border-left: 4px solid var(--danger); border-radius: 4px;
}
.error[hidden] { display: none; }
.error:focus { outline: 2px solid var(--text); outline-offset: 2px; }
.note { margin: 0 0 4px; font-size: 14px; line-height: 20px; color: var(--dim); }
.foot { margin: 20px 0 0; font-size: 14px; line-height: 20px; color: var(--dim); }

@media (max-width: 520px) {
  .app-identity { padding: 10px 16px; }
  .login { margin: 0; border-radius: 0; border-left: 0; border-right: 0; min-height: calc(100vh - 60px); }
}
