/* Gestor STA — Página Esqueci minha senha
   Rota isolada para /esqueci-senha/, inspirada na referência enviada e adaptada à identidade azul do sistema. */

.reset-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% -12%, rgba(0, 213, 232, .18), transparent 34%),
    radial-gradient(circle at 12% 18%, rgba(15, 99, 255, .10), transparent 28%),
    linear-gradient(180deg, #edf7ff 0%, #f6fbff 44%, #eef7ff 100%);
  color: var(--ink);
}

.reset-shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(20px, 4vw, 42px) 16px max(24px, env(safe-area-inset-bottom));
  position: relative;
  overflow: hidden;
}

.reset-shell::before,
.reset-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.reset-shell::before {
  width: 680px;
  height: 680px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  border: 1px solid rgba(15, 99, 255, .08);
  box-shadow: inset 0 0 80px rgba(255,255,255,.34);
}

.reset-shell::after {
  width: 260px;
  height: 260px;
  right: -80px;
  bottom: 84px;
  background: radial-gradient(circle, rgba(0, 213, 232, .14), transparent 66%);
}

.reset-center {
  width: min(100%, 390px);
  place-self: center;
  display: grid;
  justify-items: center;
  position: relative;
  z-index: 1;
}

.reset-logo {
  width: min(190px, 58vw);
  display: block;
  margin-bottom: 30px;
  border-radius: 14px;
  text-decoration: none;
}

.reset-logo img {
  width: 100%;
  height: auto;
}

.reset-card {
  width: 100%;
  padding: 28px;
  border: 1px solid rgba(204, 215, 232, .86);
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 22px 72px rgba(7, 23, 59, .12);
  backdrop-filter: blur(16px);
}

.reset-card-header {
  text-align: center;
  margin-bottom: 24px;
}

.reset-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--blue-600);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.reset-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--cyan-400);
  box-shadow: 0 0 0 5px rgba(0, 213, 232, .13), 0 0 22px rgba(0, 213, 232, .46);
}

.reset-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 900;
}

.reset-card p {
  margin: 18px auto 0;
  max-width: 292px;
  color: #6f7d96;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.reset-label {
  display: block;
  margin-bottom: 9px;
  color: #56647d;
  font-size: 13px;
  font-weight: 750;
}

.reset-input-shell {
  height: 42px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.reset-input-shell:focus-within {
  border-color: rgba(15, 99, 255, .72);
  box-shadow: 0 0 0 4px rgba(15, 99, 255, .10);
  background: #fbfdff;
}

.reset-input-shell svg {
  width: 18px;
  height: 18px;
  justify-self: center;
  stroke: #8290a8;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reset-input-shell input {
  width: 100%;
  height: 40px;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.reset-input-shell input::placeholder {
  color: #9ba7bb;
}

.reset-message {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
}

.reset-message.is-error {
  display: block;
  color: #8a280f;
  border: 1px solid #ffd7c8;
  background: #fff4ef;
}

.reset-message.is-success {
  display: block;
  color: #073e71;
  border: 1px solid #bfddff;
  background: #edf7ff;
}

.reset-submit {
  width: 100%;
  height: 44px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-400));
  box-shadow: 0 14px 34px rgba(15, 99, 255, .24);
  font-size: 13px;
  font-weight: 900;
  transition: transform var(--transition), filter var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.reset-submit:hover {
  filter: saturate(1.06);
  box-shadow: 0 18px 42px rgba(15, 99, 255, .31);
}

.reset-submit:disabled {
  cursor: not-allowed;
  opacity: .72;
}

.reset-back-link {
  width: fit-content;
  display: block;
  margin: 13px auto 0;
  padding: 5px 6px;
  border-radius: 8px;
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.reset-back-link:hover,
.reset-create-account a:hover,
.reset-footer a:hover {
  text-decoration: underline;
}

.reset-create-account {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin-top: 20px;
  color: #66738d;
  font-size: 13px;
  line-height: 1.18;
  font-weight: 750;
  text-align: center;
}

.reset-create-account a {
  padding: 3px 6px;
  border-radius: 8px;
  color: var(--blue-600);
  font-weight: 900;
  text-decoration: none;
}

.reset-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7px;
  position: relative;
  z-index: 1;
  color: #70809a;
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
}

.reset-footer a {
  padding: 2px;
  color: #5c6b83;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 750;
}

.reset-footer small {
  flex-basis: 100%;
  display: block;
  color: #7c8ba2;
  font-size: 11px;
  font-weight: 600;
}

@media (min-width: 1181px) {
  .reset-shell {
    padding-top: clamp(18px, 3vw, 34px);
  }

  .reset-center {
    width: min(100%, 352px);
  }

  .reset-logo {
    width: 166px;
    margin-bottom: 26px;
  }

  .reset-card {
    padding: 24px;
    border-radius: 13px;
  }

  .reset-card-header { margin-bottom: 22px; }
  .reset-card h1 { font-size: 21px; }
  .reset-card p { font-size: 12.3px; }
  .reset-label { font-size: 12px; }
  .reset-input-shell { height: 40px; }
  .reset-input-shell input { height: 38px; font-size: 12.5px; }
  .reset-submit { height: 40px; font-size: 12.5px; }
}

@media (max-width: 820px) {
  .reset-page {
    background: linear-gradient(180deg, #eef7ff 0%, #f8fbff 52%, #eef7ff 100%);
  }

  .reset-shell {
    min-height: 100dvh;
    padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
  }

  .reset-shell::before {
    width: 520px;
    height: 520px;
    top: 44%;
  }

  .reset-center {
    width: min(100%, 386px);
  }

  .reset-logo {
    width: min(178px, 58vw);
    margin-bottom: 22px;
  }

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

  .reset-card h1 {
    font-size: 22px;
  }

  .reset-card p {
    margin-top: 13px;
    font-size: 12.5px;
  }

  .reset-input-shell {
    height: 46px;
    grid-template-columns: 44px 1fr;
  }

  .reset-input-shell input {
    height: 44px;
    font-size: 13.2px;
  }

  .reset-submit {
    height: 46px;
  }

  .reset-footer {
    margin-top: 24px;
    gap: 6px;
    font-size: 10.5px;
  }

  .reset-footer small {
    font-size: 10.5px;
  }
}

@media (max-width: 390px) {
  .reset-shell {
    padding-inline: 10px;
  }

  .reset-card {
    padding: 18px;
  }

  .reset-card h1 {
    font-size: 20px;
  }

  .reset-footer span:nth-of-type(2) {
    display: none;
  }

  .reset-footer a:nth-of-type(3) {
    flex-basis: 100%;
  }
}
