/* ==========================================================================
   Wholesale Fishing Flies Kenya — premium authentication (login / register)
   Scoped to body.authentication so other pages are untouched.
   ========================================================================== */

body.authentication {
  background: #f3eee2 !important;
}

body.authentication #center_column .rte,
body.authentication #center_column {
  background: transparent;
}

/* ---- page heading ---- */
body.authentication .page-heading,
body.authentication h1.page-heading,
body.authentication .auth-heading {
  margin: 0 0 28px !important;
  padding: 0 0 18px !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #1b352d !important;
  text-align: center;
  font-family: "Brawler", Georgia, "Times New Roman", serif !important;
  font-size: 34px !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
  letter-spacing: .01em;
  position: relative;
}
body.authentication .page-heading::after,
body.authentication .auth-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 54px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #b8542c, #d9805a);
  transform: translateX(-50%);
}

/* ---- cards ---- */
body.authentication .box {
  background: linear-gradient(180deg, #ffffff, #faf7ef) !important;
  border: 1.5px solid #e4dccb !important;
  border-radius: 20px !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 30px 64px -36px rgba(15, 23, 42, .32) !important;
  padding: 34px 30px 28px !important;
  position: relative;
  overflow: hidden;
  animation: nlx-rise .55s cubic-bezier(.22, 1, .36, 1) both;
}
body.authentication .box::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, #1b352d, #2c5a4b 55%, #b8542c);
  opacity: .95;
}
@keyframes nlx-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ---- sub-headings ---- */
body.authentication .page-subheading {
  font-family: "Brawler", Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  color: #1b352d !important;
  margin: 0 0 20px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid #e4dccb !important;
  letter-spacing: .01em;
}

/* ---- labels & fields ---- */
body.authentication .box label {
  display: block !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .09em !important;
  text-transform: uppercase !important;
  color: #45524b !important;
  margin: 0 0 8px !important;
}
body.authentication .box .form-control,
body.authentication .box input.form-control,
body.authentication .box select.form-control,
body.authentication .box textarea.form-control {
  height: 50px !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #16211c !important;
  background: #fff !important;
  border: 2px solid #d9d2c2 !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, .05) !important;
  transition: border-color .2s ease, box-shadow .2s ease !important;
}
body.authentication .box .form-control:hover {
  border-color: #b9b5a6 !important;
}
body.authentication .box .form-control:focus {
  border-color: #1b352d !important;
  outline: 0 !important;
  box-shadow: 0 0 0 4px rgba(27, 53, 45, .12), inset 0 1px 2px rgba(16, 24, 40, .05) !important;
}
body.authentication .box .form-group {
  margin-bottom: 18px !important;
}

/* ---- buttons ---- */
body.authentication .box .submit,
body.authentication .box .submit p {
  margin: 14px 0 0 !important;
  padding: 0 !important;
}
body.authentication .box .button,
body.authentication .box button[type="submit"],
body.authentication .box input[type="submit"] {
  height: 52px !important;
  padding: 0 28px !important;
  border-radius: 13px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  border: 0 !important;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .24s ease, filter .2s ease !important;
}
body.authentication #SubmitLogin {
  background: linear-gradient(135deg, #1b352d, #2c5a4b) !important;
  color: #fff !important;
  box-shadow: 0 14px 28px -16px rgba(15, 23, 42, .55) !important;
}
body.authentication #SubmitLogin:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 20px 36px -18px rgba(15, 23, 42, .6) !important;
}
body.authentication #SubmitCreate {
  background: #fff !important;
  color: #1b352d !important;
  border: 2px solid #1b352d !important;
  box-shadow: none !important;
}
body.authentication #SubmitCreate:hover {
  background: #1b352d !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* ---- lost password ---- */
body.authentication .lost_password a {
  color: #a34a26 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}
body.authentication .lost_password a:hover {
  color: #b8542c !important;
  text-decoration: underline !important;
}

/* ---- alerts ---- */
body.authentication .alert {
  border-radius: 14px !important;
  padding: 14px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border: 2px solid transparent !important;
}
body.authentication .alert-danger {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #7f1d1d !important;
}
body.authentication .alert-success {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
  color: #14532d !important;
}

/* ---- trust strip under the forms ---- */
body.authentication .auth-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
body.authentication .auth-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid #e4dccb;
  font-size: 12.5px;
  font-weight: 600;
  color: #45524b;
}
body.authentication .auth-trust li i {
  color: #b8542c;
  font-size: 13px;
}

/* ---- side-by-side labels & fields ---- */
/* PrestaShop's address/states JS injects inline display:block on the postcode &
   state groups, so flex needs !important to win. We must not, however, override
   the JS when it hides those fields (inline display:none) or hides the .unvisible
   fallbacks — hence the :not(.unvisible) exclusion and the re-hide rule below. */
body.authentication .box .form-group:has(> label):not(.date-select):not(.lost_password):not(.unvisible) {
  display: flex !important;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
/* respect JS-driven hiding (inline display:none) so hidden fields stay hidden */
body.authentication .box .form-group:has(> label):not(.date-select):not(.lost_password)[style*="none"] {
  display: none !important;
}
body.authentication .box .form-group:has(> label):not(.date-select):not(.lost_password) > label {
  flex: 0 0 150px;
  margin: 0 !important;
  padding-top: 14px !important;
  text-align: right;
}
body.authentication .box .form-group:has(> label):not(.date-select):not(.lost_password) > .form-control,
body.authentication .box .form-group:has(> label):not(.date-select):not(.lost_password) > input.form-control,
body.authentication .box .form-group:has(> label):not(.date-select):not(.lost_password) > select.form-control,
body.authentication .box .form-group:has(> label):not(.date-select):not(.lost_password) > textarea.form-control,
/* PrestaShop wraps <select> in <div class="selector"> for the arrow — keep it the
   same width as the control (do NOT let it flex-grow, or the arrow floats far
   right and the box looks "too long"). */
body.authentication .box .form-group:has(> label):not(.date-select):not(.lost_password) > .selector {
  flex: 1 1 240px;
  min-width: 0;
  max-width: 271px;
}
body.authentication .box .form-group .selector select.form-control {
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 575px) {
  body.authentication .box .form-group:has(> label):not(.date-select):not(.lost_password) {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  body.authentication .box .form-group:has(> label):not(.date-select):not(.lost_password) > label {
    flex: none;
    text-align: left;
  }
  body.authentication .box .form-group:not(.date-select) > .form-control,
  body.authentication .box .form-group:not(.date-select) > input.form-control,
  body.authentication .box .form-group:not(.date-select) > select.form-control,
  body.authentication .box .form-group:not(.date-select) > textarea.form-control,
  body.authentication .box .form-group:not(.date-select) > .selector {
    flex: none;
    width: 100%;
  }
}

/* ---- responsive ---- */
@media (max-width: 767px) {
  body.authentication .box {
    padding: 24px 20px 22px !important;
    border-radius: 16px !important;
  }
  body.authentication .page-heading,
  body.authentication .auth-heading {
    font-size: 28px !important;
  }
  body.authentication .box .button,
  body.authentication .box button[type="submit"],
  body.authentication .box input[type="submit"] {
    width: 100% !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.authentication .box { animation: none !important; }
}

/* =====================================================================
   Country / state selects: same 50px box as the text fields
   (PrestaShop wraps the native <select> in <div id="uniform-...">)
   ===================================================================== */
body.authentication .box #uniform-id_country,
body.authentication .box #uniform-id_state,
body.authentication .box #uniform-id_country_invoice,
body.authentication .box #uniform-id_state_invoice {
  height: 50px !important;
  line-height: 46px !important;
  padding: 0 !important;
  border: 2px solid #d9d2c2 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, .05) !important;
  box-sizing: border-box !important;
  overflow: hidden;
}
body.authentication .box #uniform-id_country:hover,
body.authentication .box #uniform-id_state:hover,
body.authentication .box #uniform-id_country_invoice:hover,
body.authentication .box #uniform-id_state_invoice:hover {
  border-color: #b9b5a6 !important;
}
body.authentication .box #uniform-id_country span,
body.authentication .box #uniform-id_state span,
body.authentication .box #uniform-id_country_invoice span,
body.authentication .box #uniform-id_state_invoice span {
  height: 46px !important;
  line-height: 46px !important;
  padding: 0 44px 0 14px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #16211c !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.authentication .box #uniform-id_country span::before,
body.authentication .box #uniform-id_state span::before,
body.authentication .box #uniform-id_country_invoice span::before,
body.authentication .box #uniform-id_state_invoice span::before {
  top: 50% !important;
  right: 14px !important;
  transform: translateY(-50%);
  border-left: 0 !important;
  padding-left: 0 !important;
  font-size: 15px !important;
  color: #7b857e !important;
}
body.authentication .box #uniform-id_country select,
body.authentication .box #uniform-id_state select,
body.authentication .box #uniform-id_country_invoice select,
body.authentication .box #uniform-id_state_invoice select {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer;
}

/* =====================================================================
   Mobile: the base layout uses flex-basis 240px, which turns into a
   HEIGHT once the form-group becomes a column. Reset it so the fields
   keep their natural height.
   ===================================================================== */
@media (max-width: 575px) {
  body.authentication .box .form-group:has(> label):not(.date-select):not(.lost_password) > .form-control,
  body.authentication .box .form-group:has(> label):not(.date-select):not(.lost_password) > input.form-control,
  body.authentication .box .form-group:has(> label):not(.date-select):not(.lost_password) > select.form-control,
  body.authentication .box .form-group:has(> label):not(.date-select):not(.lost_password) > textarea.form-control,
  body.authentication .box .form-group:has(> label):not(.date-select):not(.lost_password) > .selector {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 271px !important;
  }
}
@media (max-width: 400px) {
  body.authentication .box .button,
  body.authentication .box button[type="submit"],
  body.authentication .box input[type="submit"] {
    font-size: 14px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}
