:root {
  color-scheme: light;
  font-family: Roboto, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1e211f;
  background: #faf8ef;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 14%, rgba(155, 226, 33, 0.18), transparent 26rem),
    radial-gradient(circle at 92% 84%, rgba(71, 123, 21, 0.10), transparent 24rem),
    #faf8ef;
}

.page-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card, .download-card {
  width: min(100%, 540px);
  padding: clamp(28px, 7vw, 48px);
  border: 1px solid #d4d1c6;
  border-radius: 28px;
  background: rgba(255, 254, 248, 0.96);
  box-shadow: 0 24px 70px rgba(30, 33, 31, 0.10);
}
.brand-mark {
  width: 76px; height: 76px; margin-bottom: 22px; overflow: hidden;
  border-radius: 22px; background: #171a18; box-shadow: 0 10px 24px rgba(30, 33, 31, 0.15);
}
.brand-mark.small { width: 64px; height: 64px; margin: 0; border-radius: 18px; flex: 0 0 auto; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.eyebrow { margin: 0 0 8px; color: #477b15; font-size: 13px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(30px, 7vw, 42px); line-height: 1.06; letter-spacing: -.035em; }
.intro { margin: 18px 0 28px; color: #5e625b; font-size: 16px; line-height: 1.55; }
.download-header { display: flex; align-items: center; gap: 18px; }
.login-form { display: grid; gap: 10px; }
.login-form label { margin-top: 8px; font-size: 13px; font-weight: 750; }
.login-form input {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid #a9ada3;
  border-radius: 15px; outline: none; background: #fffef8; color: #1e211f; font: inherit;
}
.login-form input:focus { border-color: #477b15; box-shadow: 0 0 0 4px rgba(155, 226, 33, .24); }
button, .download-button, .admin-button {
  display: inline-flex; min-height: 54px; align-items: center; justify-content: center;
  margin-top: 18px; padding: 0 24px; border: 0; border-radius: 17px;
  background: #477b15; color: #fff; font: inherit; font-weight: 800;
  text-decoration: none; cursor: pointer; box-shadow: 0 9px 24px rgba(71, 123, 21, .22);
}
button:hover, .download-button:hover, .admin-button:hover { background: #35670b; }
button:focus-visible, .download-button:focus-visible, .admin-button:focus-visible { outline: 4px solid rgba(155, 226, 33, .45); outline-offset: 3px; }
.login-form button, .download-button, .admin-button { width: 100%; }
.admin-button { background: #1e211f; box-shadow: 0 9px 24px rgba(30, 33, 31, .18); }
.admin-button:hover { background: #343936; }
.form-error { margin: 8px 0 -2px; color: #9c2c1e; font-size: 14px; font-weight: 650; }
.build-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 8px; }
.build-info div { padding: 15px; border-radius: 16px; background: #f1efe6; }
.build-info dt { color: #757970; font-size: 12px; font-weight: 700; }
.build-info dd { margin: 5px 0 0; font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.checksum { margin-top: 22px; color: #5e625b; font-size: 13px; }
.checksum summary { cursor: pointer; font-weight: 700; }
.checksum code { display: block; margin-top: 10px; padding: 12px; border-radius: 12px; background: #f1efe6; color: #1e211f; overflow-wrap: anywhere; }
.install-note { display: flex; gap: 12px; margin-top: 22px; padding: 14px; border-radius: 16px; background: #ddf2b6; }
.install-note span { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #477b15; color: #fff; font-weight: 900; }
.install-note p { margin: 1px 0 0; color: #33431d; font-size: 13px; line-height: 1.45; }
.text-button { width: auto; min-height: 38px; margin: 20px auto -12px; padding: 0 14px; background: transparent; color: #477b15; box-shadow: none; }
.text-button:hover { background: #f1efe6; }
.unavailable { padding: 18px; border-radius: 16px; background: #f1efe6; color: #5e625b; text-align: center; }

@media (max-width: 480px) {
  .page-shell { padding: 12px; align-items: start; }
  .auth-card, .download-card { margin-top: 12px; padding: 26px 22px; border-radius: 24px; }
  .build-info { grid-template-columns: 1fr; }
}
