.recover-layout {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: 56px 24px 72px;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(255,253,248,.86), rgba(255,253,248,.46) 45%, rgba(255,253,248,.88)),
    linear-gradient(135deg, rgba(200, 59, 50, .08), transparent 34%),
    url("../images/ancestral-hall-new.png") center / cover no-repeat;
}

.recover-layout:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(251,247,237,.42), rgba(251,247,237,.86)),
    radial-gradient(circle at 50% 42%, rgba(255,253,248,.3), transparent 30%);
  backdrop-filter: blur(2px);
}

.recover-card {
  position: relative;
  overflow: hidden;
  width: min(440px, 100%);
  padding: 38px;
  border-radius: 16px;
  border-color: rgba(224, 211, 189, .9);
  background: rgba(255,253,248,.94);
  box-shadow: 0 26px 70px rgba(57, 48, 36, .16);
}

.recover-card:before {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 59, 50, .13), transparent 64%);
}

.recover-card > * {
  position: relative;
  z-index: 2;
}

.recover-card:hover {
  transform: none;
}

.auth-card h1 {
  margin-bottom: 12px;
  font-size: 40px;
}

.auth-card .lead {
  margin-bottom: 28px;
  font-size: 16px;
}

.page-forgot-password .form-grid {
  gap: 14px;
}

.page-forgot-password .input {
  height: 50px;
  background: #fffaf1;
}

.page-forgot-password .btn.primary,
.page-forgot-password .btn.ghost {
  position: relative;
  overflow: hidden;
  height: 50px;
}

.page-forgot-password .btn.primary {
  width: 100%;
  margin-top: 2px;
}

.page-forgot-password .btn.primary:before,
.page-forgot-password .btn.ghost:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
  transform: skewX(-18deg);
  transition: left .48s ease;
}

.page-forgot-password .btn.primary:hover,
.page-forgot-password .btn.ghost:hover {
  transform: translateY(-3px) scale(1.012);
}

.page-forgot-password .btn.primary:hover {
  box-shadow: 0 18px 42px rgba(200, 59, 50, .34);
}

.page-forgot-password .btn.ghost:hover {
  color: #fff;
  border-color: rgba(200, 59, 50, .2);
  background: var(--red);
  box-shadow: 0 16px 34px rgba(200, 59, 50, .2);
}

.page-forgot-password .btn.primary:hover:before,
.page-forgot-password .btn.ghost:hover:before {
  left: 110%;
}

.page-forgot-password .btn.primary:active,
.page-forgot-password .btn.ghost:active {
  transform: translateY(-1px) scale(.99);
}

.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

@media (max-width: 620px) {
  .recover-layout {
    padding: 36px 14px 48px;
    align-items: start;
  }

  .recover-card {
    padding: 28px 22px;
  }

  .auth-card h1 {
    font-size: 34px;
  }

  .code-row { grid-template-columns: 1fr; }
}
