:root {
  --bg: #f4f5f8;
  --card: #ffffff;
  --ink: #12151c;
  --muted: #5c6475;
  --line: #e1e4ea;
  --accent: #16764e;
  --accent-ink: #ffffff;
  --danger: #b42318;
  --danger-bg: #fdecea;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1017;
    --card: #161a23;
    --ink: #eef0f5;
    --muted: #9aa2b4;
    --line: #2a303d;
    --accent: #42c793;
    --accent-ink: #0d1017;
    --danger: #ff8a80;
    --danger-bg: #3a1a18;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 24px; }
.brand small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.brand-icon {
  position: relative; display: inline-block; width: 36px; height: 36px; border-radius: 10px;
  background: #42c793; color: #102b20; font-weight: 800; font-size: 24px; line-height: 36px; text-align: center;
}
.brand-icon span { position: absolute; right: -4px; top: -9px; font-size: 14px; color: #42c793; }
h1 { font-size: 22px; line-height: 1.25; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 20px; }
.subtle { color: var(--muted); font-size: 14px; margin: 20px 0 0; }
label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
input {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); font: inherit;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
form > .button.primary { width: 100%; margin-top: 22px; }
.actions { display: flex; gap: 12px; margin-top: 22px; }
.actions .button { flex: 1; }
.actions > .button.primary { margin-top: 0; width: auto; }
.switch { margin-top: 16px; text-align: center; }
.text-button { background: none; border: 0; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; padding: 4px; }
.error { background: var(--danger-bg); color: var(--danger); border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; font-size: 14px; }
.checks { padding-left: 20px; margin: 0; }
.checks li { margin: 6px 0; }
footer { margin-top: 24px; opacity: .7; }
footer img { height: auto; }
/* Long e-mail addresses wrap instead of leaving the card. */
h1, .lead, .subtle, .error, .text-button { overflow-wrap: anywhere; }
