/**
 * Password reset page + shared password field styles (also used in index3 modal).
 */

/* ---- Auth page: single centered card ---- */
.pr-auth-page {
  min-height: 100vh;
  margin: 0;
}

.pr-auth-page .page,
.pr-auth-page .cd3-main {
  /* Override dashboard page shell when cd3 styles leak in */
  max-width: none;
  padding: 0;
}

.pr-auth-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
  box-sizing: border-box;
}

.pr-auth-card {
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-md, 0 8px 30px rgba(15, 23, 42, 0.08));
}

.pr-auth-card-inner {
  padding: 32px 28px 28px;
}

.pr-auth-logo {
  display: block;
  margin-bottom: 24px;
  text-decoration: none;
}

.pr-auth-logo img {
  display: block;
  height: 28px;
  width: auto;
}

.pr-auth-card .cd3-eyebrow {
  margin: 0 0 8px;
}

.pr-auth-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.pr-auth-lead {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-500);
}

.pr-auth-note {
  margin: -6px 0 16px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-400);
}

.pr-auth-footer-link {
  display: block;
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-500);
  text-decoration: none;
}

.pr-auth-footer-link:hover {
  color: var(--brand-600);
  text-decoration: none;
}

/* ---- Alerts ---- */
.pr-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.45;
}

.pr-alert-danger {
  background: var(--rose-50);
  border: 1px solid var(--rose-100, #fecdd3);
  color: var(--rose-800, #9f1239);
}

.pr-alert-warning {
  background: var(--amber-50);
  border: 1px solid var(--amber-100, #fde68a);
  color: var(--amber-900, #78350f);
}

.pr-alert-success {
  background: var(--green-50);
  border: 1px solid var(--green-100, #bbf7d0);
  color: var(--green-800, #166534);
}

/* ---- Form fields ---- */
.pr-auth-page .form-group,
#change_password_modal .form-group {
  margin-bottom: 14px;
}

.pr-auth-page .form-label,
#change_password_modal .form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-800);
}

.pr-auth-page .form-control,
#change_password_modal .form-control {
  border-radius: var(--r-md);
  border-color: var(--ink-200);
  font-size: 14px;
}

.pr-auth-page .form-control:focus,
#change_password_modal .form-control:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(61, 99, 235, 0.12);
}

.pr-pw-field {
  position: relative;
}

.pr-pw-field .form-control {
  padding-right: 42px;
}

.pr-pw-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 4px 6px;
  color: var(--ink-400);
  cursor: pointer;
  line-height: 1;
}

.pr-pw-toggle:hover {
  color: var(--ink-700);
}

.pr-pw-hint {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
}

.pr-pw-hint.is-match {
  color: var(--green-700, #15803d);
}

.pr-pw-hint.is-mismatch {
  color: var(--rose-700, #be123c);
}

.pr-pw-hint.is-muted {
  color: var(--ink-400);
}

.pr-auth-page .btn-primary.w-100,
#change_password_modal .btn-primary[type="submit"] {
  margin-top: 4px;
}

.pr-auth-page .btn-primary .fa-spinner {
  margin-right: 6px;
}

.pr-inline-link {
  color: var(--brand-600);
  text-decoration: none;
  font-weight: 500;
}

.pr-inline-link:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

.pr-alert-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.pr-alert-link:hover {
  color: inherit;
  opacity: 0.85;
}

.pr-auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pr-auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--ink-600);
  cursor: pointer;
  user-select: none;
}

.pr-auth-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--brand-600);
}

.pr-auth-forgot {
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-600);
  text-decoration: none;
  white-space: nowrap;
}

.pr-auth-forgot:hover {
  color: var(--brand-700);
  text-decoration: none;
}

/* ---- index3 success banner ---- */
.cd3-pw-changed-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--green-50);
  border: 1px solid var(--green-100, #bbf7d0);
  color: var(--green-800, #166534);
  font-size: 13px;
}

.cd3-pw-changed-banner button {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.7;
}

.cd3-pw-changed-banner button:hover {
  opacity: 1;
}

#change_password_modal .pr-alert {
  margin-bottom: 12px;
}
