/**
 * Forgot password glass modal (login page)
 */
.btn-forgot-password {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.btn-forgot-password:hover,
.btn-forgot-password:focus {
  text-decoration: underline;
}

.bm-forgot-overlay {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(9, 36, 37, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.bm-forgot-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bm-forgot-overlay:not(.is-visible) {
  pointer-events: none;
}

.bm-forgot-modal {
  position: relative;
  width: min(440px, 100%);
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 20px 56px rgba(25, 97, 100, 0.22),
    0 6px 16px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  transform: scale(0.94) translateY(12px);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.28s ease;
}

.bm-forgot-overlay.is-visible .bm-forgot-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.bm-forgot-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(25, 97, 100, 0.08);
  color: #475569;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.bm-forgot-close:hover {
  background: rgba(25, 97, 100, 0.14);
  color: var(--primary, #196164);
}

.bm-forgot-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--secondary, #f8b102);
  background: linear-gradient(135deg, rgba(25, 97, 100, 0.12) 0%, rgba(248, 177, 2, 0.15) 100%);
  border: 1px solid rgba(25, 97, 100, 0.12);
}

.bm-forgot-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary, #196164);
  text-align: center;
  margin: 0 0 0.5rem;
}

.bm-forgot-text {
  font-size: 0.9rem;
  color: #64748b;
  text-align: center;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.bm-forgot-modal .form-label {
  font-weight: 600;
  color: #334155;
}

.bm-forgot-modal .form-control {
  border-radius: 10px;
  border-color: #e2e8f0;
  padding: 0.65rem 0.85rem;
}

.bm-forgot-modal .form-control:focus {
  border-color: var(--primary, #196164);
  box-shadow: 0 0 0 0.2rem rgba(25, 97, 100, 0.15);
}

.bm-forgot-feedback {
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.45;
}

.bm-forgot-feedback.is-success {
  background: rgba(25, 97, 100, 0.1);
  color: var(--primary, #196164);
  border: 1px solid rgba(25, 97, 100, 0.2);
}

.bm-forgot-feedback.is-error {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.bm-forgot-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.bm-forgot-actions .btn {
  flex: 1;
  font-weight: 600;
  border-radius: 10px !important;
  padding: 0.6rem 1rem !important;
}

.bm-forgot-actions .btn-cancel {
  background: rgba(15, 23, 42, 0.06) !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #475569 !important;
}

.bm-forgot-actions .btn-cancel:hover {
  background: rgba(15, 23, 42, 0.1) !important;
  color: #1e293b !important;
}

body.bm-forgot-open {
  overflow: hidden;
}
