:root {
  --bg: #f4efe5;
  --paper: #fffdf7;
  --ink: #181512;
  --muted: #70685d;
  --forest: #183f35;
  --wine: #7a2f3f;
  --line: #e2d7c4;
  --amber: #d8a24a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(24, 63, 53, .96), rgba(122, 47, 63, .82)),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a { color: inherit; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(440px, 100%);
  padding: 30px;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: #f8edd7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

h1 {
  margin: 26px 0 8px;
  font-size: 34px;
}

p,
footer {
  color: var(--muted);
  line-height: 1.7;
}

form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fffaf0;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}

button {
  min-height: 46px;
  color: #fffaf0;
  background: var(--forest);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.alert {
  margin-top: 16px;
  padding: 12px;
  color: #fffaf0;
  background: var(--wine);
  border-radius: 8px;
}

footer {
  margin-top: 18px;
}

footer a {
  color: var(--wine);
  font-weight: 900;
}

.install-card {
  width: min(560px, 100%);
}

.install-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  padding: 0 16px;
  color: #fffaf0;
  background: var(--forest);
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.install-link.muted {
  color: var(--ink);
  background: #f8edd7;
}
