/* =========================================================
   EMZA WooCommerce login / registration composition
   Uses native WooCommerce forms and authentication handlers.
   ========================================================= */

body.emza-account-auth-page {
  --emza-account-panel: 34.3%;
  min-height: 100vh;
  overflow-x: hidden;
  background: #fff;
  color: #090909;
}

body.emza-account-auth-page .site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: var(--emza-account-panel);
  z-index: 60;
  width: auto;
  height: clamp(88px, 10vw, 156px);
  background: transparent;
  color: #fff;
}

body.emza-account-auth-page .site-header::after,
body.emza-account-auth-page .header-start,
body.emza-account-auth-page .header-brand {
  display: none;
}

body.emza-account-auth-page .header-shell {
  display: flex;
  width: auto;
  height: 100%;
  margin: 0 clamp(28px, 8.1vw, 142px) 0 clamp(28px, 5vw, 86px);
  align-items: center;
  justify-content: flex-end;
}

body.emza-account-auth-page .header-nav,
body.emza-account-auth-page .header-nav--product {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.45vw, 25px);
  color: #fff;
  direction: ltr;
}

body.emza-account-auth-page .header-product-search {
  display: block;
  width: clamp(108px, 9vw, 158px);
  margin-inline-end: 5px;
}

body.emza-account-auth-page .header-product-search input[type="search"] {
  width: 100%;
  height: 31px;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 1px solid rgb(255 255 255 / 90%);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
  box-shadow: none;
}

body.emza-account-auth-page .header-product-search input[type="search"]::placeholder {
  color: #fff;
  opacity: 1;
}

body.emza-account-auth-page .header-control,
body.emza-account-auth-page .header-product-account,
body.emza-account-auth-page .header-product-wishlist {
  width: 34px;
  height: 34px;
  color: #fff;
}

body.emza-account-auth-page .header-product-account svg,
body.emza-account-auth-page .header-product-wishlist svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
}

body.emza-account-auth-page .bag-icon {
  width: 31px;
  height: 31px;
  border-color: #fff;
}

body.emza-account-auth-page .emza-content {
  position: relative;
  width: 100%;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

body.emza-account-auth-page .emza-content::before {
  position: absolute;
  inset: 0 0 0 var(--emza-account-panel);
  z-index: 0;
  background-color: #173047;
  background-image: url("../images/account/account-hero.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
}

body.emza-account-auth-page .content-shell {
  position: relative;
  z-index: 2;
  display: flex;
  width: var(--emza-account-panel);
  min-width: 430px;
  min-height: 100svh;
  margin: 0;
  padding: clamp(78px, 8vw, 124px) clamp(34px, 4vw, 70px) clamp(42px, 5vw, 78px);
  align-items: flex-start;
  background: #fff;
}

body.emza-account-auth-page .entry-card,
body.emza-account-auth-page .entry-content,
body.emza-account-auth-page .woocommerce {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.emza-account-auth-page .entry-header,
body.emza-account-auth-page .entry-thumbnail,
body.emza-account-auth-page .entry-footer,
body.emza-account-auth-page .comments-area,
body.emza-account-auth-page .emza-footer-area {
  display: none !important;
}

body.emza-account-auth-page .woocommerce {
  display: flex;
  min-height: calc(100svh - clamp(120px, 13vw, 202px));
  flex-direction: column;
}

body.emza-account-auth-page .woocommerce-notices-wrapper {
  order: 2;
}

body.emza-account-auth-page .woocommerce-error,
body.emza-account-auth-page .woocommerce-message,
body.emza-account-auth-page .woocommerce-info {
  margin: 0 0 24px;
  padding: 12px 0 12px 20px;
  border: 0;
  border-left: 2px solid #111;
  background: transparent;
  color: #111;
  font-size: 12px;
  line-height: 1.55;
}

body.emza-account-auth-page .woocommerce-error::before,
body.emza-account-auth-page .woocommerce-message::before,
body.emza-account-auth-page .woocommerce-info::before {
  display: none;
}

.emza-account-brand {
  display: inline-grid;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 clamp(34px, 5.8vh, 74px);
  order: 1;
  color: #090909;
  place-items: center start;
}

.emza-account-brand__logo {
  display: block;
  width: auto;
  max-width: min(270px, 78%);
  max-height: 76px;
  object-fit: contain;
  object-position: left center;
  filter: invert(1);
}

.emza-account-brand__word {
  display: block;
  color: #080808;
  font-size: clamp(42px, 4.2vw, 76px);
  font-weight: 300;
  letter-spacing: 0.3em;
  line-height: 0.95;
  text-indent: 0.3em;
  text-transform: uppercase;
}

body.emza-account-auth-page #customer_login,
body.emza-account-auth-page form.lost_reset_password,
body.emza-account-auth-page form.woocommerce-ResetPassword {
  width: 100%;
  order: 3;
}

body.emza-account-auth-page #customer_login {
  display: block;
}

body.emza-account-auth-page #customer_login::after {
  display: none;
}

body.emza-account-auth-page #customer_login > .u-column1,
body.emza-account-auth-page #customer_login > .u-column2 {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.emza-account-auth-page #customer_login > .u-column2 {
  display: none;
}

body.emza-account-auth-page.emza-account-register-mode #customer_login > .u-column1 {
  display: none;
}

body.emza-account-auth-page.emza-account-register-mode #customer_login > .u-column2 {
  display: block;
}

body.emza-account-auth-page #customer_login h2,
body.emza-account-auth-page .emza-account-recovery-title {
  margin: 0 0 clamp(24px, 4vh, 46px);
  color: #111;
  font-size: clamp(17px, 1.35vw, 23px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-transform: uppercase;
}

body.emza-account-auth-page .woocommerce form.login,
body.emza-account-auth-page .woocommerce form.register,
body.emza-account-auth-page .woocommerce form.lost_reset_password,
body.emza-account-auth-page .woocommerce form.woocommerce-ResetPassword {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  flex-direction: column;
  background: transparent;
}

body.emza-account-auth-page .woocommerce form > p:first-child:not(.form-row) {
  margin: 0 0 30px;
  color: #333;
  font-size: 13px;
  line-height: 1.6;
}

body.emza-account-auth-page .woocommerce form .form-row {
  width: 100%;
  margin: 0 0 clamp(22px, 3.5vh, 38px);
  padding: 0;
}

body.emza-account-auth-page .woocommerce form .form-row label {
  display: block;
  margin: 0 0 4px;
  color: #a1a1a1;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-transform: uppercase;
}

body.emza-account-auth-page .woocommerce form .required {
  color: inherit;
}

body.emza-account-auth-page .woocommerce form input.input-text,
body.emza-account-auth-page .woocommerce form input[type="email"],
body.emza-account-auth-page .woocommerce form input[type="password"],
body.emza-account-auth-page .woocommerce form input[type="text"] {
  width: 100%;
  min-height: 38px;
  padding: 5px 34px 8px 0;
  border: 0;
  border-bottom: 1px solid #828282;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #111;
  font-size: 15px;
  line-height: 1.25;
  box-shadow: none;
  transition: border-color 180ms ease;
}

body.emza-account-auth-page .woocommerce form input.input-text:focus,
body.emza-account-auth-page .woocommerce form input[type="email"]:focus,
body.emza-account-auth-page .woocommerce form input[type="password"]:focus,
body.emza-account-auth-page .woocommerce form input[type="text"]:focus {
  border-color: #000;
}

body.emza-account-auth-page .woocommerce .password-input {
  display: block;
  width: 100%;
}

body.emza-account-auth-page .woocommerce .show-password-input {
  right: 5px;
  top: 50%;
  transform: translateY(-35%);
}

body.emza-account-auth-page .woocommerce-form-login__rememberme {
  display: none !important;
}

body.emza-account-auth-page .woocommerce-LostPassword {
  margin: -6px 0 clamp(24px, 3.6vh, 40px) !important;
  order: 30;
  font-size: 12px;
}

body.emza-account-auth-page .woocommerce-LostPassword a {
  color: #111;
  text-decoration: none;
}

body.emza-account-auth-page .woocommerce-LostPassword a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.emza-account-auth-page .emza-account-submit-row {
  margin: 0 0 8px !important;
  order: 40;
}

body.emza-account-auth-page .woocommerce button.button,
body.emza-account-auth-page .woocommerce .woocommerce-button,
body.emza-account-auth-page .woocommerce input.button {
  display: grid;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 10px 18px;
  border: 1px solid #111;
  border-radius: 0;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  place-items: center;
  box-shadow: none;
  transition: background 180ms ease, color 180ms ease;
}

body.emza-account-auth-page .woocommerce button.button:hover,
body.emza-account-auth-page .woocommerce .woocommerce-button:hover,
body.emza-account-auth-page .woocommerce input.button:hover {
  background: #fff;
  color: #111;
}

.emza-account-switch {
  display: grid;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 10px 18px;
  border: 1px solid #777;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  order: 50;
  text-transform: uppercase;
  place-items: center;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.emza-account-switch:hover {
  border-color: #111;
  background: #111;
  color: #fff;
}

body.emza-account-auth-page .woocommerce-privacy-policy-text {
  margin: 0 0 24px;
  color: #555;
  font-size: 11px;
  line-height: 1.55;
}

.emza-account-social {
  margin-top: clamp(52px, 9vh, 112px);
  order: 60;
}

.emza-account-social h3 {
  margin: 0 0 12px;
  color: #111;
  font-size: clamp(15px, 1.2vw, 20px);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.emza-account-social > p {
  max-width: 355px;
  margin: 0 0 clamp(24px, 4vh, 42px);
  color: #222;
  font-size: 11px;
  line-height: 1.55;
}

.emza-account-social > p a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.emza-account-social__buttons {
  display: grid;
  gap: 8px;
}

.emza-account-social__button {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 42px;
  padding: 9px 42px;
  border: 1px solid #777;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  place-items: center;
}

.emza-account-social__button > span {
  position: absolute;
  left: 25%;
  display: grid;
  width: 22px;
  height: 22px;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  place-items: center;
}

.emza-account-social__button--google > span {
  color: #4285f4;
  font-family: Arial, sans-serif;
}

.emza-account-social__button--apple > span {
  font-size: 13px;
}

.emza-account-social__button[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
}

.emza-account-help {
  width: fit-content;
  margin-top: auto;
  padding-top: clamp(28px, 4.5vh, 58px);
  order: 70;
  color: #111;
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
}

.emza-account-help:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.emza-account-auth-page .toast,
body.emza-account-auth-page .noscript-message {
  z-index: 100;
}

@media (max-width: 1200px) and (min-width: 861px) {
  body.emza-account-auth-page {
    --emza-account-panel: 42%;
  }

  body.emza-account-auth-page .content-shell {
    min-width: 0;
    padding-inline: clamp(30px, 4.2vw, 52px);
  }

  body.emza-account-auth-page .header-product-search {
    width: 118px;
  }
}

@media (max-width: 860px) {
  body.emza-account-auth-page {
    --emza-account-panel: 100%;
  }

  body.emza-account-auth-page .emza-content::before {
    display: none;
  }

  body.emza-account-auth-page .site-header {
    position: absolute;
    right: 0;
    left: 0;
    width: 100%;
    height: 76px;
    background: #fff;
    color: #111;
  }

  body.emza-account-auth-page .header-shell {
    width: calc(100% - 40px);
    margin: 0 auto;
    justify-content: space-between;
  }

  body.emza-account-auth-page .header-start {
    display: flex;
  }

  body.emza-account-auth-page .header-menu-trigger {
    display: inline-flex;
    color: #111;
  }

  body.emza-account-auth-page .header-menu-lines i {
    background: currentColor;
  }

  body.emza-account-auth-page .header-menu-label,
  body.emza-account-auth-page .header-socials,
  body.emza-account-auth-page .header-product-search,
  body.emza-account-auth-page .header-product-account,
  body.emza-account-auth-page .header-product-wishlist {
    display: none;
  }

  body.emza-account-auth-page .header-nav,
  body.emza-account-auth-page .header-nav--product {
    color: #111;
  }

  body.emza-account-auth-page .header-control {
    color: #111;
  }

  body.emza-account-auth-page .bag-icon {
    border-color: #111;
  }

  body.emza-account-auth-page .content-shell {
    width: 100%;
    min-width: 0;
    min-height: 100svh;
    padding: 96px clamp(24px, 7vw, 58px) 42px;
  }

  body.emza-account-auth-page .woocommerce {
    min-height: calc(100svh - 138px);
  }

  .emza-account-brand {
    margin-bottom: 40px;
  }

  .emza-account-brand__word {
    font-size: clamp(42px, 13vw, 66px);
  }

  .emza-account-social {
    margin-top: 50px;
  }
}

@media (max-width: 480px) {
  body.emza-account-auth-page .content-shell {
    padding-inline: 20px;
  }

  .emza-account-brand__logo {
    max-width: 210px;
  }

  .emza-account-social__button > span {
    left: 16%;
  }
}
