@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@600;700&display=swap");

/* Same look as the app: light by default; dark when chosen in the app's Settings. */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --line: #dfe3e8;
  --text: #111827;
  --muted: #4b5563;
  --accent: #1f4fcc;
  --accent-text: #ffffff;
  --warn: #a2490a;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0e1117;
  --surface: #161a22;
  --line: #2b3240;
  --text: #f2f4f7;
  --muted: #a9b2c0;
  --accent: #8caeff;
  --accent-text: #0b1020;
  --warn: #f6a660;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0e1117;
    --surface: #161a22;
    --line: #2b3240;
    --text: #f2f4f7;
    --muted: #a9b2c0;
    --accent: #8caeff;
    --accent-text: #0b1020;
    --warn: #f6a660;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

.card {
  width: 100%;
  max-width: 380px;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.brand h1 {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  width: 7px;
  height: 12px;
  border: solid var(--accent-text);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-weight: 500;
  margin-top: 8px;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

input:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

button {
  margin-top: 18px;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.message {
  min-height: 1.3em;
  margin: 10px 0 0;
  color: var(--warn);
  font-weight: 500;
}
