/* password-reset-prompt.css
   Styles for the "Pardon the interruption!" forced password-reset modal.
   Visually similar to the change-password modal so the two flows feel
   like one continuous task. Uses theme tokens so light/dark just work.
   The overlay is intentionally heavier than the change-password overlay
   to drive home that the site is inaccessible until the user acts.
*/
.prp-overlay {
  position: fixed;
  inset: 0;
  z-index: 1900; /* below change-password modal (2000) so Next stacks on top */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: prp-fade-in 160ms ease;
}
.prp-overlay.hidden {
  display: none !important;
}
@keyframes prp-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.prp-modal {
  width: 100%;
  max-width: 440px;
  background: var(--panel-bg);
  color: var(--color-text);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-panel, 12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  padding: 1.4rem 1.4rem 1.2rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: prp-pop-in 180ms cubic-bezier(.2, .8, .2, 1);
}
@keyframes prp-pop-in {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1);     opacity: 1; }
}
.prp-modal-header {
  margin-bottom: 0.75rem;
}
.prp-modal-title {
  font-family: var(--font-header);
  font-size: 1.3rem;
  margin: 0;
  letter-spacing: -0.01em;
}
.prp-modal-body {
  font-size: 0.98rem;
  line-height: 1.5;
  opacity: 0.92;
}
.prp-modal-body p {
  margin: 0;
}
.prp-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.prp-btn {
  font: inherit;
  font-family: var(--font-header);
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.prp-btn:hover:not(:disabled),
.prp-btn:focus-visible:not(:disabled) {
  background: var(--hover-bg);
  outline: none;
}
.prp-btn-next {
  background: color-mix(in srgb, var(--color-text) 88%, transparent);
  color: var(--color-bg);
  border-color: transparent;
}
.prp-btn-next:hover:not(:disabled),
.prp-btn-next:focus-visible:not(:disabled) {
  background: var(--color-text);
}
.prp-btn-logout {
  /* secondary, low-key */
  opacity: 0.95;
}
.prp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Lock background scroll when prompt is open */
body.prp-open {
  overflow: hidden;
}
/* Mobile tweaks */
@media (max-width: 480px) {
  .prp-modal {
    padding: 1.2rem 1.1rem 1rem;
  }
  .prp-modal-title {
    font-size: 1.15rem;
  }
  .prp-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .prp-btn {
    width: 100%;
  }
}
