/* ==============================
   AUTH PAGES (LOGIN / PASSWORD)
   ============================== */

/* Full page layout */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 28px;
}

.auth-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.auth-top {
  margin-bottom: 20px;
}

/* Card like D7 */
.auth-card {
  width: 640px;
  max-width: 100%;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid #e5e5e5;
  background: #fff;
}

/* Titles */
.auth-title {
  margin: 0 0 8px 0;
  font-weight: 600;
  font-size: 30px;
  color: #5787ac;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.auth-subtitle {
  margin: 0 0 18px 0;
  color: #666;
  font-size: 14px;
}

.login-title,
.login-subtitle {
  margin-bottom: 4px;
  color: #5787ac;
}

.auth-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

/* Inputs */
.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"] {
  width: 100%;
  max-width: 420px;
  height: 34px;
  padding: 6px 10px;
  border: 1px solid #dcdcdc;
  border-radius: 2px;
}

/* Button */
.auth-form input[type="submit"],
.auth-form button {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #cfcfcf;
  border-radius: 2px;
  /* background: #f3f3f3; */
  cursor: pointer;
}

label.form-required::after {
  content: " *";
  color: #f00;
  font-weight: 700;
}

/* MENU BLOCK AS TABS */
.auth-tabs h2 {
  display: none;
}

.auth-tabs {
  margin-top: 10px;
  border-bottom: 1px solid #d6d6d6;
}

.auth-tabs ul,
.auth-tabs ul.menu {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.auth-tabs li a {
  display: inline-block;
  padding: 8px 14px;
  text-decoration: none;
  color: #6b1f6b;
  border: 1px solid #cfcfcf;
  border-bottom: 0;
  background: #f3f3f3;
  border-radius: 2px 2px 0 0;
}

.auth-tabs li.menu-item--active-trail > a,
.auth-tabs li.is-active > a {
  background: #4a4a4a;
  color: #fff;
  border-color: #4a4a4a;
}


/* ==============================
   CONTACT PAGE
   ============================== */

.contact-page {
  padding: 40px 20px;
}

.contact-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

/* Contact form card */
.contact-card {
  border: 1px solid #e5e5e5;
  background: #fff;
  padding: 32px;
}

.contact-card .form-item {
  margin-bottom: 18px;
}

.contact-card label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  padding: 6px;
  color: #333;
}

.contact-card label.form-required::after {
  content: " *";
  color: #c40000;
}

.contact-card input[type="text"],
.contact-card input[type="email"],
.contact-card textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #cfcfcf;
  border-radius: 2px;
  box-sizing: border-box;
}

.contact-card textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-card input:focus,
.contact-card textarea:focus {
  outline: none;
  border-color: #6b1f6b;
  box-shadow: 0 0 0 1px rgba(107, 31, 107, 0.15);
}

.contact-card .form-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.contact-card .form-actions input,
.contact-card .form-actions button {
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 2px;
  cursor: pointer;
}

.contact-card .form-actions input[type="submit"] {
  background: #6b1f6b;
  border: 1px solid #6b1f6b;
  color: #fff;
}

.contact-card .form-actions input[type="submit"]:hover {
  background: #5a185a;
}

.contact-card .form-actions input[type="submit"]:focus {
  outline: none;
}

/* Sidebar */
.contact-sidebar {
  font-size: 14px;
  color: #333;
  border-left: 1px solid #eee;
  padding-left: 24px;
}

.contact-sidebar p {
  margin: 0 0 8px;
}

.contact-sidebar strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-sidebar a {
  color: #6b1f6b;
  text-decoration: none;
}

.contact-sidebar a:hover {
  text-decoration: underline;
}


/* ==============================
   HEADER (LOGO LEFT, HAMBURGER RIGHT)
   Applies to all widths < 1024px
   ============================== */

@media (max-width: 1024px) {
  .site-header__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between; /* left branding, right hamburger */
  }

  .site-header__branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: auto;   /* do NOT stretch */
    margin: 0;     /* remove auto-centering */
    flex: 0 1 auto;
    text-align: left;
    min-width: 0;
  }

  /* Ensure logo/link aren't auto-centered by other CSS */
  #logo,
  #logo a,
  .site-header__branding a,
  .site-header__branding img {
    margin: 0 !important;
  }
}


/* ==============================
   RESPONSIVE - TABLET & BELOW
   ============================== */

@media (max-width: 1024px) {
  /* Auth pages */
  .auth-page {
    padding: 20px;
  }

  .auth-inner {
    max-width: 100%;
  }

  .auth-card {
    width: 100%;
    padding: 24px;
  }

  .auth-title {
    font-size: 26px;
  }

  .auth-form input[type="text"],
  .auth-form input[type="password"],
  .auth-form input[type="email"] {
    max-width: 100%;
  }

  .auth-tabs ul,
  .auth-tabs ul.menu {
    gap: 8px;
    flex-wrap: wrap;
  }

  .auth-tabs li a {
    padding: 8px 12px;
  }

  /* Contact page */
  .contact-page {
    padding: 32px 16px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-card {
    padding: 24px;
  }

  .contact-sidebar {
    border-left: 0;
    padding-left: 0;
    margin-top: 0;
  }
}


/* ==============================
   RESPONSIVE - MOBILE
   ============================== */

@media (max-width: 640px) {
  /* Auth pages */
  .auth-page {
    padding: 14px;
  }

  .auth-top {
    margin-bottom: 14px;
  }

  .auth-card {
    padding: 18px;
  }

  .auth-title {
    font-size: 22px;
    padding-bottom: 8px;
  }

  .auth-subtitle {
    font-size: 13px;
  }

  .auth-form input[type="submit"],
  .auth-form button {
    height: auto;
    padding: 10px 14px;
    width: 100%;
  }

  .auth-tabs ul,
  .auth-tabs ul.menu {
    flex-direction: column;
    gap: 10px;
  }

  .auth-tabs li a {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #cfcfcf;
    border-radius: 2px;
  }

  /* Contact page */
  .contact-page {
    padding: 24px 14px;
  }

  .contact-card {
    padding: 18px;
  }

  .contact-card .form-actions {
    flex-direction: column;
  }

  .contact-card .form-actions input,
  .contact-card .form-actions button {
    width: 100%;
  }

  .contact-sidebar {
    font-size: 13px;
  }

  /* Keep hamburger stable (optional, if it drops) */
  .site-header__inner {
    position: relative;
    padding-right: 64px; /* space for hamburger */
  }

  .menu-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0;
  }
}


/* ==============================
   RESPONSIVE - VERY SMALL PHONES
   ============================== */

@media (max-width: 400px) {
  .auth-title {
    font-size: 20px;
  }

  .contact-card textarea {
    min-height: 120px;
  }

  .slogan {
    display: block;
    max-width: 250px;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.2;
  }
}

.js-form-item.form-item.form-type-checkbox.js-form-type-checkbox.form-item-copy.js-form-item-copy {
    display: inline-flex;
    flex-flow: row wrap;
}