:root{
  --ht-auth-night:#000410;
  --ht-auth-night-2:#07111b;
  --ht-auth-teal:#0c2b32;
  --ht-auth-gold:#ffd28e;
  --ht-auth-card:rgba(255,255,255,.94);
  --ht-auth-text:#000410;
  --ht-auth-muted:rgba(0,4,16,.62);
  --ht-auth-error:#b42318;
}
body.woocommerce-account:not(.logged-in){background:var(--ht-auth-night)!important;}
body.woocommerce-account:not(.logged-in) #site-header,
body.woocommerce-account:not(.logged-in) .site-header,
body.woocommerce-account:not(.logged-in) footer,
body.woocommerce-account:not(.logged-in) .site-footer{display:none!important;}
body.woocommerce-account:not(.logged-in) #page,
body.woocommerce-account:not(.logged-in) .site-content,
body.woocommerce-account:not(.logged-in) .site-main,
body.woocommerce-account:not(.logged-in) article.page,
body.woocommerce-account:not(.logged-in) .page-content,
body.woocommerce-account:not(.logged-in) .entry-content,
body.woocommerce-account:not(.logged-in) .woocommerce{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:transparent!important;border-radius:0!important;}
body.woocommerce-account:not(.logged-in) .page-header,
body.woocommerce-account:not(.logged-in) .entry-title{display:none!important;}
.ht-auth-shell{min-height:100dvh;position:relative;color:var(--ht-auth-text);background:radial-gradient(circle at 22% 28%,rgba(255,210,142,.18),transparent 30%),radial-gradient(circle at 78% 66%,rgba(74,157,162,.20),transparent 34%),linear-gradient(135deg,#000410 0%,#07111b 52%,#0c2b32 100%);}
.ht-auth-shell::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 15% 80%,rgba(113,150,95,.14),transparent 22%),radial-gradient(ellipse at 68% 18%,rgba(191,145,87,.12),transparent 22%);filter:blur(18px);}
.ht-auth-back{position:relative;z-index:3;min-height:48px;padding:0 28px;display:inline-flex;align-items:center;gap:10px;color:#fff!important;font:800 11px/1 "Open Sans",sans-serif;letter-spacing:.04em;text-decoration:none!important;text-transform:uppercase;}
.ht-auth-back:hover{color:var(--ht-auth-gold)!important;}.ht-auth-back__arrow{font-size:30px;font-weight:300;line-height:1;}
.ht-auth-stage{position:relative;z-index:2;min-height:calc(100dvh - 48px);padding:48px 24px 72px;display:flex;align-items:center;justify-content:center;}
.ht-auth-card{width:min(100%,440px);padding:38px 38px 40px;background:var(--ht-auth-card);border:1px solid rgba(255,255,255,.45);border-radius:22px;box-shadow:0 24px 70px rgba(0,4,16,.24);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);}
.ht-auth-brand{margin-bottom:26px}.ht-auth-brand .custom-logo-link{display:inline-flex!important;margin:0!important}.ht-auth-brand .custom-logo{width:auto!important;height:auto!important;max-width:112px!important;max-height:72px!important;object-fit:contain!important}.ht-auth-brand__fallback{color:var(--ht-auth-text)!important;font-size:24px;font-weight:800;text-decoration:none!important}
.ht-auth-card h1{margin:0 0 8px!important;color:var(--ht-auth-text)!important;font:800 31px/1.12 "Open Sans",sans-serif!important;letter-spacing:-.03em!important}.ht-auth-intro,.ht-auth-help{margin:0 0 24px!important;color:var(--ht-auth-muted)!important;font-size:13px!important;line-height:1.55!important}
.ht-auth-tabs{margin:0 0 30px;padding:4px;display:grid;grid-template-columns:1fr 1fr;background:rgba(0,4,16,.055);border-radius:999px}.ht-auth-tab{min-height:42px;border:0!important;border-radius:999px!important;background:transparent!important;color:rgba(0,4,16,.58)!important;font-size:13px!important;font-weight:800!important;box-shadow:none!important}.ht-auth-tab.is-active{background:var(--ht-auth-night)!important;color:var(--ht-auth-gold)!important}.ht-auth-panel[hidden]{display:none!important}
.ht-auth-form{margin:0!important;padding:0!important;border:0!important;background:transparent!important}.ht-auth-form .form-row{margin:0 0 17px!important;padding:0!important}.ht-auth-form label{display:block;margin:0 0 7px!important;color:var(--ht-auth-text)!important;font-size:12px!important;font-weight:700!important}.ht-auth-form input.input-text{width:100%!important;min-height:54px!important;margin:0!important;padding:0 16px!important;border:1px solid rgba(0,4,16,.34)!important;border-radius:12px!important;background:#fff!important;color:var(--ht-auth-text)!important;font:500 15px/1.3 "Open Sans",sans-serif!important;outline:none!important;box-shadow:none!important}.ht-auth-form input.input-text::placeholder{color:rgba(0,4,16,.40)!important;opacity:1!important}.ht-auth-form input.input-text:focus{border-color:var(--ht-auth-night)!important;box-shadow:0 0 0 3px rgba(255,210,142,.32)!important}
.ht-auth-form__meta{margin:4px 0 20px;display:flex;align-items:center;justify-content:space-between;gap:14px}.ht-auth-form__meta .woocommerce-form-login__rememberme{margin:0!important;display:inline-flex;align-items:center;gap:7px;font-size:12px!important;font-weight:500!important}.ht-auth-form__meta input[type=checkbox]{width:18px!important;height:18px!important;margin:0!important}.ht-auth-forgot,.ht-auth-secondary-link{color:var(--ht-auth-text)!important;font-size:12px!important;font-weight:700!important;text-decoration:underline!important;text-decoration-color:var(--ht-auth-gold)!important;text-decoration-thickness:2px!important;text-underline-offset:3px!important}.ht-auth-secondary-link{margin-top:22px;display:block;text-align:center}
.ht-auth-form .ht-auth-submit,.ht-auth-submit{width:100%!important;min-height:56px!important;margin:2px 0 0!important;padding:12px 18px!important;border:1px solid var(--ht-auth-night)!important;border-radius:999px!important;background:var(--ht-auth-night)!important;color:var(--ht-auth-gold)!important;font:800 15px/1 "Open Sans",sans-serif!important;box-shadow:none!important}.ht-auth-form .ht-auth-submit:hover,.ht-auth-submit:hover{background:var(--ht-auth-gold)!important;color:var(--ht-auth-night)!important}
body.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper{position:fixed;z-index:50;top:62px;left:50%;width:min(calc(100% - 32px),440px);transform:translateX(-50%)}body.woocommerce-account:not(.logged-in) .woocommerce-error,body.woocommerce-account:not(.logged-in) .woocommerce-message,body.woocommerce-account:not(.logged-in) .woocommerce-info{margin:0 0 12px!important;padding:12px 14px!important;border:0!important;border-radius:12px!important;background:#fff!important;color:var(--ht-auth-text)!important;font-size:12px!important;box-shadow:0 12px 35px rgba(0,4,16,.14)}body.woocommerce-account:not(.logged-in) .woocommerce-error{border-left:4px solid var(--ht-auth-error)!important}
@media(max-width:600px){.ht-auth-back{min-height:46px;padding:0 16px;font-size:10px}.ht-auth-stage{min-height:calc(100dvh - 46px);padding:28px 14px 42px;align-items:flex-start}.ht-auth-card{margin-top:26px;padding:28px 20px 30px;border-radius:18px}.ht-auth-card h1{font-size:27px!important}.ht-auth-brand .custom-logo{max-width:96px!important;max-height:64px!important}.ht-auth-form__meta{align-items:flex-start;flex-direction:column}}

/* =========================================================
   HARMONIA AUTH - refinements
   ========================================================= */

/* Fix globale possibile per la striscia bianca laterale */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: #000410;
}

#page,
.site,
.site-content,
.site-main {
  max-width: 100%;
  overflow-x: clip;
}

/* Shell */
.ht-auth-shell {
  min-height: 100dvh;
  position: relative;
  color: #000410;
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 210, 142, 0.14), transparent 30%),
    radial-gradient(circle at 78% 66%, rgba(74, 157, 162, 0.18), transparent 34%),
    linear-gradient(135deg, #000410 0%, #07111b 52%, #0c2b32 100%);
}

/* Top bar vera */
/* =========================================================
   AUTH TOP BAR
   ========================================================= */

.ht-auth-back {
    position: relative;
    z-index: 20;

    width: 100%;
    height: 52px;
    min-height: 52px;

    padding: 0 28px;

    display: flex;
    align-items: center;

    gap: 12px;

    box-sizing: border-box;

    background: #000410;

    color: #ffffff !important;

    font-family: "Open Sans", sans-serif;

    font-size: 11px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: 0.04em;

    text-decoration: none !important;
    text-transform: uppercase;

    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


.ht-auth-back:hover {
    color: #ffd28e !important;
}


/* contenitore freccia */
.ht-auth-back__arrow {
    position: relative;

    width: 22px;
    height: 22px;

    flex: 0 0 22px;

    display: block;

    font-size: 0;
    line-height: 0;
}


/* linea orizzontale */
.ht-auth-back__arrow::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 1px;

    width: 20px;
    height: 2px;

    background: currentColor;

    border-radius: 999px;

    transform: translateY(-50%);
}


/* punta */
.ht-auth-back__arrow::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 1px;

    width: 9px;
    height: 9px;

    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;

    transform:
        translateY(-50%)
        rotate(45deg);

    transform-origin: center;
}

/* Stage */
.ht-auth-stage {
  position: relative;
  z-index: 2;
  min-height: calc(100dvh - 52px);
  padding: 48px 24px 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card */
.ht-auth-card {
  width: min(100%, 440px);
  padding: 38px 38px 40px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 4, 16, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Logo centrato */
.ht-auth-brand {
  margin: 0 0 26px;
  text-align: center;
}

.ht-auth-brand .custom-logo-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto !important;
}

.ht-auth-brand .custom-logo {
  width: auto !important;
  height: auto !important;
  max-width: 112px !important;
  max-height: 72px !important;
  object-fit: contain !important;
}

/* Tabs */
.ht-auth-tabs {
  margin: 0 0 30px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(0, 4, 16, 0.055);
  border-radius: 999px;
}

.ht-auth-tab {
  min-height: 42px;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: rgba(0, 4, 16, 0.58) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

.ht-auth-tab.is-active {
  background: #000410 !important;
  color: #ffd28e !important;
}

/* Titoli */
.ht-auth-card h1 {
  margin: 0 0 8px !important;
  color: #000410 !important;
  font-family: "Open Sans", sans-serif !important;
  font-size: 31px !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.03em !important;
}

.ht-auth-intro,
.ht-auth-help {
  margin: 0 0 24px !important;
  color: rgba(0, 4, 16, 0.62) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

/* Form */
.ht-auth-form .form-row {
  margin: 0 0 17px !important;
  padding: 0 !important;
}

.ht-auth-form label {
  display: block;
  margin: 0 0 7px !important;
  color: #000410 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.ht-auth-form input.input-text {
  width: 100% !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 1px solid rgba(0, 4, 16, 0.34) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #000410 !important;
  font-family: "Open Sans", sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  outline: none !important;
  box-shadow: none !important;
}

.ht-auth-form input.input-text::placeholder {
  color: rgba(0, 4, 16, 0.40) !important;
  opacity: 1 !important;
}

.ht-auth-form input.input-text:focus {
  border-color: #000410 !important;
  box-shadow: 0 0 0 3px rgba(255, 210, 142, 0.32) !important;
}

/* Meta */
.ht-auth-form__meta {
  margin: 4px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ht-auth-form__meta .woocommerce-form-login__rememberme {
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.ht-auth-form__meta input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}

.ht-auth-forgot,
.ht-auth-secondary-link {
  color: #000410 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-decoration-color: #ffd28e !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px !important;
}

/* CTA */
.ht-auth-form .ht-auth-submit,
.ht-auth-submit {
  width: 100% !important;
  min-height: 56px !important;
  margin: 2px 0 0 !important;
  padding: 12px 18px !important;
  border: 1px solid #000410 !important;
  border-radius: 999px !important;
  background: #000410 !important;
  color: #ffd28e !important;
  font-family: "Open Sans", sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

.ht-auth-form .ht-auth-submit:hover,
.ht-auth-submit:hover {
  background: #ffd28e !important;
  color: #000410 !important;
}

/* Mobile */
@media (max-width: 600px) {
  .ht-auth-back {
    min-height: 48px;
    padding: 0 16px;
    font-size: 10px;
  }

  .ht-auth-stage {
    min-height: calc(100dvh - 48px);
    padding: 28px 14px 42px;
    align-items: flex-start;
  }

  .ht-auth-card {
    margin-top: 26px;
    padding: 28px 20px 30px;
    border-radius: 18px;
  }

  .ht-auth-card h1 {
    font-size: 27px !important;
  }

  .ht-auth-brand .custom-logo {
    max-width: 96px !important;
    max-height: 64px !important;
  }

  .ht-auth-form__meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================================================
   HARMONIA AUTH — PHASE 2
   ========================================================= */

.ht-auth-step[hidden] {
  display: none !important;
}

.ht-auth-status {
  margin: 0 0 18px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.ht-auth-status.is-error {
  background: #fff0ee;
  color: #9f2419;
}

.ht-auth-status.is-info {
  background: #eef6f7;
  color: #164f55;
}

.ht-auth-check {
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: #000410;
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}

.ht-auth-check input {
  width: 18px !important;
  height: 18px !important;
  margin: 1px 0 0 !important;
}

.ht-auth-check a {
  color: #000410 !important;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #ffd28e;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.ht-auth-check--compact {
  margin-bottom: 18px;
}

.ht-auth-text-button {
  width: 100%;
  margin: 14px 0 0;
  padding: 3px 0;
  border: 0 !important;
  background: transparent !important;
  color: #000410 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-decoration: underline;
  text-decoration-color: #ffd28e;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  box-shadow: none !important;
}

.ht-auth-secondary-button {
  width: 100%;
  min-height: 52px;
  margin: 12px 0 0;
  border: 1px solid rgba(0, 4, 16, .48) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #000410 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

.ht-auth-secondary-button:hover {
  border-color: #000410 !important;
  background: rgba(0, 4, 16, .04) !important;
}

.ht-auth-intro--small {
  margin-top: -14px !important;
  font-size: 11px !important;
}

.ht-auth-otp {
  margin: 4px 0 20px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.ht-auth-otp input {
  min-width: 0;
  width: 100% !important;
  height: 54px !important;
  padding: 0 !important;
  border: 1px solid rgba(0, 4, 16, .28) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #000410 !important;
  font-size: 21px !important;
  font-weight: 800 !important;
  text-align: center !important;
  outline: none !important;
  box-shadow: none !important;
}

.ht-auth-otp input:focus {
  border-color: #000410 !important;
  box-shadow: 0 0 0 3px rgba(255, 210, 142, .32) !important;
}

.ht-auth-submit:disabled,
.ht-auth-secondary-button:disabled,
.ht-auth-text-button:disabled {
  cursor: wait;
  opacity: .58;
}

.ht-auth-loading-step {
  padding: 28px 0 12px;
  text-align: center;
}

.ht-auth-loading-step h1,
.ht-auth-loading-step .ht-auth-intro {
  text-align: center;
}

.ht-auth-loading-mark {
  height: 40px;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ht-auth-loading-mark span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #000410;
  animation: ht-auth-dot 1s infinite ease-in-out;
}

.ht-auth-loading-mark span:nth-child(2) {
  animation-delay: .12s;
  background: #ffd28e;
}

.ht-auth-loading-mark span:nth-child(3) {
  animation-delay: .24s;
  background: #3d8f94;
}

@keyframes ht-auth-dot {
  0%, 100% {
    transform: translateY(0);
    opacity: .45;
  }
  50% {
    transform: translateY(-7px);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .ht-auth-otp {
    gap: 5px;
  }

  .ht-auth-otp input {
    height: 48px !important;
    font-size: 18px !important;
  }
}
