/* ============================
   Reset Link Page (enter new password)
   Match ResetPW Modern v2 look
   ============================ */

/* Make the Bootstrap-ish wrapper behave like resetpw-page */
.resetpw-page .container,
.resetpw-page .row,
.resetpw-page .col-lg-10,
.resetpw-page .col-xl-9,
.resetpw-page .mx-auto {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Neutralize row spacing quirks if Bootstrap exists */
.resetpw-page .row {
  margin-left: 0;
  margin-right: 0;
}

/* The legacy card used on reset-link view */
.resetpw-page .card,
.resetpw-page .card-signin {
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 30px;
  border: 1px solid #e6ebf1;
  font-family: 'Calibri', sans-serif;
  box-shadow: none;
}

/* Remove the old "image side" spacing if it exists */
.resetpw-page .card-img-left {
  display: none !important;
}

/* Card body spacing */
.resetpw-page .card-body {
  padding: 0;
}

/* Title + subtitle */
.resetpw-page .card-title {
  font-size: 30px;
  color: #043e6c;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.75rem;
}

.resetpw-page .text-center {
  text-align: center;
}

.resetpw-page p.text-center {
  font-size: 18px;
  color: #333;
  margin-bottom: 1.75rem;
}

/* Labels */
.resetpw-page label,
.resetpw-page .col-form-label {
  font-size: 16px;
  font-weight: 600;
  color: #043e6c;
  margin-bottom: 0.4rem;
  display: block;
}

/* Inputs (Bootstrap form-control) */
.resetpw-page .form-control {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #cdd6df;
  background: #ffffff;
  font-size: 14px;
  color: #000;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.resetpw-page .form-control:focus {
  outline: none;
  border-color: #2A95D1;
  box-shadow: 0 0 0 3px rgba(42,149,209,0.25);
}

/* Spacing helpers used in markup */
.resetpw-page .mb-2 {
  margin-bottom: 0.75rem;
}

.resetpw-page .form-group {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Password pattern box */
.resetpw-page #password_pattern_message {
  margin: 1rem 0 1.25rem;
  padding: 12px 14px;
  border: 1px solid #e6ebf1;
  border-radius: 8px;
  background: #f7f9fc;
  font-size: 0.95rem;
  color: #333;
}

.resetpw-page #password_pattern_message strong {
  color: #043e6c;
}

/* Valid / invalid indicators */
.resetpw-page .valid,
.resetpw-page .invalid {
  padding: 6px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
  font-weight: 600;
}

.resetpw-page .valid {
  color: #1b7a3a;
  background: rgba(27, 122, 58, 0.10);
  border: 1px solid rgba(27, 122, 58, 0.25);
}

.resetpw-page .invalid {
  color: #EE3829;
  background: rgba(238, 56, 41, 0.08);
  border: 1px solid rgba(238, 56, 41, 0.25);
}

/* Confirmation message spacing */
.resetpw-page #confirmation {
  margin-top: 0.25rem;
}

/* Reset button (Bootstrap classes) */
.resetpw-page .btn,
.resetpw-page .btn-primary {
  width: 100%;
  background: #2A95D1;
  color: #fff;
  padding: 0.9rem;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.resetpw-page .btn:hover,
.resetpw-page .btn-primary:hover {
  background: #1f7eaf;
}

.resetpw-page .btn:active,
.resetpw-page .btn-primary:active {
  background: #196792;
}

.resetpw-page .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Make the success message area look nice when you swap #ResetBody content */
.resetpw-page #Success a {
  color: #2A95D1;
  text-decoration: none;
  font-weight: 700;
}

.resetpw-page #Success a:hover {
  text-decoration: underline;
}

/* Mobile tweak */
@media (max-width: 480px) {
  .resetpw-page .card,
  .resetpw-page .card-signin {
    padding: 2rem;
  }

  .resetpw-page .card-title {
    font-size: 26px;
  }

  .resetpw-page p.text-center {
    font-size: 16px;
  }
}
