:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(127, 178, 255, 0.18), transparent 36%),
    #06122a;
  color: #e9eefc;
  font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}

header {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #000f30;
}

.muted {
  color: rgba(233, 238, 252, 0.76);
}

.wrap {
  width: min(520px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 5vw, 2rem);
}

p {
  line-height: 1.55;
}

label {
  display: block;
  margin-top: 16px;
  font-weight: 700;
}

input {
  width: 100%;
  margin-top: 7px;
  padding: 12px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  color: #e9eefc;
  font: inherit;
}

input:focus-visible,
.button:focus-visible,
.text-link:focus-visible {
  outline: 3px solid #ffd36a;
  outline-offset: 3px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 76px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-42%);
  min-width: 58px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  background: #0d2350;
  color: #e9eefc;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 20px;
  padding: 10px 15px;
  border: 1px solid rgba(127, 178, 255, 0.38);
  border-radius: 11px;
  background: rgba(127, 178, 255, 0.16);
  color: #e9eefc;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: rgba(127, 178, 255, 0.25);
}

.notice {
  margin: 18px 0;
  padding: 13px 14px;
  border: 1px solid rgba(75, 210, 150, 0.4);
  border-radius: 12px;
  background: rgba(20, 125, 85, 0.2);
  line-height: 1.5;
}

.error {
  margin: 18px 0;
  padding: 13px 14px;
  border: 1px solid rgba(255, 125, 125, 0.4);
  border-radius: 12px;
  background: rgba(180, 0, 0, 0.2);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.text-link {
  color: #ffd36a;
  font-weight: 750;
}

.field-help {
  margin: 7px 0 0;
  color: rgba(233, 238, 252, 0.72);
  font-size: 0.88rem;
}

.token-transfer {
  margin-top: 18px;
}

.token-transfer input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 22px, 520px);
    padding: 16px 0;
  }

  .card {
    padding: 20px;
  }
}
