/* ==========================================================================
   RESET PASSWORD MODAL STYLES (GENZYNC GLASSMORPHISM)
   ========================================================================== */

.reset-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(12, 39, 48, 0.65), rgba(23, 122, 135, 0.6));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10002;
}

.reset-modal-card {
  position: relative;
  width: min(440px, 94vw);
  border-radius: 24px;
  padding: 34px 28px 28px;
  background: linear-gradient(180deg, rgba(17, 111, 121, 0.98), rgba(13, 89, 98, 0.98));
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  animation: springPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.reset-card-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Close Button */
.reset-modal-card .modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease, transform 0.15s ease;
  z-index: 10;
}

.reset-modal-card .modal-close-btn:hover {
  color: #ffffff;
  transform: scale(1.1);
}

/* Icon Wrap */
.reset-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(114, 242, 235, 0.12);
  border: 1.5px solid rgba(114, 242, 235, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 0 20px rgba(114, 242, 235, 0.2);
}

.reset-key-svg {
  width: 26px;
  height: 26px;
  stroke: #72f2eb;
}

.reset-title {
  color: #ffffff;
  font-size: 23px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.reset-subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 18px;
}

/* Messages */
.reset-card-inner .msg-error {
  margin: 0 0 14px 0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: #ff9d9d;
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid rgba(255, 107, 107, 0.3);
  width: 100%;
  box-sizing: border-box;
}

/* Form Fields */
.reset-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.reset-form .field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  position: relative;
}

.reset-form label {
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Password Input Wrapper */
.reset-form .password-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.reset-form input[type="password"],
.reset-form input[type="text"] {
  width: 100% !important;
  height: 40px !important;
  background: #ffffff !important;
  border: 1.5px solid transparent !important;
  border-radius: 12px !important;
  font-size: 13.5px !important;
  color: #115760 !important;
  padding: 0 54px 0 14px !important;
  box-sizing: border-box !important;
  outline: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.reset-form input:focus {
  border-color: #72f2eb !important;
  box-shadow: 0 0 0 3px rgba(114, 242, 235, 0.35) !important;
}

.reset-form input.input-error {
  border-color: #ff6b6b !important;
  background: #fff5f5 !important;
}

/* Toggle Password Visibility Eye Button */
.reset-form .toggle-password-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent !important;
  border: none !important;
  color: #0d5962 !important;
  padding: 4px !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0.65;
  transition: opacity 0.15s ease, color 0.15s ease;
  z-index: 2;
}

.reset-form .toggle-password-btn:hover {
  opacity: 1;
}

.reset-form .toggle-password-btn.active {
  color: #1799a2 !important;
  opacity: 1;
}

/* Field Check Icon (Inline ✓) */
.reset-form .field-check-icon {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  color: #1799a2;
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.reset-form .field-check-icon.visible {
  opacity: 1;
}

/* Password Strength Meter (Clean & subtle) */
.reset-form .password-strength-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  margin-top: 2px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.reset-form .password-strength-bar.has-value {
  opacity: 1;
}

.reset-form .strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.3s ease, background 0.3s ease;
}

.reset-form .strength-fill.weak   { width: 33%; background: #ff6b6b; }
.reset-form .strength-fill.fair   { width: 66%; background: #f0a500; }
.reset-form .strength-fill.strong { width: 100%; background: #72f2eb; }

.reset-form .strength-label {
  font-size: 10px;
  font-weight: 700;
  margin-top: 1px;
  display: none;
  letter-spacing: 0.2px;
}

.reset-form .strength-label.visible {
  display: block;
}

.reset-form .strength-label.weak   { color: #ff9d9d; }
.reset-form .strength-label.fair   { color: #f0c050; }
.reset-form .strength-label.strong { color: #72f2eb; }

.reset-form .field-error {
  color: #ff9d9d;
  font-size: 10.5px;
  font-weight: 600;
  margin-top: 2px;
}

/* Actions (50/50 Equal Buttons) */
.reset-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-top: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.reset-actions .submit-btn,
.reset-actions .cancel-btn {
  flex: 1 1 0 !important;
  width: 50% !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  transition: transform 0.2s ease, background 0.2s ease, filter 0.2s ease, border-color 0.2s ease !important;
}

.reset-actions .submit-btn {
  border: 1.5px solid transparent !important;
  color: #ffffff !important;
  background: linear-gradient(90deg, #2498ac 0%, #1799a2 100%) !important;
  box-shadow: 0 4px 12px rgba(23, 153, 162, 0.3) !important;
}

.reset-actions .submit-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.reset-actions .cancel-btn {
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.reset-actions .cancel-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
}

/* Responsive (Bottom Sheet Drawer) */
@media (max-width: 768px) {
  .reset-modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
    justify-content: center !important;
  }

  .reset-modal-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 26px 26px 0 0 !important;
    border: none !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.85) !important;
    padding: 16px 20px max(28px, calc(16px + env(safe-area-inset-bottom, 16px))) 20px !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35) !important;
    max-height: 90dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    animation: springSheetUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  .reset-modal-card::before {
    content: '';
    display: block;
    width: 38px;
    height: 4.5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    margin: 0 auto 12px;
    flex-shrink: 0;
  }

  .reset-title {
    font-size: 21px;
  }

  .reset-subtitle {
    font-size: 12px;
  }
}
