:root {
  --recover-purple: #8f5cff;
  --recover-purple-light: #b985ff;
  --recover-green: #10de21;
  --recover-surface: #161616;
  --recover-line: rgba(255, 255, 255, .12);
}

.recover-shell {
  width: min(100%, 760px);
  min-height: calc(100vh - 170px);
  margin: 0 auto;
  padding: clamp(78px, 9vw, 118px) 24px clamp(96px, 11vw, 140px);
}

.recover-intro {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.recover-eyebrow {
  margin: 0 0 18px;
  color: var(--recover-green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.recover-intro h1 {
  max-width: 680px;
  margin: 0 auto;
  color: #fff;
  font-weight: 900;
}

.recover-lead {
  max-width: 620px;
  margin: 22px auto 0;
  color: #b8b8b8;
  font-size: clamp(1.02rem, 1.7vw, 1.16rem);
  line-height: 1.65;
}

.recover-card {
  max-width: 560px;
  margin: 44px auto 0;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--recover-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025)), var(--recover-surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.recover-field label {
  display: block;
  margin-bottom: 10px;
  color: #f5f5f5;
  font-size: .95rem;
  font-weight: 750;
}

.recover-field input {
  display: block;
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 11px;
  outline: 0;
  background: #0b0b0b;
  color: #fff;
  padding: 0 16px;
  font: inherit;
  font-size: 1rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.recover-field input::placeholder { color: #6f6f6f; }

.recover-field input:focus {
  border-color: var(--recover-purple-light);
  box-shadow: 0 0 0 3px rgba(143, 92, 255, .18);
}

.recover-hint {
  margin: 10px 2px 0;
  color: #777;
  font-size: .82rem;
  line-height: 1.55;
}

.recover-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.recover-error {
  margin: 16px 2px 0;
  color: #ff8585;
  font-size: .88rem;
  line-height: 1.5;
}

.recover-submit {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  margin-top: 24px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(90deg, var(--recover-purple), var(--recover-purple-light));
  box-shadow: 0 16px 36px rgba(143, 92, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .2);
  color: #fff;
  padding: 13px 20px;
  font: inherit;
  font-size: .98rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
}

.recover-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.recover-submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.recover-submit:disabled {
  cursor: wait;
  opacity: .68;
}

.recover-success {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 60;
  display: flex;
  width: min(420px, calc(100vw - 32px));
  align-items: flex-start;
  gap: 12px;
  border: 1px solid rgba(57, 216, 13, .32);
  border-radius: 14px;
  background: rgba(19, 28, 18, .96);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
  color: #d9f5d4;
  padding: 16px 18px;
  font-size: .91rem;
  line-height: 1.5;
  backdrop-filter: blur(16px);
  animation: recover-pop-in .24s ease-out;
}

.recover-success[hidden] { display: none; }

.recover-success strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: .96rem;
}

.recover-success-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--recover-green);
  color: #061006;
  font-size: .9rem;
  font-weight: 900;
}

@keyframes recover-pop-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .recover-shell {
    min-height: auto;
    padding: 68px 20px 88px;
  }

  .recover-card {
    margin-top: 34px;
    border-radius: 16px;
  }

  .recover-success {
    left: 16px;
    right: 16px;
    bottom: 88px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .recover-submit,
  .recover-field input { transition: none; }
  .recover-success { animation: none; }
}
