/* NC Login Layout — centred reference card in Night Charm plum/gold/cream.
   Every rule is scoped to body.nc-login-layout and uses !important where the
   site's dark `nc-skin` would otherwise force white text / dark inputs. */

body.nc-login-layout{
  --ncl-p:#3E1038; --ncl-gold:#B2863C; --ncl-ink:#241226; --ncl-mut:#7C6C74;
  --ncl-line:#EADFD6; --ncl-cream:#FBF6F1; --ncl-page:#F4EDE6;
  background:var(--ncl-page) !important;
}
/* Let the store-wide cream background show through instead of the boutique skin's plum site wrapper. */
body.nc-login-layout .site.wp-site-blocks{ background:transparent !important; }
body.nc-login-layout .content-container.site-container{ max-width:1200px !important; }
body.nc-login-layout .entry-content .woocommerce{ min-height:640px; }

/* Stage / card: match reference (page bg warm, white rounded card, 448px). */
body.nc-login-layout .ncl-stage{
  display:flex !important; justify-content:center !important;
  padding:48px 16px 72px !important;
}
body.nc-login-layout .ncl-card{
  width:100% !important; max-width:448px !important; box-sizing:border-box !important;
  background:#fff !important; border:1px solid var(--ncl-line) !important;
  border-radius:24px !important; padding:40px !important;
  box-shadow:0 6px 24px rgba(62,16,56,.06) !important;
}
body.nc-login-layout .ncl-view{ text-align:center !important; }

/* Brand line */
body.nc-login-layout .ncl-brand{
  font-size:12px !important; font-weight:800 !important; letter-spacing:2.4px !important;
  color:var(--ncl-gold) !important; margin-bottom:22px !important;
  font-family:'Playfair Display',Georgia,serif !important;
}
body.nc-login-layout .ncl-brand-mark{ font-size:11px !important; }

/* Headings — override the skin's clamp(30px,...) white headings. */
body.nc-login-layout h1.ncl-title{
  font-family:'Playfair Display',Georgia,serif !important;
  font-size:30px !important; font-weight:600 !important; line-height:1.15 !important;
  color:var(--ncl-p) !important; margin:0 0 10px !important; letter-spacing:-.2px !important;
  text-transform:none !important;
}
body.nc-login-layout p.ncl-sub{
  font-size:14px !important; line-height:1.6 !important; color:var(--ncl-mut) !important;
  margin:0 0 28px !important; font-weight:400 !important;
}
/* Subtitle: plain text, no gold highlight background. */

/* Fields */
body.nc-login-layout .ncl-fields{ display:flex; flex-direction:column; gap:20px; margin-bottom:6px; }
body.nc-login-layout .ncl-fields.ncl-reg-fields{ gap:20px; }
body.nc-login-layout .ncl-reg-fields .ncl-hint{ margin:8px 0 0 !important; }
body.nc-login-layout .ncl-row{
  margin:0 !important; padding:0 !important; border:0 !important; text-align:left !important;
  float:none !important; clear:none !important; width:100% !important; max-width:100% !important;
}
body.nc-skin.nc-login-layout .ncl-card .ncl-row label{
  display:block !important; margin:0 0 8px !important; font-size:13px !important;
  font-weight:600 !important; color:var(--ncl-ink) !important; line-height:1.3 !important;
  font-family:inherit !important;
}
body.nc-login-layout .ncl-inputwrap{ position:relative; display:block; }
body.nc-login-layout .ncl-ico{
  position:absolute; left:14px; top:50%; transform:translateY(-50%);
  z-index:3; /* the password row wraps its input in span.password-input, which
                paints later and would otherwise cover the icon with white */
  width:18px; height:18px; color:#B3A6AE; pointer-events:none;
}
body.nc-login-layout .ncl-ico svg{ width:18px; height:18px; display:block; }
body.nc-skin.nc-login-layout .ncl-card .ncl-row input.input-text,
body.nc-skin.nc-login-layout .ncl-card .ncl-row input[type=text],
body.nc-skin.nc-login-layout .ncl-card .ncl-row input[type=email],
body.nc-skin.nc-login-layout .ncl-card .ncl-row input[type=password]{
  width:100% !important; height:50px !important; box-sizing:border-box !important;
  margin:0 !important; padding:0 14px 0 44px !important;
  border:1px solid var(--ncl-line) !important; border-radius:12px !important;
  background:#fff !important; color:var(--ncl-ink) !important;
  font-size:14px !important; line-height:1.4 !important; font-weight:400 !important;
  box-shadow:none !important; outline:none !important;
}
body.nc-skin.nc-login-layout .ncl-card .ncl-row input::placeholder{ color:#B3A6AE !important; opacity:1 !important; }
body.nc-skin.nc-login-layout .ncl-card .ncl-row input:focus{
  border-color:var(--ncl-gold) !important;
  box-shadow:0 0 0 3px rgba(178,134,60,.12) !important;
}
/* show-password toggle inside the password wrapper */
body.nc-login-layout .password-input{ position:relative; display:block; }
body.nc-login-layout .show-password-input{
  position:absolute !important; right:12px !important; top:50% !important;
  bottom:auto !important; translate:none !important;
  transform:translateY(-50%) !important; width:24px !important; height:24px !important;
  background:transparent !important; border:0 !important; color:#B3A6AE !important;
}

/* Turnstile failure banner — sits above the fields, like the reference site */
body.nc-login-layout .ncl-ts-alert{
  margin:0 0 18px !important; padding:12px 14px !important;
  border:1px solid #F0C9C4 !important; border-left:3px solid #C0392B !important;
  border-radius:9px !important; background:#FDF3F1 !important;
  color:#A32E22 !important; font-size:12.5px !important; line-height:1.5 !important;
  font-weight:600 !important; text-align:left !important;
  animation:ncl-alert-in .18s ease both;
}
body.nc-login-layout .ncl-ts-alert[hidden]{ display:none !important; }

/* Inline validation alert (lost-password email guard) */
body.nc-login-layout .ncl-alert{
  display:flex !important; align-items:flex-start !important; gap:8px !important;
  margin:10px 0 0 !important; padding:11px 13px !important;
  border:1px solid #F0C9C4 !important; border-left:3px solid #C0392B !important;
  border-radius:9px !important; background:#FDF3F1 !important;
  color:#A32E22 !important; font-size:12.5px !important; line-height:1.5 !important;
  font-weight:600 !important; text-align:left !important;
  animation:ncl-alert-in .18s ease both;
}
body.nc-login-layout .ncl-alert[hidden]{ display:none !important; }
body.nc-login-layout .ncl-fields .ncl-alert{ margin-top:-8px !important; }
@keyframes ncl-alert-in{ from{opacity:0; transform:translateY(-4px)} to{opacity:1; transform:none} }
body.nc-skin.nc-login-layout .ncl-card .ncl-row.ncl-row-error input.input-text,
body.nc-skin.nc-login-layout .ncl-card .ncl-row.ncl-row-error input[type=email]{
  border-color:#C0392B !important;
  box-shadow:0 0 0 3px rgba(192,57,43,.12) !important;
}

/* Notices moved out of the hidden wrapper into the card */
body.nc-login-layout .ncl-notices{ margin:0 0 18px !important; }
body.nc-login-layout .ncl-notices .woocommerce-error,
body.nc-login-layout .ncl-notices .woocommerce-message,
body.nc-login-layout .ncl-notices .woocommerce-info{
  margin:0 !important; padding:12px 14px !important; list-style:none !important;
  border-radius:10px !important; font-size:12.5px !important; line-height:1.5 !important;
  text-align:left !important;
}
body.nc-login-layout .ncl-notices .woocommerce-error{
  border:1px solid #F0C9C4 !important; border-left:3px solid #C0392B !important;
  background:#FDF3F1 !important; color:#A32E22 !important;
}
/* The store skin forces `strong{color:#fff}`, which made "Error:" and the email
   address invisible on the pink error panel. Re-assert the alert ink here. */
body.nc-login-layout .ncl-notices .woocommerce-error strong,
body.nc-login-layout .ncl-notices .woocommerce-error b,
body.nc-login-layout .ncl-notices .woocommerce-error em,
body.nc-login-layout .ncl-notices .woocommerce-error span{
  color:#A32E22 !important;
}
body.nc-login-layout .ncl-notices .woocommerce-error a{
  color:#8A6526 !important; font-weight:700 !important; text-decoration:underline !important;
}
body.nc-login-layout .ncl-notices .woocommerce-error a:hover{ color:#6F4E18 !important; }
body.nc-login-layout .ncl-notices .woocommerce-message,
body.nc-login-layout .ncl-notices .woocommerce-info{
  border:1px solid #E6DCC6 !important; border-left:3px solid var(--ncl-gold) !important;
  background:#FDF9F3 !important; color:#5C4A2E !important;
}
body.nc-login-layout .ncl-notices ul{ margin:0 !important; padding-left:0 !important; }
body.nc-login-layout .ncl-notices li{ list-style:none !important; margin:0 !important; }

/* Forgot password link sits on the password label row, right aligned. */body.nc-login-layout .ncl-row label .ncl-forgot{
  float:right; margin:0 !important; padding:0 !important; border:0 !important;
  background:transparent !important; color:var(--ncl-gold) !important;
  font-size:12px !important; font-weight:700 !important; cursor:pointer !important;
  line-height:1.3 !important; text-transform:none !important;
}
body.nc-login-layout .ncl-row label .ncl-forgot:hover{ color:#8A6526 !important; }

/* Reset-link-sent confirmation state */
body.nc-login-layout .ncl-view-sent{ padding:8px 0 4px !important; }
body.nc-login-layout .ncl-sent-ico{
  display:flex !important; align-items:center !important; justify-content:center !important;
  width:64px !important; height:64px !important; margin:6px auto 20px !important;
  border-radius:50% !important; background:#FBF3E6 !important; color:var(--ncl-gold) !important;
}
body.nc-login-layout .ncl-sent-ico svg{ width:28px !important; height:28px !important; display:block !important; }
body.nc-login-layout .ncl-view-sent p.ncl-sub{ margin-bottom:22px !important; }
body.nc-login-layout a.ncl-sent-back{
  display:inline-block !important; margin-top:4px !important;
  font-size:14px !important; font-weight:700 !important; color:var(--ncl-gold) !important;
  text-decoration:none !important;
}
body.nc-login-layout a.ncl-sent-back:hover{ text-decoration:underline !important; color:#8A6526 !important; }

/* Register: first / last name sit side by side on desktop, stack on mobile
   (reference uses grid-cols-1 + sm:grid-cols-2). */
body.nc-login-layout .ncl-namegrid{
  display:grid !important; grid-template-columns:1fr !important; gap:20px !important;
}
@media (min-width:600px){
  body.nc-login-layout .ncl-namegrid{ grid-template-columns:1fr 1fr !important; }
}
body.nc-login-layout .ncl-namegrid .ncl-row{ margin:0 !important; }
body.nc-login-layout .ncl-namegrid .ncl-row label{ margin-bottom:8px !important; }
body.nc-login-layout .ncl-terms{
  margin:14px 0 0 !important; color:var(--ncl-mut) !important;
  font-size:11.5px !important; line-height:1.55 !important; text-align:center !important;
}
body.nc-login-layout .ncl-terms a{ color:var(--ncl-gold) !important; text-decoration:underline !important; }
/* Eye toggle: our own inline SVG, so it never depends on the WooCommerce icon
   font (which commonly fails to load on mobile, leaving a blank button). */
body.nc-login-layout .show-password-input{ display:none !important; }
body.nc-login-layout .ncl-eye{
  position:absolute !important; right:12px !important; top:50% !important;
  transform:translateY(-50%) !important; width:26px !important; height:26px !important;
  padding:0 !important; border:0 !important; background:transparent !important;
  color:#7C6C74 !important; cursor:pointer !important; display:flex !important;
  align-items:center !important; justify-content:center !important;
  z-index:5 !important;
}
body.nc-login-layout .ncl-eye svg{
  width:19px !important; height:19px !important; display:block !important;
  stroke:currentColor !important; fill:none !important;
}
body.nc-login-layout .ncl-eye:hover{ color:#3E1038 !important; }
body.nc-login-layout .ncl-eye.is-on{ color:#B2863C !important; }
body.nc-login-layout .ncl-has-eye input{ padding-right:46px !important; }
/* Same rule but specific enough to beat the input styling above. */
body.nc-skin.nc-login-layout .ncl-card .ncl-row.ncl-has-eye input.input-text,
body.nc-skin.nc-login-layout .ncl-card .ncl-row.ncl-has-eye input[type=password],
body.nc-skin.nc-login-layout .ncl-card .ncl-row.ncl-has-eye input[type=text]{
  padding-right:46px !important;
}

/* Remember + submit */
body.nc-login-layout .ncl-controls{ margin-top:22px !important; text-align:left !important; }
body.nc-login-layout .ncl-remember{
  display:flex !important; align-items:center !important; gap:7px !important;
  font-size:12px !important; color:var(--ncl-mut) !important; cursor:pointer !important;
  margin:0 0 16px !important;
}
body.nc-login-layout .ncl-remember input{ width:15px !important; height:15px !important; margin:0 !important; accent-color:var(--ncl-p) !important; }
body.nc-skin.nc-login-layout .ncl-card button.ncl-submit,
body.nc-skin.nc-login-layout .ncl-card input.ncl-submit{
  display:block !important; width:100% !important; height:50px !important;
  margin:0 !important; padding:0 20px !important; border:0 !important; border-radius:12px !important;
  background:var(--ncl-p) !important; color:#fff !important;
  font-family:inherit !important;
  font-size:14px !important; font-weight:700 !important; letter-spacing:.3px !important;
  text-transform:none !important;
  cursor:pointer !important; box-shadow:0 4px 14px rgba(62,16,56,.18) !important;
}
body.nc-skin.nc-login-layout .ncl-card button.ncl-submit:hover,
body.nc-skin.nc-login-layout .ncl-card input.ncl-submit:hover{ background:#5A2152 !important; }

/* Locked submit: verification not passed → grey and inert (reference behaviour) */
body.nc-skin.nc-login-layout .ncl-card button.ncl-submit.ncl-locked,
body.nc-skin.nc-login-layout .ncl-card input.ncl-submit.ncl-locked,
body.nc-skin.nc-login-layout .ncl-card button.ncl-submit:disabled,
body.nc-skin.nc-login-layout .ncl-card input.ncl-submit:disabled{
  background:#BFB4BD !important;
  color:#FFFFFF !important;
  box-shadow:none !important;
  cursor:not-allowed !important;
  opacity:1 !important;
}
body.nc-skin.nc-login-layout .ncl-card button.ncl-submit.ncl-locked:hover,
body.nc-skin.nc-login-layout .ncl-card button.ncl-submit:disabled:hover{
  background:#BFB4BD !important;
}

/* Cloudflare Turnstile verification box */
body.nc-login-layout .ncl-turnstile-wrap{
  margin-top:16px !important; padding:12px 14px !important;
  border:1px solid #ECE7EA !important; border-radius:9px !important;
  background:#F8F7F8 !important; min-height:68px !important;
  box-sizing:border-box !important; display:block !important;
}
body.nc-login-layout .ncl-turnstile-host{
  min-height:64px !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
  text-align:center !important;
}
/* Turnstile injects a wrapper div + fixed-width (300px) iframe; the host box is
   wider than that, so centre the widget instead of letting it hug the left. */
body.nc-login-layout .ncl-turnstile-host > div{
  margin:0 auto !important; display:flex !important;
  align-items:center !important; justify-content:center !important; width:100% !important;
}
body.nc-login-layout .ncl-turnstile-host iframe{
  margin:0 auto !important; display:block !important;
}
body.nc-login-layout .ncl-controls{ margin-top:16px !important; }

/* Reference-style account links */
body.nc-login-layout .ncl-extra-links{
  display:flex !important; flex-direction:column !important; align-items:center !important;
  gap:12px !important; margin-top:22px !important;
}
body.nc-login-layout .ncl-extra-link{
  display:inline-flex !important; align-items:center !important; justify-content:center !important;
  gap:9px !important; color:#6F6068 !important; font-size:13px !important;
  font-weight:600 !important; text-decoration:none !important; line-height:1.3 !important;
}
body.nc-login-layout a.ncl-extra-link:hover{ color:var(--ncl-gold) !important; }
body.nc-login-layout .ncl-extra-link svg{ width:17px !important; height:17px !important; display:block !important; }
body.nc-login-layout .ncl-extra-link .ncl-chevron{ color:var(--ncl-gold) !important; font-size:18px !important; line-height:1 !important; }
/* "Secure account access" is informational text, not a link. */
body.nc-login-layout .ncl-extra-static{ cursor:default !important; }

/* WooCommerce error / notice messages inside the form */
body.nc-login-layout .woocommerce-error,
body.nc-login-layout .woocommerce-message,
body.nc-login-layout .woocommerce-info{
  border-radius:10px !important; font-size:12px !important; line-height:1.5 !important;
  text-align:left !important; margin:0 0 18px !important; padding:11px 13px !important;
}

/* Divider + alternate action */
body.nc-login-layout .ncl-sep{
  margin-top:28px !important; padding-top:26px !important; border-top:1px solid var(--ncl-line) !important;
  text-align:center !important;
}
body.nc-login-layout .ncl-sep span{
  display:block !important; font-size:13px !important; color:var(--ncl-mut) !important; margin-bottom:8px !important;
}
body.nc-login-layout a.ncl-alt{
  display:inline-block !important; font-size:14px !important; font-weight:700 !important;
  color:var(--ncl-gold) !important; text-decoration:none !important;
}
body.nc-login-layout a.ncl-alt:hover{ text-decoration:underline !important; color:#8A6526 !important; }

/* Bottom note (login only) */
body.nc-login-layout .ncl-note{
  margin-top:24px !important; padding:12px 14px !important;
  border:1px solid var(--ncl-line) !important; border-radius:12px !important;
  background:var(--ncl-cream) !important; color:var(--ncl-mut) !important;
  font-size:12px !important; line-height:1.5 !important; text-align:center !important;
}
body.nc-skin.nc-login-layout .ncl-card .ncl-hint{
  margin:6px 0 0 !important; font-size:11px !important; color:var(--ncl-mut) !important; text-align:left !important;
}

/* Hide the original WooCommerce headings / notices that we replace. */
body.nc-login-layout .ncl-hidden-src{ display:none !important; }

/* mobile */
@media (max-width:600px){
  body.nc-login-layout .ncl-stage{ padding:24px 14px 48px !important; }
  body.nc-login-layout .ncl-card{ padding:26px 20px !important; border-radius:18px !important; }
  body.nc-login-layout h1.ncl-title{ font-size:26px !important; }
}

/* WooCommerce/Kadence gives the login form a blue border; remove it inside our card. */
body.nc-login-layout .ncl-card form.woocommerce-form,
body.nc-skin.nc-login-layout .ncl-card form.woocommerce-form{ border:0 !important; box-shadow:none !important; padding:0 !important; margin:0 !important; background:transparent !important; }


/* Welcome offer line on the register screen */
.ncl-promo{
  display:flex; align-items:center; justify-content:center; gap:9px;
  margin:14px 0 0; padding:11px 14px;
  background:#FBF3E4; border:1px solid #F0DFC2; border-radius:10px;
  font-size:12px; font-weight:700; color:#8A6526; text-align:center; line-height:1.4;
}
.ncl-promo-badge{
  display:inline-flex; align-items:center; height:21px; padding:0 9px;
  background:#C9A15A; color:#fff; border-radius:999px;
  font-size:10px; font-weight:800; letter-spacing:.7px; white-space:nowrap;
}
@media (max-width:420px){
  .ncl-promo{ flex-direction:column; gap:7px; }
}
