:root {
  color-scheme: light;
  --background: #f7f7f7;
  --text: #1f2933;
  --muted: #5f6b76;
  --button: #1f2933;
  --button-text: #ffffff;
  --line: #d9dee3;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button {
  min-height: 44px;
  border: 1px solid var(--button);
  border-radius: 4px;
  padding: 0 16px;
  background: var(--button);
  color: var(--button-text);
  cursor: pointer;
  font: inherit;
}

button:focus-visible {
  outline: 3px solid #6aa3ff;
  outline-offset: 2px;
}

.page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.auth-view,
.welcome-view {
  display: grid;
  justify-items: center;
  gap: 16px;
}

h1 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
}

.message {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: min(420px, calc(100vw - 32px));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--muted);
  text-align: left;
}

.message:empty {
  display: none;
}
