:root {
  color-scheme: dark;
  --bg: #050706;
  --panel: #0b100c;
  --line: #202a22;
  --text: #eef5ef;
  --muted: #98a79b;
  --accent: #7af500;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
}

body.account-page {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px 0;
}

.account-page::before,
.account-page::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.account-page::before {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgb(40 100 48 / 3%) 35%,
    rgb(65 150 65 / 9%) 100%
  );
}

.account-page::after {
  background-image:
    linear-gradient(rgb(122 245 0 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(122 245 0 / 5%) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgb(0 0 0 / 25%) 25%,
    black 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgb(0 0 0 / 25%) 25%,
    black 100%
  );
}

.account-wrap {
  position: relative;
  width: min(100%, 420px);
  margin: auto;
  padding: 24px;
}

.account-wrap > .rel-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 0;
  min-height: 40px;
  margin: 0 auto 22px;
  line-height: 1;
  text-decoration: none;
}

.account-wrap > .rel-brand img {
  display: block;
  width: auto;
  height: 29px;
  max-width: min(200px, 60vw);
  object-fit: contain;
}

.account-wrap > h1 {
  margin: 0 0 26px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.2px;
  text-align: center;
}

.account-wrap form {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.account-wrap [hidden] {
  display: none !important;
}

.account-wrap label {
  display: block;
  margin: 0 0 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.account-wrap input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0 0 17px;
  padding: 11px 13px;
  border: 1px solid #344337;
  border-radius: 9px;
  background: rgb(11 16 12 / 90%);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition:
    border-color 150ms ease,
    background-color 150ms ease;
}

.account-wrap input:hover {
  border-color: #536b56;
}

.account-wrap input:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 0;
  background: #0b120c;
}

.account-wrap a:focus-visible,
.account-wrap button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}

.account-wrap .hint {
  margin: -7px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.account-wrap form > button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 5px 0 0;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--accent);
  color: #061109;
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.account-wrap form > button:hover {
  background: #a1f83e;
}

.account-wrap button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.account-wrap > .account-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  margin: 7px auto 0;
  padding: 8px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.account-wrap > .account-link:hover {
  color: var(--accent);
}

.account-wrap > #message {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.account-wrap > #message:empty {
  display: none;
}

.account-wrap > #message:not(:empty) {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(11 16 12 / 85%);
}

.account-wrap .account-text-action {
  display: block;
  width: fit-content;
  min-width: 0;
  min-height: 44px;
  margin: 8px auto 0;
  padding: 10px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: 600 14px/1.4 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: color 150ms ease;
}

.account-wrap .account-text-action:hover {
  background: transparent;
  color: var(--accent);
}

.account-wrap .account-text-action:disabled {
  opacity: 0.5;
  cursor: wait;
}

.account-wrap > .hint {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.account-link {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  padding: 8px 0;
}

.account-link[hidden] {
  display: none !important;
}

.recovery-fields {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.primary-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #061109;
  font-weight: 700;
  text-decoration: none;
}

.account-wrap > .account-back {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 150ms ease,
    color 150ms ease;
}

.account-wrap > .account-back:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.account-wrap > .account-back .rel-icon {
  width: 21px;
  height: 21px;
}

.account-wrap > .account-secondary-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 10px;
  margin-top: 8px;
}

.account-wrap .account-secondary-links .account-text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0;
  padding: 8px 0;
}

.account-secondary-links
  > .account-text-action:not([hidden])
  ~ .account-text-action:not([hidden])::before {
  margin-right: 8px;
  color: var(--accent);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  content: "·";
}

@media (max-height: 650px) {
  .account-page .account-wrap {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .account-page .account-wrap > .rel-brand {
    margin-bottom: 14px;
  }

  .account-page .account-wrap > h1 {
    margin-bottom: 19px;
    font-size: 36px;
  }

  .account-page .account-wrap input {
    min-height: 44px;
    margin-bottom: 12px;
  }

  .account-page .account-wrap > .hint {
    margin-top: 8px;
  }
}

@media (max-height: 600px) {
  body.account-page {
    align-items: start;
  }
}

@media (max-width: 480px) {
  .account-wrap {
    padding: 24px 20px 20px;
  }

  .account-page .account-wrap > h1 {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-wrap input,
  .account-wrap .account-text-action,
  .account-wrap > .account-back {
    transition: none;
  }
}

@media (forced-colors: active) {
  .account-wrap a:focus-visible,
  .account-wrap button:focus-visible {
    outline-color: Highlight;
  }
}

@media (max-width: 420px) {
  .account-secondary-links {
    flex-direction: column;
    gap: 10px;
  }

  .account-secondary-links
    > .account-text-action:not([hidden])
    ~ .account-text-action:not([hidden])::before {
    content: none;
  }
}
