@font-face {
  font-family: "Comfortaa";
  src: url("/assets/Comfortaa-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #f4f6ee;
  --muted: #aeb6a5;
  --dim: #7d8675;
  --lime: #bfe109;
  --lime-ink: #101304;
  --card: #151813;
  --edge: #2b3026;
  --page: #0d0f0b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100svh;
  background:
    radial-gradient(circle at 82% 18%, rgba(191, 225, 9, 0.12), transparent 34%),
    radial-gradient(circle at 12% 88%, rgba(191, 225, 9, 0.08), transparent 30%),
    var(--page);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

.shell {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px 20px 72px;
  overflow: hidden;
}

.orb {
  position: absolute;
  border: 1px solid rgba(191, 225, 9, 0.28);
  border-radius: 50%;
  pointer-events: none;
}

.orb-a {
  width: 560px;
  height: 560px;
  right: -210px;
  bottom: -230px;
}

.orb-b {
  width: 300px;
  height: 300px;
  right: -70px;
  bottom: -90px;
  border-color: rgba(191, 225, 9, 0.45);
}

.card {
  position: relative;
  z-index: 1;
  width: min(92vw, 460px);
  background: rgba(21, 24, 19, 0.94);
  border: 1px solid var(--edge);
  border-radius: 28px;
  padding: 42px 38px 34px;
  text-align: center;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.logo {
  display: block;
  width: 154px;
  height: auto;
  margin: 0 auto 30px;
}

.status {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Comfortaa", sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.status.success {
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 0 0 10px rgba(191, 225, 9, 0.1);
}

.status.recovery {
  background: #23291c;
  border: 1px solid #3a4529;
  color: var(--lime);
  box-shadow: 0 0 0 10px rgba(191, 225, 9, 0.05);
}

.status.error {
  background: #2e1d19;
  border: 1px solid #57342c;
  color: #f0a08e;
}

.status.neutral {
  background: #20251c;
  border: 1px solid #353d2c;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 14px;
  font-family: "Comfortaa", sans-serif;
  font-size: clamp(28px, 6vw, 37px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.message {
  max-width: 330px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.button {
  display: block;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

.button:hover {
  filter: brightness(1.04);
}

.button:active {
  transform: translateY(1px);
}

.button.secondary {
  margin-top: 10px;
  background: transparent;
  border: 1px solid #3a4031;
  color: #d7dccb;
  font-weight: 600;
}

.hint {
  min-height: 18px;
  margin: 18px 0 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.5;
}

footer {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
  color: #626b5b;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

footer a {
  color: #8b957f;
  text-decoration: none;
}

@media (max-width: 520px) {
  .shell {
    padding: 24px 14px 92px;
  }

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

  .logo {
    width: 136px;
    margin-bottom: 24px;
  }

  footer {
    left: 16px;
    right: 16px;
    bottom: 14px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}

/* password form */
.form {
  margin: 0 0 4px;
  text-align: left;
}

.field {
  display: block;
  margin-bottom: 12px;
}

.field span {
  display: block;
  margin: 0 0 6px 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #3a4031;
  border-radius: 14px;
  background: #0f120d;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.field input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(191, 225, 9, 0.12);
}

.rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 12px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.rules li {
  position: relative;
  padding-left: 16px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.4;
}

.rules li::before {
  content: "○";
  position: absolute;
  left: 0;
  color: #55604b;
}

.rules li.met {
  color: #c9d5b4;
}

.rules li.met::before {
  content: "✓";
  color: var(--lime);
}

.form-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #57342c;
  border-radius: 12px;
  background: #2e1d19;
  color: #f0a08e;
  font-size: 12px;
  line-height: 1.45;
}

.button[disabled] {
  cursor: wait;
  opacity: 0.7;
}

@media (max-width: 420px) {
  .rules {
    grid-template-columns: 1fr;
  }
}
