/* ========================
   SCROLLING FIXES
   ======================== */

/* Ensure proper scrolling after modal interactions */
body:not(.modal-open) {
  overflow: auto !important;
  position: static !important;
  top: auto !important;
  width: auto !important;
  padding-right: 0 !important;
}

/* Fix modal scrolling issues */
.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Ensure page content is scrollable */
.page-wraper {
  overflow-x: hidden;
  min-height: 100vh;
}

.page-content {
  overflow-x: hidden;
  overflow-y: visible;
}

/* Mobile responsive fixes for password fields */
@media (max-width: 768px) {
  .form-group.position-relative {
    position: relative;
  }
  
  .form-group.position-relative input[type="password"],
  .form-group.position-relative input[type="text"] {
    padding-right: 50px !important;
  }
  
  .form-group.position-relative button {
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10;
    min-width: 30px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Ensure touch scrolling works on mobile */
@media (max-width: 768px) {
  body {
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
  }
}

/* Fix for modal backdrop issues */
.modal-backdrop {
  z-index: 1040;
}

.modal {
  z-index: 1050;
}

/* Ensure proper cleanup after modal close */
.modal.fade.show {
  display: block;
}

.modal.fade:not(.show) {
  display: none;
}

/* ========================
   BUTTON CONSISTENCY FIXES
   ======================== */

/* Ensure consistent button styling across signin and signup */
.modal button[type="submit"] {
  width: 100% !important;
  min-height: 56px !important;
  padding: 16px !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(99, 194, 159, 0.4) !important;
}

/* Mobile specific button adjustments */
@media (max-width: 768px) {
  .modal button[type="submit"] {
    min-height: 52px !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
  }
  
  /* Ensure buttons have consistent width on mobile */
  .modal .col-md-12 button[type="submit"],
  .modal .col-lg-12 button[type="submit"] {
    width: 100% !important;
    margin: 0 !important;
  }
}

/* Ensure consistent button container spacing */
.modal .col-md-12,
.modal .col-lg-12 {
  padding: 0 !important;
  margin: 0 !important;
}

/* Fix for any existing site-button class conflicts */
.modal .site-button {
  width: 100% !important;
  min-height: 56px !important;
  padding: 16px !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(99, 194, 159, 0.4) !important;
  background: linear-gradient(135deg, #63c29f 0%, #4daa8c 100%) !important;
  color: white !important;
  border: none !important;
}

@media (max-width: 768px) {
  .modal .site-button {
    min-height: 52px !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
  }
} 

@media (max-width: 600px) {
  /* .auth-btn-header styles removed */
} 