/* Hide register and forgot-password links for staff login only. */
body.mbsj-login-staff .more-links {
  display: none !important;
}

/* ==================================================
   MBSJ REGISTRATION PAGE
   ================================================== */

body.path-mbsj-register {
  margin: 0 !important;
  overflow-x: hidden;
  background: #fff !important;
}

/* Hide the standard Gavias page structure. */
body.path-mbsj-register #header,
body.path-mbsj-register .header,
body.path-mbsj-register .header-main,
body.path-mbsj-register .gva-header,
body.path-mbsj-register .gva-navigation,
body.path-mbsj-register .navigation,
body.path-mbsj-register .main-menu,
body.path-mbsj-register #footer,
body.path-mbsj-register .footer,
body.path-mbsj-register .footer-center,
body.path-mbsj-register .footer-copyright,
body.path-mbsj-register .copyright,
body.path-mbsj-register .gavias_sliderlayer,
body.path-mbsj-register .breadcrumb-content,
body.path-mbsj-register .breadcrumbs,
body.path-mbsj-register .page-title-content,
body.path-mbsj-register .block-page-title-block {
  display: none !important;
}

/* Remove the default Gavias width, margin and padding. */
body.path-mbsj-register .body-page,
body.path-mbsj-register .gva-body-wrapper,
body.path-mbsj-register .main-page,
body.path-mbsj-register .main-content,
body.path-mbsj-register .content-main,
body.path-mbsj-register .container,
body.path-mbsj-register .container-full {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Main registration form wrapper. */
body.path-mbsj-register form.mbsj-register-form {
  width: 100vw !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
}

/* Split screen: form on left and wallpaper on right. */
body.path-mbsj-register .user-form-page {
  display: grid !important;
  grid-template-columns: 50% 50% !important;
  align-items: stretch !important;
  width: 100vw !important;
  min-height: 100vh !important;
  background: #fff !important;
}

/* Match the Gin login form width and horizontal position. */
body.path-mbsj-register .user-form-page__user-form {
  width: 100% !important;
  max-width: 464px !important;
  margin: 0 auto !important;
  padding: 36px 0 48px !important;
  box-sizing: border-box !important;
}

/* Registration logo. */
body.path-mbsj-register .mbsj-register-logo {
  margin: 0 0 32px !important;
}

body.path-mbsj-register .mbsj-register-logo img {
  display: block !important;
  max-width: 90px !important;
  max-height: 90px !important;
  width: auto !important;
  height: auto !important;
}

/* Registration title and subtitle. */
body.path-mbsj-register .user-form-page__page-title {
  margin: 0 0 42px !important;
  color: #111827 !important;
  font-size: 48px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
}

body.path-mbsj-register .mbsj-register-subtitle {
  margin: -20px 0 30px !important;
  color: #344054 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}

/* Form fields. */
body.path-mbsj-register .form-item {
  width: 100% !important;
  margin: 0 0 24px !important;
}

body.path-mbsj-register .form-item label {
  display: block !important;
  margin: 0 0 8px !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

body.path-mbsj-register input[type="text"],
body.path-mbsj-register input[type="email"],
body.path-mbsj-register input[type="password"] {
  display: block !important;
  width: 100% !important;
  height: 58px !important;
  padding: 0 16px !important;
  border: 1px solid #98a2b3 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #101828 !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
}

/* Placeholder styling. */
body.path-mbsj-register input[type="text"]::placeholder,
body.path-mbsj-register input[type="email"]::placeholder,
body.path-mbsj-register input[type="password"]::placeholder {
  color: #8a8f98 !important;
  opacity: 1 !important;
}

body.path-mbsj-register input[type="text"]:focus,
body.path-mbsj-register input[type="email"]:focus,
body.path-mbsj-register input[type="password"]:focus {
  border-color: #0757f9 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(7, 87, 249, 0.12) !important;
}

/* Registration note. */
body.path-mbsj-register .mbsj-register-note {
  width: 100% !important;
  margin: 2px 0 24px !important;
  color: #344054 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}

/* Submit button. */
body.path-mbsj-register .form-actions {
  width: 100% !important;
  margin: 0 !important;
}

body.path-mbsj-register .form-actions input,
body.path-mbsj-register .button--primary {
  display: block !important;
  width: 100% !important;
  height: 60px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #0757f9 !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 60px !important;
  text-align: center !important;
  text-transform: none !important;
  cursor: pointer !important;
  box-shadow: 0 8px 18px rgba(7, 87, 249, 0.22) !important;
}

body.path-mbsj-register .form-actions input:hover,
body.path-mbsj-register .button--primary:hover {
  background: #064dde !important;
}

/* Back-to-login link. */
body.path-mbsj-register .mbsj-back-login {
  margin-top: 18px !important;
  font-size: 15px !important;
}

body.path-mbsj-register .mbsj-back-login a {
  font-weight: 600 !important;
}

/* Full-height wallpaper. */
body.path-mbsj-register .user-form-page__wallpaper {
  position: relative !important;
  align-self: stretch !important;
  display: block !important;
  width: 100% !important;
  min-height: 100vh !important;
  overflow: hidden !important;
  background: #edf1f7 !important;
}

body.path-mbsj-register .user-form-page__wallpaper img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Tablet and mobile layout. */
@media (max-width: 991px) {
  body.path-mbsj-register .user-form-page {
    grid-template-columns: 1fr !important;
  }

  body.path-mbsj-register .user-form-page__wallpaper {
    display: none !important;
  }

  body.path-mbsj-register .user-form-page__user-form {
    width: 100% !important;
    max-width: 464px !important;
    margin: 0 auto !important;
    padding: 36px 0 48px !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
  }

  body.path-mbsj-register .user-form-page__page-title {
    font-size: 40px !important;
  }
}

/* Secondary Login button on Registration page */
body.path-mbsj-register .mbsj-login-button {
    display: block !important;
    width: 100% !important;
    height: 60px !important;
    line-height: 60px !important;
    text-align: center !important;
    margin-top: 18px !important;

    border: 2px solid #0757f9 !important;
    border-radius: 6px !important;

    background: #fff !important;
    color: #0757f9 !important;

    font-size: 16px !important;
    font-weight: 700 !important;
    text-decoration: none !important;

    transition: all .2s ease;
}

body.path-mbsj-register .mbsj-login-button:hover {
    background: #0757f9 !important;
    color: #fff !important;
}

/* =========================================================
   MBSJ USER PROFILE PAGE - SAFE FIX
   ========================================================= */

/* Hide only the large Drupal page title */
body.path-user .block-page-title-block h1 {
    display: none !important;
}

/* Keep breadcrumb section below the fixed header */
body.path-user .breadcrumb-content-inner {
    padding-top: 110px !important;
}

/* Breadcrumb spacing */
body.path-user .breadcrumb {
    margin-bottom: 25px !important;
}

/* Separate Home / Laman Depan and username */
body.path-user .breadcrumb li {
    display: inline-block !important;
}

body.path-user .breadcrumb li + li {
    margin-left: 12px !important;
}

body.path-user .breadcrumb li + li::before {
    content: "/" !important;
    margin-right: 12px !important;
    color: #999 !important;
}


/* MBSJ - Fix Revolution Slider background video visibility on mobile */
@media (max-width: 991px) {
  .rs-background-video-layer video,
  .html5vid video,
  video.resizelistener {
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* =========================================================
   MBSJ - Mobile Homepage Video Fix
   ========================================================= */

@media (max-width: 991px) {

  /* Revolution Slider video must remain visible on mobile */
  .rs-background-video-layer video,
  .html5vid video,
  video.resizelistener {
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Reduce homepage Revolution Slider height on mobile */
  .rev_slider_wrapper,
  .rev_slider {
    height: 450px !important;
  }
}
