:root {
  color-scheme: dark;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #07100d;
  color: #f4f8f6;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(46, 160, 114, 0.18), transparent 34rem),
    radial-gradient(circle at 84% 88%, rgba(39, 92, 72, 0.2), transparent 28rem),
    #07100d;
}

.shell {
  width: min(1080px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
  align-items: center;
  gap: 80px;
  padding: 64px 0;
}

.eyebrow,
.kicker {
  color: #62d49f;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.17em;
}

h1 {
  margin: 20px 0 24px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.intro > p {
  max-width: 580px;
  color: #aebdb6;
  font-size: 17px;
  line-height: 1.8;
}

ul {
  display: grid;
  gap: 13px;
  margin: 30px 0 0;
  padding: 0;
  color: #d5dfda;
  list-style: none;
}

li::before {
  content: "✓";
  margin-right: 12px;
  color: #62d49f;
}

.card {
  padding: 42px;
  border: 1px solid rgba(152, 195, 176, 0.2);
  border-radius: 24px;
  background: rgba(14, 28, 23, 0.86);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.lock {
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(98, 212, 159, 0.34);
  border-radius: 14px;
  color: #62d49f;
  background: rgba(98, 212, 159, 0.08);
  font-size: 28px;
}

h2 {
  margin: 10px 0 8px;
  font-size: 31px;
}

.hint,
.foot {
  color: #8fa198;
}

form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

[hidden] {
  display: none !important;
}

label {
  margin-top: 9px;
  color: #cbd7d1;
  font-size: 14px;
}

input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #30473d;
  border-radius: 11px;
  outline: none;
  background: #0a1712;
  color: #f4f8f6;
  font: inherit;
}

input:focus {
  border-color: #62d49f;
  box-shadow: 0 0 0 3px rgba(98, 212, 159, 0.12);
}

.primary-action {
  height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: 11px;
  background: #62d49f;
  color: #062016;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.55;
}

.auth-alternate {
  margin: 6px 0 0;
  color: #8fa198;
  text-align: center;
  font-size: 13px;
}

.text-action {
  margin: 0 0 0 4px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #8be1b8;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.text-action:hover,
.text-action:focus-visible {
  color: #b6f2d5;
  text-decoration: underline;
}

.password-help {
  margin: 2px 0 0;
  color: #74877e;
  font-size: 12px;
  line-height: 1.5;
}

.message {
  min-height: 20px;
  margin: 8px 0 0;
  color: #8fa198;
  font-size: 13px;
}

.message.error {
  color: #ff9a9a;
}

.foot {
  margin: 26px 0 0;
  text-align: center;
  font-size: 12px;
}

.foot span,
.foot .icp-link {
  display: block;
}

.foot .icp-link {
  width: fit-content;
  margin: 7px auto 0;
  color: #aebdb6;
  text-decoration: none;
}

.foot .icp-link:hover,
.foot .icp-link:focus-visible {
  color: #b6f2d5;
  text-decoration: underline;
}

@media (max-width: 820px) {
  .shell {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 52px 0;
  }

  .intro {
    text-align: center;
  }

  .intro > p {
    margin-inline: auto;
  }

  ul {
    display: none;
  }
}

@media (max-width: 480px) {
  .shell {
    width: min(100% - 24px, 420px);
    padding: 28px 0;
  }

  h1 {
    font-size: 38px;
  }

  .card {
    padding: 28px 22px;
    border-radius: 18px;
  }
}
