:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  color: #273b38;
  background: #eef2ee;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: #eef2ee;
}

.login-shell {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 40px 20px;
}

.login-card {
  width: min(100%, 500px);
  padding: clamp(26px, 6vw, 42px);
  border: 1px solid #dfe7e2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 40px #344f410d;
}

.login-heading { margin-bottom: 30px; }

.login-mark {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 3px;
  align-content: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 21px;
  border-radius: 10px;
  background: #496b61;
}

.login-mark i { display: block; border-radius: 1px; background: #fff; }
.login-eyebrow { margin: 0 0 8px; color: #65746f; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.login-heading h1 { margin: 0; color: #273b38; font-size: clamp(25px, 6vw, 30px); font-weight: 700; letter-spacing: .02em; }
.login-intro { margin: 10px 0 0; color: #65746f; font-size: 15px; line-height: 1.7; }

#login-form { display: grid; gap: 11px; }
#login-form label { color: #344940; font-size: 14px; font-weight: 650; }
#activation-code {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cbd9d1;
  border-radius: 10px;
  outline: none;
  background: #fcfdfa;
  color: #273b38;
  font: 500 15px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .01em;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
#activation-code::placeholder { color: #9aa7a0; font-size: 11px; letter-spacing: 0; }
#activation-code:focus { border-color: #68897a; background: #fff; box-shadow: 0 0 0 3px #496b611c; }

.login-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 5px;
  border: 1px solid #496b61;
  border-radius: 10px;
  background: #496b61;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.login-submit:hover { border-color: #36594e; background: #36594e; }
.login-submit:active { transform: translateY(1px); }
.login-submit:focus-visible, .login-purchase-action:focus-visible { outline: 3px solid #496b61; outline-offset: 3px; }

.login-status { min-height: 23px; margin: 11px 0 0; color: #65746f; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.login-status[data-state="loading"] { color: #496b61; }
.login-status[data-state="error"] { color: #9a3935; font-weight: 600; }
.login-purchase { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 15px; padding-top: 21px; border-top: 1px solid #e6ece8; }
.login-purchase-copy { min-width: 0; }
.login-purchase-copy h2 { margin: 0; color: #344940; font-size: 14px; font-weight: 650; }
.login-purchase-copy p { margin: 5px 0 0; color: #78867f; font-size: 12px; line-height: 1.5; }
.login-purchase-action {
  display: grid;
  justify-items: center;
  gap: 3px;
  flex: none;
  min-width: 128px;
  min-height: 46px;
  padding: 7px 12px;
  border: 1px solid #d9e2dc;
  border-radius: 10px;
  background: #f5f8f5;
  color: #536a5e;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: not-allowed;
}
.login-coming-soon { color: #849188; font-size: 10px; font-weight: 500; }
.login-footnote { margin: 16px 0 0; color: #78867f; font-size: 11px; line-height: 1.6; text-align: center; }

@media (max-width: 420px) {
  .login-shell { padding: 24px 16px; }
  .login-card { padding: 24px 20px; border-radius: 16px; }
  .login-purchase { align-items: flex-start; flex-direction: column; gap: 12px; }
  .login-purchase-action { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
