/* TB Mega Menu: allow deeper dropdowns to open on mobile */
@media (max-width: 991px) {

  /* Show the submenu (it is rendered as .dropdown-menu) when the TBM item is open */
  .c-layout-header .c-navbar .c-mega-menu .tbm-item.c-open > .dropdown-menu,
  .c-layout-header .c-navbar .c-mega-menu .tbm-item.tbm-open > .dropdown-menu {
    display: block !important;
  }

  /* Also cover TBM submenu class */
  .c-layout-header .c-navbar .c-mega-menu .tbm-item.c-open > .tbm-submenu,
  .c-layout-header .c-navbar .c-mega-menu .tbm-item.tbm-open > .tbm-submenu {
    display: block !important;
  }

  /* Ensure stacked (not flyout) behavior on mobile */
  .c-layout-header .c-navbar .c-mega-menu .dropdown-menu,
  .c-layout-header .c-navbar .c-mega-menu .tbm-submenu {
    position: static !important;
    float: none !important;
    width: 100% !important;
  }
  
  .tbm-subnav li ul li {
	  padding: 5px 10px!important;
  }
}

.sk-cube-grid .sk-cube {
    background-color: #000000!important;
 }
 
 /* =========================================================
   MOERA AUTH
   ========================================================= */

.moera-auth {
  display: flex;
  justify-content: center;
  padding: 70px 24px 90px;
}

.moera-auth__card {
  width: 100%;
  max-width: 520px;
  padding: 42px 44px;
  background: #fff;
  border: 1px solid #e2e6eb;
  border-radius: 12px;
}

.moera-auth__header {
  margin-bottom: 32px;
  text-align: center;
}

.moera-auth__header h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  color: #263444;
}

.moera-auth__header p {
  margin: 0;
  font-size: 16px;
  color: #7a8797;
}


/* Form */

.moera-auth .form-item {
  margin-bottom: 20px;
}

.moera-auth label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #263444;
}

.moera-auth input[type="text"],
.moera-auth input[type="email"],
.moera-auth input[type="password"] {
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  padding: 0 15px;
  background: #fff;
  border: 1px solid #d8dee6;
  border-radius: 7px;
  box-shadow: none;
  font-size: 16px;
  color: #263444;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.moera-auth input[type="text"]:focus,
.moera-auth input[type="email"]:focus,
.moera-auth input[type="password"]:focus {
  outline: none;
  background: #fff;
  border-color: #ef252b;
  box-shadow: 0 0 0 3px rgba(239, 37, 43, .08);
}


/* Login button */

.moera-auth input[type="submit"],
.moera-auth button[type="submit"] {
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: 7px;
  background: #ef252b;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .15s ease;
}

.moera-auth input[type="submit"]:hover,
.moera-auth button[type="submit"]:hover {
  opacity: .9;
}


/* Registration */

.moera-auth__register {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #e7eaee;
  font-size: 15px;
  color: #697586;
}

.moera-auth__register a {
  color: #ef252b;
  font-weight: 600;
  text-decoration: none;
}

.moera-auth__register a:hover {
  text-decoration: underline;
}


/* Remove legacy theme styling inside login */

.moera-auth .form-control {
  background-color: #fff;
}

.moera-auth .input-group-addon {
  display: none;
}


/* Mobile */

@media (max-width: 600px) {

  .moera-auth {
    padding: 35px 16px 60px;
  }

  .moera-auth__card {
    padding: 30px 24px;
  }

  .moera-auth__header h1 {
    font-size: 28px;
  }

  .moera-auth__register {
    flex-wrap: wrap;
  }
}
 
 
.moera-auth__forgot {
  margin-top: 18px;
  text-align: center;
}

.moera-auth__forgot a {
  color: #7b8798;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
}

.moera-auth__forgot a strong {
  margin-left: 4px;
  color: #ef2529;
  font-weight: 700;
}

.moera-auth__forgot a:hover strong,
.moera-auth__forgot a:focus strong {
  text-decoration: underline;
}
/* =========================================================
   MOERA PASSWORD RESET
   ========================================================= */

/*
 * The password reset page uses the shared .moera-auth
 * component, so it inherits the same card, typography,
 * fields, button and responsive behaviour as Login.
 */


/* Reset-specific header text
--------------------------------------------------------- */

.moera-auth--password .moera-auth__header p {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}


/* Hide Drupal's duplicate reset instructions
--------------------------------------------------------- */

.moera-auth--password .description {
  display: none;
}


/* Back to login
--------------------------------------------------------- */

.moera-auth--password .moera-auth__register {
  text-align: center;
}

.moera-auth--password .moera-auth__register span,
.moera-auth--password .moera-auth__register a {
  display: inline;
}


/* Mobile
--------------------------------------------------------- */

@media (max-width: 600px) {

  .moera-auth--password .moera-auth__header p {
    max-width: 100%;
  }

}

#user-login-form {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* =========================================================
   MOERA REGISTER
   ========================================================= */

/* Slightly wider card than Login / Reset */
.moera-auth--register .moera-auth__card {
  max-width: 620px;
}


/* Header */
.moera-auth--register .moera-auth__header {
  margin-bottom: 34px;
}


/* Fields */
.moera-auth--register .form-item {
  margin-bottom: 24px;
}


/* Drupal descriptions */
.moera-auth--register .description {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.45;
  color: #7a8797;
}


/* Password strength */
.moera-auth--register .password-strength {
  margin-top: 8px;
  font-size: 14px;
  color: #7a8797;
}

.moera-auth--register .password-strength__meter {
  height: 7px;
  margin-bottom: 6px;
  background: #e2e6eb;
  border-radius: 4px;
  overflow: hidden;
}

.moera-auth--register .password-strength__indicator {
  height: 100%;
  border-radius: 4px;
}


/* Password confirmation / match message */
.moera-auth--register .password-confirm {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.45;
  color: #7a8797;
}


/* Submit */
.moera-auth--register .form-actions {
  margin-top: 28px;
}

.moera-auth--register .form-actions .form-submit {
  width: 100%;
}


/* Login footer */
.moera-auth--register .moera-auth__register {
  margin-top: 30px;
  padding-top: 24px;
}


/* Mobile */
@media (max-width: 600px) {

  .moera-auth--register .moera-auth__card {
    max-width: 100%;
  }

  .moera-auth--register .form-item {
    margin-bottom: 20px;
  }

}

.moera-auth--register .form-item-moera-terms {
  margin: 24px 0;
}

.moera-auth--register .form-item-moera-terms input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0 10px 0 0;
  vertical-align: middle;
}

.moera-auth--register .form-item-moera-terms label {
  display: inline;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  vertical-align: middle;
}

.moera-auth--register .form-item-moera-terms label a {
  color: #ef252b;
  text-decoration: underline;
}

.moera-auth--register .c-checkbox:has(.moera-terms-checkbox) + label.option {
  display: none;
}

/* =========================================================
   MOERA SYSTEM MESSAGES
   ========================================================= */

.moera-message {
  display: flex;
  align-items: flex-start;
  gap: 14px;

  width: 100%;

  margin: 24px auto;
  padding: 16px 18px;

  background: #ffffff;
  border: 1px solid #dfe3e8;
  border-radius: 10px;

  box-shadow: 0 4px 16px rgba(23, 36, 55, 0.06);

  color: #25364d;
}


/* Icon
--------------------------------------------------------- */

.moera-message__icon {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 28px;

  width: 28px;
  height: 28px;

  border-radius: 50%;

  font-size: 13px;
}


/* Content
--------------------------------------------------------- */

.moera-message__content {
  flex: 1;
  min-width: 0;
}

.moera-message__title {
  margin: 1px 0 3px;

  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;

  color: #25364d;
}

.moera-message__text {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;

  color: #6f7d8f;
}


/* Success
--------------------------------------------------------- */

.moera-message--success {
  border-left: 3px solid #2e9d67;
}

.moera-message--success .moera-message__icon {
  background: #edf8f2;
  color: #2e9d67;
}


/* Warning
--------------------------------------------------------- */

.moera-message--warning {
  border-left: 3px solid #d99a2b;
}

.moera-message--warning .moera-message__icon {
  background: #fff8e8;
  color: #b77b16;
}


/* Error
--------------------------------------------------------- */

.moera-message--error {
  border-left: 3px solid #ef2529;
}

.moera-message--error .moera-message__icon {
  background: #fff0f0;
  color: #ef2529;
}


/* Multiple messages
--------------------------------------------------------- */

.moera-message__text + .moera-message__text {
  margin-top: 4px;
}


/* Mobile
--------------------------------------------------------- */

@media (max-width: 767px) {

  .moera-message {
    max-width: none;
    margin: 16px 0;
    padding: 14px 16px;
  }

}