/* Light by default (the app's lightTheme colours, like home.css); dark only
   when chosen with the theme switch (assets/theme.js sets
   <html data-theme="dark">). */
:root {
  --bg: #fbfaf6;
  --card: #ffffff;
  --text: #1a2e22;
  --muted: #5b6b61;
  --primary: #1e8e5a;
  --primary-text: #ffffff;
  --border: #e7e3d8;
}

:root[data-theme="dark"] {
  --bg: #0a2739;
  --card: #0c2a20;
  --text: #ffffff;
  --muted: #b8c7c0;
  --primary: #3ddc84;
  --primary-text: #062014;
  --border: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.card {
  width: 100%;
  max-width: 420px;
  padding: 32px 24px;
  border-radius: 24px;
  background: var(--card);
  text-align: center;
}

.logo {
  border-radius: 22px;
}

h1 {
  margin: 20px 0 8px;
  font-size: 24px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.lead {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

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

.note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.note:empty {
  display: none;
}

button.btn {
  width: 100%;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

form.actions {
  margin: 0;
}
