/* Blaziest Limited / Account + Signup Modal - corrected V3
   Loaded ONLY by account.html and signup.html.
   Original background art and centered authentication layout are retained.
   No JavaScript or address-picker logic is touched.
*/

/* Critical fix for long signup screens: the black backdrop must cover
   the viewport even when the form extends past one screenful. */
html { background-color: #000; }
body.bz-auth-form { background-color: #000; }
body.bz-auth-form .auth-page {
  background-color: #000 !important;
  background-image: none !important;
  min-height: 100svh;
}
body.bz-auth-form .auth-page::before {
  /* Fixed element instead of a background sized against the tall form. */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #000;
  background-image:
    linear-gradient(rgba(0,0,0,.35),rgba(0,0,0,.35)),
    url('../img/auth-bg.png');
  background-size: 100% 100%, contain;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
/* Natural scrolling for a long signup form without pulling the card offscreen. */
body.bz-auth-form .signup-page {
  display: block;
  height: auto;
  padding-top: 38px;
  padding-bottom: 48px;
}

/* IMPORTANT: signup.js turns #address into a hidden field and renders
   the real address picker next to it. Do NOT force hidden fields visible. */
body.bz-auth-form .auth-card [hidden],
body.bz-auth-form .auth-card #address[hidden] {
  display: none !important;
}

/* Card: matte, editorial, not a new page layout. */
body.bz-auth-form .auth-card {
  position: relative;
  z-index: 1;
  background: #fbfbfa;
  color: #151719;
  border: 1px solid #e6e6e3;
  border-top: 3px solid #111315;
  border-radius: 10px;
  padding: 32px 34px 30px;
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.bz-auth-form .auth-card h1 {
  font-family: Impact, 'Arial Narrow', 'Arial Black', sans-serif;
  font-size: clamp(32px, 4.2vw, 39px);
  line-height: 1.04;
  letter-spacing: -.025em;
  text-transform: uppercase;
  font-weight: 900;
  color: #111315;
  margin: 0 0 8px;
}
body.bz-auth-form .auth-card .auth-subtitle {
  margin: 0 0 21px;
  font-size: 13px;
  line-height: 1.65;
  color: #63696c;
}
body.bz-auth-form .auth-card .auth-message { padding: 0; margin: 0 0 10px; font-size: 13px; line-height: 1.5; }
body.bz-auth-form .auth-card .auth-message:empty { display: none; }

/* Form controls */
body.bz-auth-form .auth-card .field { margin: 0 0 14px; }
body.bz-auth-form .auth-card .auth-label { margin: 0 0 14px; }
body.bz-auth-form .auth-card .auth-label,
body.bz-auth-form .auth-card .field > label:not([hidden]) {
  color: #1c2022;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: .085em;
  text-transform: uppercase;
}
body.bz-auth-form .auth-card .field > label:not([hidden]) { display: block; margin: 0 0 6px; }
body.bz-auth-form .auth-card .auth-label > input,
body.bz-auth-form .auth-card .auth-label > .password-wrapper { margin-top: 6px; }
body.bz-auth-form .auth-card :is(.auth-label input, .field > input:not([hidden]), .field > textarea:not([hidden])) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  box-sizing: border-box;
  padding: 11px 13px;
  background: #fff;
  color: #111315;
  border: 1px solid #d6d8d8;
  border-radius: 4px;
  box-shadow: none;
  font-family: "Blaziest Switzer", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  outline: none;
}
body.bz-auth-form .auth-card :is(.auth-label input, .field > input, .field > textarea)::placeholder { color: #94999c; opacity: 1; }
body.bz-auth-form .auth-card :is(.auth-label input, .field > input, .field > textarea):focus-visible {
  border-color: #141719;
  outline: 2px solid rgba(17,19,21,.15);
  outline-offset: 1px;
}
body.bz-auth-form .auth-card .password-wrapper { position: relative; }
body.bz-auth-form .auth-card .password-wrapper input { padding-right: 72px; }
body.bz-auth-form .auth-card .password-toggle {
  position: absolute;
  top: 50%; right: 13px;
  transform: translateY(-50%);
  padding: 5px;
  background: transparent;
  border: 0;
  color: #424649;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}
body.bz-auth-form .auth-card .password-toggle:hover { color: #111315; text-decoration: underline; }

/* Action + helper links */
body.bz-auth-form .auth-card .auth-actions { display: flex; gap: 10px; margin: 18px 0 0; }
body.bz-auth-form .auth-card .primary-btn {
  width: 100%; min-height: 47px;
  padding: 12px 16px;
  background: #111315; color: #fff;
  border: 1px solid #111315;
  border-radius: 3px;
  font-family: "Blaziest Switzer", Arial, sans-serif;
  font-weight: 800; font-size: 12px;
  letter-spacing: .095em; text-transform: uppercase;
  cursor: pointer;
}
body.bz-auth-form .auth-card .primary-btn:not(:disabled):hover { background: #32383c; }
body.bz-auth-form .auth-card .primary-btn:focus-visible { outline: 2px solid #111315; outline-offset: 3px; }
body.bz-auth-form .auth-card .auth-extra-row { margin-top: 3px; }
body.bz-auth-form .auth-card .link-btn,
body.bz-auth-form .auth-card .auth-link { color: #111315; font-size: 12px; font-weight: 800; text-underline-offset: 3px; }
body.bz-auth-form .auth-card .auth-note { font-size: 12px; line-height: 1.5; color: #676d6f; margin: 14px 0 0; }
body.bz-auth-form .auth-card .error-message { color: #a32222; font-size: 12px; line-height: 1.4; }
body.bz-auth-form .auth-card .error-message:empty { display: none; }

/* Address picker is the ONLY displayed shipping-address UI. */
body.bz-auth-form .auth-card .address-picker { margin: 12px 0 15px; }
body.bz-auth-form .auth-card .address-editor,
body.bz-auth-form .auth-card .address-saved {
  padding: 15px; min-width: 0;
  border-radius: 5px; border-color: #d8dadb; background: #f7f7f6;
}
body.bz-auth-form .auth-card .address-picker legend {
  font-size: 12px; letter-spacing: .05em; text-transform: uppercase; font-weight: 800;
}
body.bz-auth-form .auth-card .address-picker .address-grid { gap: 12px; }
body.bz-auth-form .auth-card .address-picker .address-grid label {
  font-size: 12px; line-height: 1.45; letter-spacing: normal; font-weight: 700; color: #25292b;
}
body.bz-auth-form .auth-card .address-picker :is(input, select) {
  min-height: 44px; width: 100%; min-width: 0;
  border: 1px solid #d3d7d8; border-radius: 4px;
  padding: 10px 11px; font-size: 16px; background: #fff; color: #111315;
}
body.bz-auth-form .auth-card .address-picker :is(input, select):disabled { background: #f0f1f1; color: #868d91; }
body.bz-auth-form .auth-card .address-picker button {
  min-height: 44px; border-radius: 4px;
  background: #fff; border-color: #a1a5a7; color: #111315;
  font-weight: 700;
}
body.bz-auth-form .auth-card .address-help { font-size: 12px; line-height: 1.6; color: #61686a; }
body.bz-auth-form .auth-card .address-warning {
  background: #f5efdf; border-left: 3px solid #be9229; border-radius: 3px;
  color: #705720; font-size: 12px; line-height: 1.55; padding: 11px 12px;
  margin: 10px 0 17px;
}

@media(max-width: 600px) {
  body.bz-auth-form .signup-page { padding: 20px 14px 30px; }
  body.bz-auth-form .auth-card { padding: 25px 19px 26px; border-radius: 7px; }
  body.bz-auth-form .auth-card h1 { font-size: 32px; }
  body.bz-auth-form .auth-card .auth-subtitle { font-size: 13px; }
  body.bz-auth-form .auth-card .address-editor { padding: 12px; }
}
@media(max-width: 350px) {
  body.bz-auth-form .auth-card { padding-inline: 15px; }
}
