:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --ring: oklch(0.708 0 0);
  --radius: 0.625rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.145 0 0);
    --foreground: oklch(0.985 0 0);
    --card: oklch(0.205 0 0);
    --card-foreground: oklch(0.985 0 0);
    --border: oklch(1 0 0 / 10%);
    --input: oklch(1 0 0 / 15%);
    --primary: oklch(0.922 0 0);
    --primary-foreground: oklch(0.205 0 0);
    --muted-foreground: oklch(0.708 0 0);
    --ring: oklch(0.556 0 0);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Inter var", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
}

.topbar {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.welcome-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.welcome-card {
  width: 100%;
  max-width: 28rem;
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 1.5rem;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.brand-logo {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 600;
}

h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

.subtitle {
  margin: 0 0 1rem;
  color: var(--muted-foreground);
}

.field {
  text-align: left;
  margin-bottom: 1rem;
}

.field label {
  display: inline-block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.field select {
  width: 100%;
  height: 2.5rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  padding: 0 0.75rem;
  outline: none;
  font: inherit;
}

.field select:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 30%, transparent);
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  height: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.92;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-secondary {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-ghost {
  width: auto;
  height: 2.25rem;
  padding: 0 0.875rem;
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}
