:root {
  color-scheme: light;
  --bg: #f4f7f7;
  --card: #ffffff;
  --ink: #18181b;
  --muted: #5f6772;
  --line: #e5ebef;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 28px rgba(16, 24, 40, 0.05);
}

html.dark {
  color-scheme: dark;
  --bg: #101214;
  --card: #1a1e23;
  --ink: #f4f4f5;
  --muted: #b0b6bf;
  --line: #2c333a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.splash {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px calc(24px + env(safe-area-inset-bottom));
}

.card {
  width: min(440px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 36px 28px 32px;
  text-align: center;
}

.logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

h1 {
  margin: 18px 0 0;
  font-size: 2rem;
  letter-spacing: -0.03em;
  color: #0f766e;
}

html.dark h1 { color: #5eead4; }

.tagline {
  margin: 12px auto 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.signin {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 28px;
  border-radius: 16px;
  background: #0d9488;
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}

.signin:hover { background: #0f766e; }

.signin:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 3px;
}

.footer {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 0.875rem;
}
