/* Base CTA Styling */
.btn-login-cta {
  background-color: #D4AF37;
  color: #080808;
  border: none;
  font-weight: 700;
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
}

.btn-signup-cta {
  background-color: transparent;
  color: #080808;
  border: 2px solid #080808;
  font-weight: 700;
  border-radius: 50px;
  padding: 0.5rem 1.4rem;
  text-decoration: none;
}

/* Custom Slide Mechanism */
.rbk-login-slide {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  top: 100%; 
  right: 0;
  transition: all 0.3s ease-in-out;
  z-index: 1000;
  min-width: 300px;
}

/* The class toggled by JS */
.rbk-login-slide.is-open {
  max-height: 500px; 
  opacity: 1;
  margin-top: 15px; 
}

.rbk-login-card {
  background-color: #ffffff;
  border-top: 3px solid #D4AF37;
  border-radius: 0 0 12px 12px;
  padding: 1.5rem;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 991px) {

  .path-user main.container {
    display: block;

    background: #ffffff;
  }


  .path-user .region-content {
    width: 100%;
    min-height: 100vh;

    padding:
      6rem
      clamp(1.25rem, 6vw, 3rem)
      3rem;
  }


  .rbk-auth-brand {
    display: none;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 575px) {

  .rbk-auth-actions {
    gap: 0.5rem;
  }


  .btn-login-cta,
  .btn-signup-cta {
    min-height: 40px;

    padding: 0.5rem 0.85rem;

    font-size: 0.78rem;
  }


  .rbk-auth-heading {
    margin-bottom: 1.75rem;
  }


  .path-user .region-content {
    padding-top: 5.5rem;
  }


  .rbk-auth-close {
    top: 1rem;
    right: 1rem;

    width: 42px;
    height: 42px;
  }

}
/* =========================================================
   1. LAYOUT FIX: ALIGN BUTTON TO THE RIGHT
   ========================================================= */
@media (min-width: 992px) {
  /* Force the navbar container to keep items on the same row */
  .navbar-collapse {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  
  /* Reset the margin on the black pill so it plays nice with flexbox */
  ul.rbk-main-nav {
    margin: 0 auto !important; 
  }
}

/* =========================================================
   2. "USERS" BUTTON STYLING
   ========================================================= */
.btn-users-toggle {
  background-color: #D4AF37 !important;
  color: #080808 !important;
  border: none !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  padding: 0.6rem 1.5rem !important;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}

.btn-users-toggle:hover {
  opacity: 0.9 !important;
}

/* =========================================================
   3. DROPDOWN MENU STYLING
   ========================================================= */
.rbk-users-menu .dropdown-menu {
  background-color: #ffffff !important;
  border: none !important;
  border-top: 3px solid #D4AF37 !important;
  border-radius: 0 0 12px 12px !important;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
  margin-top: 15px !important; 
  min-width: 160px;
}

.rbk-users-menu .dropdown-item {
  color: #080808 !important;
  font-weight: 600 !important;
  padding: 0.7rem 1.5rem !important;
  transition: all 0.2s ease;
}

/* Slide-right hover effect matching your main nav */
.rbk-users-menu .dropdown-item:hover {
  background-color: #f8f9fa !important;
  color: #D4AF37 !important;
  padding-left: 2rem !important;
}
/* 1. Constrain the entire region into a card ONLY on user auth pages */
.region-content:has(#user-register-form, #user-login-form, #user-pass) {
  max-width: 550px !important;
  margin: 4rem auto !important;
  background: #ffffff !important;
  padding: 3rem !important;
  border-radius: 12px !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
  border-top: 4px solid #D4AF37 !important;
}

/* 2. Convert default Drupal tabs into modern pills */
.region-content:has(#user-register-form, #user-login-form, #user-pass) ul.tabs {
  display: flex !important;
  justify-content: center !important;
  margin-bottom: 2rem !important;
  padding: 0 !important;
  border-bottom: none !important;
  gap: 10px !important;
}

.region-content:has(#user-register-form, #user-login-form, #user-pass) ul.tabs a {
  color: #666666 !important;
  background: #f8f9fa !important;
  border: none !important;
  font-weight: 600 !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.region-content:has(#user-register-form, #user-login-form, #user-pass) ul.tabs a.is-active,
.region-content:has(#user-register-form, #user-login-form, #user-pass) ul.tabs a.active,
.region-content:has(#user-register-form, #user-login-form, #user-pass) ul.tabs a:hover {
  background-color: #080808 !important;
  color: #D4AF37 !important;
}

/* 3. Clean up the form fields and labels */
#user-register-form label,
#user-login-form label,
#user-pass label {
  font-weight: 600 !important;
  color: #080808 !important;
  margin-top: 1rem !important;
  margin-bottom: 0.5rem !important;
}

/* 4. Completely hide the verbose Drupal description text */
#user-register-form .description,
#user-login-form .description,
#user-pass .description,
#user-register-form .text-muted {
  display: none !important;
}

/* 5. Force the submit button to match your brand */
#user-register-form input[type="submit"],
#user-login-form input[type="submit"],
#user-pass input[type="submit"],
#user-register-form .btn-primary,
#user-login-form .btn-primary,
#user-pass .btn-primary {
  background-color: #D4AF37 !important;
  color: #080808 !important;
  border: none !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  padding: 0.8rem 2rem !important;
  width: 100% !important;
  margin-top: 1.5rem !important;
  transition: opacity 0.2s ease;
}

#user-register-form input[type="submit"]:hover,
#user-login-form input[type="submit"]:hover,
#user-pass input[type="submit"]:hover {
  opacity: 0.9 !important;
}
/* Strip default Bootstrap tab borders and center the list */
.block-local-tasks-block ul.nav-tabs {
  border-bottom: none !important;
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-bottom: 2rem !important;
}

/* Base Pill Styling */
.block-local-tasks-block ul.nav-tabs .nav-link {
  border: none !important;
  background-color: #f8f9fa !important;
  color: #666666 !important;
  border-radius: 50px !important;
  padding: 0.6rem 1.5rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

/* Active and Hover States (Gold on Black) */
.block-local-tasks-block ul.nav-tabs .nav-link:hover,
.block-local-tasks-block ul.nav-tabs .nav-link.active,
.block-local-tasks-block ul.nav-tabs .nav-link.is-active {
  background-color: #080808 !important;
  color: #D4AF37 !important;
}
@media (min-width: 992px) {
  /* Ensure the parent container is relative so we can absolute position inside it */
  .navbar-collapse {
    position: relative !important;
    display: flex !important;
    justify-content: center !important; 
  }
  
  /* Break the button out of the normal flex flow and snap it right */
  .rbk-users-menu,
  .block-user-login-block {
    position: absolute !important;
    right: 0 !important; 
    top: 100% !important; /* Pushes it directly underneath the main nav */
    margin-top: 10px !important;
    z-index: 1050;
  }
}