:root {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color-scheme: light dark;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f6f8;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.card h1 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.muted {
  color: #666;
  font-size: 0.85rem;
  word-break: break-all;
}

.error {
  color: #b00020;
  font-size: 0.9rem;
}

button {
  background: #1a73e8;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  cursor: pointer;
}

button:hover {
  background: #1558b0;
}

.card h2 {
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
}

.card label {
  display: block;
  margin: 0.5rem 0;
  text-align: left;
}

.card input,
.card select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.4rem;
  margin-top: 0.25rem;
}

.list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.list li {
  margin: 0.5rem 0;
}

button.secondary {
  background: #666;
  margin-top: 1rem;
}

/* Sign-in screen, styled to match demo/SignInLight.dc.html (light theme). */
body:has(.signin) {
  background: #F7F5F2;
}

.signin {
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 32px;
  background: #F7F5F2;
  color: #141414;
  font-family: Inter, system-ui, sans-serif;
  color-scheme: light;
}

.signin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.signin-logo {
  width: 30px;
  height: 30px;
  display: block;
}

.signin-name {
  font: 700 18px Inter, system-ui, sans-serif;
  letter-spacing: 0.28em;
  color: #0B5A5F;
}

.signin-mark {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 6px;
}

.signin-hero {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.signin-hero p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: #5C5852;
}

.signin-actions {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

button.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  background: #FFFFFF;
  color: #141414;
  border: 1px solid #CFCAC2;
  border-radius: 14px;
  font: 600 17px Inter, system-ui, sans-serif;
}

button.google-btn:hover {
  background: #F1EEE9;
}

button.google-btn:focus-visible {
  outline: 3px solid #0B5A5F;
  outline-offset: 2px;
}

.signin-note {
  margin: 0;
  text-align: center;
  font-size: 17px;
  line-height: 1.5;
  color: #6E6A64;
}

@media (min-width: 900px) {
  .signin {
    min-height: auto;
    max-width: 480px;
    padding: 40px;
    border: 1px solid #E4E0DA;
    border-radius: 24px;
    background: #FFFFFF;
    box-shadow: 0 12px 40px rgba(20, 20, 20, 0.06);
  }
  .signin-hero {
    margin-top: 72px;
  }
}
