/* Scoped copy of the main site's #header/.navmenu styles (assets/css/main.css),
   for use on login-form pages. Deliberately NOT the full main.css: that file
   sets global `body`/`a` rules that would clash with this page's own dark,
   full-bleed background-image layout. Only the header-specific selectors are
   reproduced here, and the mobile-nav-toggle icon uses the Font Awesome
   classes these pages already load (fa-bars/fa-times) instead of Bootstrap
   Icons, so no new icon font dependency is needed. */

:root {
  --site-header-nav-font: "Ubuntu", sans-serif;
  --site-header-bg: #ffffff;
  --site-header-heading-color: #5f687b;
  --site-header-accent-color: #8B4513;
  --site-header-nav-color: #5f687b;
  --site-header-nav-hover-color: #8B4513;
  --site-header-nav-mobile-bg: #ffffff;
}

#header {
  color: var(--site-header-heading-color);
  background-color: var(--site-header-bg);
  padding: 15px 0;
  transition: all 0.5s;
  z-index: 997;
}

#header .logo {
  line-height: 1;
}

#header .logo h1 {
  font-size: 26px;
  margin: 0;
  font-weight: 700;
  color: var(--site-header-heading-color);
}

@media (max-width: 1200px) {
  #header .logo {
    order: 1;
  }

  #header .navmenu {
    order: 2;
  }
}

body.scrolled #header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--site-header-nav-color);
    padding: 18px 15px;
    font-size: 16px;
    font-family: var(--site-header-nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover > a {
    color: var(--site-header-nav-hover-color);
  }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--site-header-nav-color);
    font-size: 26px;
    line-height: 1;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--site-header-nav-mobile-bg);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--site-header-nav-color);
    padding: 10px 20px;
    font-family: var(--site-header-nav-font);
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a:hover {
    color: var(--site-header-nav-hover-color);
  }

  body.mobile-nav-active {
    overflow: hidden;
  }

  body.mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: fixed;
    font-size: 28px;
    top: 15px;
    right: 15px;
    z-index: 9999;
  }

  body.mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  body.mobile-nav-active .navmenu > ul {
    display: block;
  }
}
