/* =====================================================================
   Apex Helix Labs — Login/Register Redesign
   Split brand panel + tabbed card, laid over WooCommerce's real
   my-account/form-login.php markup. Form fields/nonces are untouched -
   this only repositions and restyles the existing DOM (JS moves the
   real .u-column1/.u-column2 nodes into a tabbed card; see login-redesign.js).
   ===================================================================== */

:root{
  --ahlr-bg-deep:      #060d18;
  --ahlr-bg-card:      #101f34;
  --ahlr-bg-input:     #0d1a2c;
  --ahlr-line:         #1c2f48;
  --ahlr-blue:         #3b82f6;
  --ahlr-blue-bright:  #5aa3ff;
  --ahlr-text:         #eaf1fb;
  --ahlr-text-dim:     #7e91ac;
  --ahlr-amber:        #f2a93b;
}

/* ---- Outer shell: brand panel + form panel side by side ----
   Built by JS (see login-redesign.js), which wraps the brand panel and
   the #customer_login form panel into this element directly - avoids
   relying on assumptions about what the theme/Elementor wraps around
   WooCommerce's shortcode output. */
.ahlr-shell {
  max-width: 1280px;
  margin: 6vh auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: stretch;
  border: 1px solid var(--ahlr-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--ahlr-bg-deep);
}

.ahlr-shell > * {
  min-width: 0;
}

@media (max-width: 880px) {
  .ahlr-shell {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 40px auto;
  }
  .ahlr-brand-panel { display: none !important; }
}

/* ---- Brand panel (left) ---- */
.ahlr-brand-panel {
  position: relative;
  overflow: hidden;
  padding: 56px 48px;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  border-right: 1px solid var(--ahlr-line);
  background:
    radial-gradient(circle at 15% 20%, rgba(59,130,246,0.16), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(59,130,246,0.10), transparent 50%),
    linear-gradient(180deg, #08111f 0%, #0a1626 100%);
}

.ahlr-helix-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.ahlr-brand-mark {
  position: relative;
  z-index: 2;
}
.ahlr-logo-img {
  max-width: 220px;
  height: auto;
  display: block;
}

.ahlr-brand-copy {
  position: relative;
  z-index: 2;
  max-width: 380px;
}
.ahlr-eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--ahlr-blue-bright);
  font-weight: 600;
  margin-bottom: 18px;
}
.ahlr-brand-copy h1 {
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--ahlr-text);
  margin: 0;
}
.ahlr-brand-copy h1 .ahlr-accent { color: var(--ahlr-blue-bright); }
.ahlr-brand-copy p {
  margin-top: 16px;
  color: var(--ahlr-text-dim);
  font-size: 14px;
  line-height: 1.7;
}

/* ---- Compliance notice ---- */
.ahlr-compliance-notice {
  margin-top: 26px;
  padding: 20px 20px 18px;
  border: 1px solid rgba(239,68,68,0.35);
  border-left: 3px solid #ef4444;
  border-radius: 10px;
  background: rgba(239,68,68,0.05);
  max-width: 400px;
}
.ahlr-compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: 20px;
  color: #f87171;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.ahlr-compliance-notice p {
  margin-top: 10px;
  color: var(--ahlr-text-dim);
  font-size: 11.5px;
  line-height: 1.65;
}
.ahlr-compliance-notice p:first-of-type { margin-top: 0; }
.ahlr-compliance-strong {
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px solid var(--ahlr-line);
  color: var(--ahlr-text) !important;
  font-weight: 600;
  font-size: 12px !important;
}

/* ---- Hide header/nav/footer for a distraction-free auth screen ----
   This CSS file only loads on the My Account page while logged out
   (see wp_enqueue_scripts condition in the main plugin file), so this
   never affects the header/footer anywhere else on the site, including
   the logged-in My Account dashboard. */
body.woocommerce-account header,
body.woocommerce-account .site-header,
body.woocommerce-account #masthead,
body.woocommerce-account .elementor-location-header,
body.woocommerce-account > nav,
body.woocommerce-account footer,
body.woocommerce-account .site-footer,
body.woocommerce-account #colophon,
body.woocommerce-account .elementor-location-footer {
  display: none !important;
}

body.woocommerce-account {
  background: var(--ahlr-bg-deep) !important;
  min-height: 100vh;
}

/* ---- Form panel (right) - #customer_login becomes the centering wrapper ---- */
.woocommerce-account #customer_login.ahlr-form-panel {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 56px 48px !important;
  background: var(--ahlr-bg-deep);
  width: auto !important;
  float: none !important;
}

.ahlr-card {
  width: 100%;
  max-width: 460px;
}

/* Tab bar (JS-injected) */
.ahlr-tabs {
  display: flex !important;
  background: var(--ahlr-bg-card);
  border: 1px solid var(--ahlr-line) !important;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 26px;
}
.ahlr-tab-btn {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--ahlr-text-dim) !important;
  font-weight: 600;
  font-size: 13.5px;
  padding: 11px 0;
  border-radius: 7px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.ahlr-tab-btn.active {
  background: linear-gradient(135deg, var(--ahlr-blue-bright), var(--ahlr-blue)) !important;
  color: #03101f !important;
}
.ahlr-tab-btn:not(.active):hover { color: var(--ahlr-text) !important; }
.ahlr-tab-btn:focus,
.ahlr-tab-btn:focus-visible {
  outline: 2px solid var(--ahlr-blue-bright);
  outline-offset: 2px;
  border: none !important;
}

/* Hide WooCommerce's default "Login"/"Register" headings - the tabs replace them */
.woocommerce-account #customer_login h2 {
  display: none;
}

/* The two form columns become tab views, one visible at a time */
.woocommerce-account #customer_login .u-column1.col-1,
.woocommerce-account #customer_login .u-column2.col-2 {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  display: none;
}
.woocommerce-account #customer_login .u-column1.col-1.ahlr-active,
.woocommerce-account #customer_login .u-column2.col-2.ahlr-active {
  display: block;
}

/* Strip the theme's own default form styling (border/padding/width)
   so the form fills the card instead of sitting in a narrower nested box */
.woocommerce-account #customer_login form.woocommerce-form {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

/* Form rows / labels */
.woocommerce-account #customer_login .form-row { margin-bottom: 18px; }

.woocommerce-account #customer_login label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ahlr-text-dim) !important;
  margin-bottom: 7px;
}
.woocommerce-account #customer_login label .required {
  display: inline !important;
  color: var(--ahlr-blue-bright) !important;
  margin-left: 2px;
}

/* Inputs */
.woocommerce-account #customer_login input.input-text,
.woocommerce-account #customer_login input[type="text"],
.woocommerce-account #customer_login input[type="email"],
.woocommerce-account #customer_login input[type="password"] {
  width: 100%;
  background: var(--ahlr-bg-input);
  border: 1px solid var(--ahlr-line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ahlr-text);
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.woocommerce-account #customer_login input.input-text:focus,
.woocommerce-account #customer_login input[type="password"]:focus {
  outline: none;
  border-color: var(--ahlr-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
}
.woocommerce-account #customer_login .password-input { position: relative; display: block; }
.woocommerce-account #customer_login .show-password-input { top: 50%; transform: translateY(-50%); }

/* Remember me */
.woocommerce-account #customer_login .woocommerce-form-login__rememberme,
.woocommerce-account #customer_login .woocommerce-form-login__rememberme span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ahlr-text-dim) !important;
  font-weight: 400;
  margin-bottom: 0;
}
.woocommerce-account #customer_login .woocommerce-form__input-checkbox {
  accent-color: var(--ahlr-blue);
  width: 15px; height: 15px;
}

/* Buttons */
.woocommerce-account #customer_login button.woocommerce-button,
.woocommerce-account #customer_login button[type="submit"] {
  width: 100%;
  background: linear-gradient(135deg, var(--ahlr-blue-bright), var(--ahlr-blue));
  border: none;
  color: #03101f;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 0;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(59,130,246,0.55);
  transition: transform .15s ease, box-shadow .15s ease;
}
.woocommerce-account #customer_login button.woocommerce-button:hover,
.woocommerce-account #customer_login button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -6px rgba(59,130,246,0.65);
  color: #03101f;
}

/* Links */
.woocommerce-account #customer_login .woocommerce-LostPassword a,
.woocommerce-account #customer_login a {
  color: var(--ahlr-blue-bright) !important;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
}
.woocommerce-account #customer_login a:hover { text-decoration: underline; }

/* Privacy policy text under Register */
.woocommerce-account #customer_login .woocommerce-privacy-policy-text {
  font-size: 11.5px;
  color: #5c6f8a !important;
  line-height: 1.6;
  margin: 16px 0 22px 0;
}
.woocommerce-account #customer_login .woocommerce-privacy-policy-text a {
  color: #8fb4ea !important;
}

@media (max-width: 880px) {
  .woocommerce-account #customer_login.ahlr-form-panel { padding: 40px 24px; }
}
