body.password-reset-page {
  min-height: 100vh;
  margin: 0;
  padding: 32px 20px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.12), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(14, 165, 233, 0.10), transparent 28%),
    #f6f8fc;
}

.password-reset-shell {
  width: min(100%, 430px);
}

.password-reset-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.8) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.11) !important;
}

.password-reset-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #1768e5, #38bdf8);
}

.password-reset-card .card-body {
  padding: 34px 34px 30px;
}

.reset-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.reset-brand-mark,
.reset-icon {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #1768e5, #0ea5e9) !important;
  box-shadow: 0 10px 24px rgba(23, 104, 229, 0.22);
}

.reset-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.reset-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
}

.reset-icon svg,
.input-icon svg,
.back-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-reset-card .auth-form-title {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: clamp(1.65rem, 4vw, 1.95rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.password-reset-card .auth-form-subtitle {
  max-width: 370px;
  margin: 0 0 24px;
  color: #64748b;
  font-size: 0.96rem;
  line-height: 1.6;
}

.password-reset-card .form-label {
  margin-bottom: 9px;
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 750;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #94a3b8;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-icon svg {
  width: 20px;
  height: 20px;
}

.password-reset-card .form-control {
  min-height: 50px;
  padding: 12px 16px 12px 46px;
  border: 1px solid #cbd5e1 !important;
  border-radius: 13px !important;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-reset-card .form-control:focus {
  border-color: #1768e5 !important;
  box-shadow: 0 0 0 4px rgba(23, 104, 229, 0.12) !important;
}

.password-reset-card .form-control:focus + .input-icon,
.input-wrap:focus-within .input-icon {
  color: #1768e5;
}

.field-help {
  margin-top: 8px;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.password-reset-card .btn-primary {
  min-height: 50px;
  width: 100%;
  border: 0 !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, #1768e5, #2563eb) !important;
  box-shadow: 0 12px 26px rgba(23, 104, 229, 0.22);
  font-size: 0.98rem;
  font-weight: 750;
}

.password-reset-card .btn-primary:hover,
.password-reset-card .btn-primary:focus {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(23, 104, 229, 0.28);
}

.reset-footer {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569 !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  text-decoration: none;
}

.back-link:hover {
  color: #1768e5 !important;
  text-decoration: none !important;
}

.back-link svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

.back-link:hover svg {
  transform: translateX(-3px);
}

.password-reset-card .message {
  margin-bottom: 20px;
}

@media (max-width: 540px) {
  body.password-reset-page {
    padding: 18px 14px;
  }

  .password-reset-card {
    border-radius: 20px !important;
  }

  .password-reset-card .card-body {
    padding: 28px 22px 24px;
  }

  .reset-brand {
    margin-bottom: 24px;
  }
}


/* Compact password reset logo */
.password-reset-page .reset-logo-frame {
  width: min(190px, 66vw);
  height: 68px;
  max-width: 100%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #fff;
}

.password-reset-page .reset-logo-frame .cellaro-logo-auth {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center;
}

.password-reset-page .auth-form-title,
.password-reset-page .auth-form-subtitle {
  text-align: left;
}

.password-reset-page .auth-form-subtitle {
  margin-bottom: 1.5rem;
}

@media (max-width: 540px) {
  .password-reset-page .reset-logo-frame {
    width: min(168px, 62vw);
    height: 60px;
    margin-bottom: 1.2rem;
  }
}


/* Password reset form controls */
.password-reset-card form {
  display: grid;
  gap: 16px;
}

.password-reset-card form .mb-4 {
  margin: 0 !important;
}

.password-reset-card .form-control {
  min-height: 50px;
  border-radius: 12px !important;
}

.password-reset-card .btn-primary {
  min-height: 50px;
  margin: 0;
  border-radius: 12px !important;
}

@media (max-width: 540px) {
  .password-reset-card form {
    gap: 13px;
  }

  .password-reset-card .form-control,
  .password-reset-card .btn-primary {
    min-height: 48px;
  }
}
