:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --green: #087f5b;
  --green-dark: #056447;
  --ink: #1f2937;
  --muted: #59636f;
  --surface: #ffffff;
  --background: #f4f6f5;
  --border: #d7deda;
  --error: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
}

.recovery-screen {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.recovery-card {
  width: 100%;
  max-width: 440px;
  min-width: 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgb(31 41 55 / 12%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
}

h1 {
  margin: 24px 0 8px;
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.intro,
.status,
.requirements {
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

form[hidden] {
  display: none !important;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 750;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

input:focus-visible,
button:focus-visible,
.back-link:focus-visible {
  outline: 3px solid rgb(8 127 91 / 30%);
  outline-offset: 2px;
}

button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  font: inherit;
  font-weight: 850;
  white-space: normal;
  cursor: pointer;
}

button:hover {
  background: var(--green-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.requirements {
  margin: -4px 0 0;
  font-size: 13px;
}

.status {
  min-height: 48px;
  margin: 18px 0 8px;
  font-weight: 700;
}

.status[data-kind="error"] {
  color: var(--error);
}

.status[data-kind="success"] {
  color: var(--green);
}

.back-link {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-weight: 800;
  overflow-wrap: anywhere;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f7f4;
    --muted: #c1ccc7;
    --surface: #151d1a;
    --background: #101614;
    --border: #405049;
    --error: #ffb4ab;
  }
}

@media (max-width: 360px) {
  .recovery-card {
    padding: 22px 18px;
  }
}
