/* VividDigital – WooCommerce logged-out account experience. */
body.vividdigital-account-auth .sc-entry__header,
body.vividdigital-account-auth .woocommerce-account h1.entry-title,
body.vividdigital-account-auth .woocommerce-account .entry-content > h2 {
  display: none !important;
}

body.vividdigital-account-auth .sc-content__inner {
  width: min(100% - 2.5rem, 1240px);
  max-width: 1240px;
  padding-block: clamp(1.5rem, 4vw, 3.25rem);
}

body.vividdigital-account-auth .woocommerce {
  width: 100%;
  color: var(--sc-color-text, #17213b);
}

body.vividdigital-account-auth .sc-auth-layout {
  display: grid;
  grid-template-columns: minmax(250px, .78fr) minmax(0, 1.55fr);
  align-items: stretch;
  gap: clamp(1rem, 2.4vw, 2rem);
  width: 100%;
}

body.vividdigital-account-auth .sc-auth-promo {
  position: relative;
  display: flex;
  min-height: 540px;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 1.35rem;
  background: linear-gradient(145deg, #142b58 0%, #293b88 48%, #7144c6 100%);
  color: #fff;
  isolation: isolate;
}

.sc-auth-promo__icon {
  display: grid;
  width: 3.7rem;
  height: 3.7rem;
  place-items: center;
  margin-bottom: 1.6rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 1rem;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 1.55rem;
}

.sc-auth-promo__eyebrow {
  margin: 0 0 .65rem;
  color: rgba(255,255,255,.72);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.sc-auth-promo h2 {
  max-width: 15ch;
  margin: 0 0 .85rem;
  color: #fff;
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.12;
}

.sc-auth-promo__intro {
  max-width: 34ch;
  margin: 0 0 1.6rem;
  color: rgba(255,255,255,.86);
  font-size: .98rem;
  line-height: 1.7;
}

.sc-auth-benefits {
  display: grid;
  gap: .8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc-auth-benefits li {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: rgba(255,255,255,.96);
  font-size: .9rem;
  font-weight: 600;
}

.sc-auth-benefits li i {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 2.45rem;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: .75rem;
  background: rgba(255,255,255,.13);
  color: #fff;
}

.sc-auth-promo__art {
  position: relative;
  display: flex;
  min-height: 115px;
  flex: 1 0 115px;
  align-items: flex-end;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.25rem;
  color: rgba(255,255,255,.9);
  font-size: clamp(2.3rem, 4vw, 3.5rem);
}

.sc-auth-promo__art > i {
  position: relative;
  z-index: 1;
  display: grid;
  width: 4.1rem;
  height: 4.1rem;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 1.2rem;
  background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.07));
  box-shadow: 0 1rem 2rem rgba(10,15,50,.2);
}

.sc-auth-promo__art > i:nth-of-type(2) { transform: translateY(-.7rem); color: #ffd4c4; }
.sc-auth-promo__art > i:nth-of-type(3) { width: 2.8rem; height: 2.8rem; align-self: center; color: #f8d987; font-size: 1.25rem; }
.sc-auth-orbit { position: absolute; z-index: 0; width: 9rem; height: 9rem; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.sc-auth-orbit--one { left: 8%; bottom: -3rem; }
.sc-auth-orbit--two { right: 7%; bottom: -4.5rem; width: 12rem; height: 12rem; }

body.vividdigital-account-auth .sc-auth-layout > .u-columns {
  min-width: 0;
  margin: 0;
  padding: clamp(1.5rem, 3.4vw, 3rem);
  border: 1px solid var(--sc-color-border, #e2e5ef);
  border-radius: 1.35rem;
  background: var(--sc-color-surface, #fff);
  box-shadow: 0 1.2rem 3rem rgba(25, 30, 60, .07);
}

body.vividdigital-account-auth .u-columns::before,
body.vividdigital-account-auth .u-columns::after { display: none !important; content: none !important; }
body.vividdigital-account-auth .u-columns .u-column1,
body.vividdigital-account-auth .u-columns .u-column2 { float: none; width: 100%; min-width: 0; margin: 0; }
body.vividdigital-account-auth .u-columns .u-column1 > h2 { display: none !important; }
body.vividdigital-account-auth form.login,
body.vividdigital-account-auth form.register {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sc-auth-form-heading { margin: 0 0 1.75rem; }
.sc-auth-form-heading h2 {
  margin: 0 0 .45rem;
  color: #14264d;
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.2;
}
.sc-auth-form-heading p { margin: 0; color: var(--sc-color-muted, #69738a); font-size: .98rem; line-height: 1.6; }

body.vividdigital-account-auth form.login .form-row,
body.vividdigital-account-auth form.register .form-row { margin: 0 0 1.2rem; padding: 0; }
body.vividdigital-account-auth form.login .form-row label,
body.vividdigital-account-auth form.register .form-row label { display: block; margin: 0 0 .5rem; color: #17213b; font-size: .9rem; font-weight: 700; }
body.vividdigital-account-auth form.login .form-row input.input-text,
body.vividdigital-account-auth form.register .form-row input.input-text {
  width: 100%;
  min-height: 3.25rem;
  padding: .75rem 1rem;
  border: 1px solid #dfe3ef;
  border-radius: .8rem;
  background: #f7f8fc;
  color: #17213b;
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
body.vividdigital-account-auth form.login .form-row input.input-text:focus,
body.vividdigital-account-auth form.register .form-row input.input-text:focus {
  border-color: #6550e8;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(101,80,232,.12);
  outline: 0;
}
body.vividdigital-account-auth .password-input { display: block; width: 100%; }
body.vividdigital-account-auth .show-password-input { top: 50%; transform: translateY(-50%); }
body.vividdigital-account-auth .woocommerce-form-login__rememberme {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .55rem;
  color: #38435e;
  font-size: .9rem;
  font-weight: 600;
}
body.vividdigital-account-auth .woocommerce-form-login__rememberme input { width: 1.05rem; height: 1.05rem; accent-color: #5549e8; }
body.vividdigital-account-auth .woocommerce-form-login__submit,
body.vividdigital-account-auth .woocommerce-form-register__submit,
body.vividdigital-account-auth .woocommerce-Button {
  min-height: 3.35rem;
  padding: .8rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, #4055e9, #7938df);
  color: #fff;
  font-size: .98rem;
  font-weight: 750;
  box-shadow: 0 .55rem 1.2rem rgba(87,70,220,.2);
  transition: transform .18s ease, box-shadow .18s ease;
}
body.vividdigital-account-auth .woocommerce-form-login__submit:hover,
body.vividdigital-account-auth .woocommerce-form-register__submit:hover,
body.vividdigital-account-auth .woocommerce-Button:hover { transform: translateY(-1px); box-shadow: 0 .8rem 1.5rem rgba(87,70,220,.27); }
body.vividdigital-account-auth .woocommerce-LostPassword { margin: .7rem 0 0; }
body.vividdigital-account-auth .woocommerce-LostPassword a { color: #5149dc; font-weight: 650; text-decoration: none; }
body.vividdigital-account-auth .woocommerce-LostPassword a:hover { text-decoration: underline; }
body.vividdigital-account-auth .woocommerce-error,
body.vividdigital-account-auth .woocommerce-info,
body.vividdigital-account-auth .woocommerce-message { margin: 0 0 1.25rem; border-radius: .8rem; }

.sc-auth-social { grid-column: 2; min-width: 0; padding: 0 clamp(1.5rem, 3.4vw, 3rem); }
.sc-auth-divider { display: flex; align-items: center; gap: 1rem; margin: .25rem 0 1rem; color: #7a8298; font-size: .85rem; }
.sc-auth-divider::before,.sc-auth-divider::after { height: 1px; flex: 1; background: #e5e7ef; content: ''; }
.sc-auth-register-prompt { grid-column: 2; margin: -.25rem 0 0; padding: 0 clamp(1.5rem, 3.4vw, 3rem) 1.25rem; color: #737b91; text-align: center; }
.sc-auth-register-prompt a { color: #5149dc; font-weight: 750; text-decoration: underline; text-underline-offset: .15em; }

/* Registration remains native WooCommerce and gets a balanced two-column form layout. */
@media (min-width: 1100px) {
  body.vividdigital-account-auth .u-columns:has(> .u-column2) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (max-width: 1099px) {
  body.vividdigital-account-auth .sc-auth-layout { grid-template-columns: minmax(0, 1fr); }
  body.vividdigital-account-auth .sc-auth-promo { min-height: 0; }
  .sc-auth-promo__art { min-height: 70px; flex-basis: 70px; }
  .sc-auth-social,.sc-auth-register-prompt { grid-column: 1; }
}
@media (max-width: 600px) {
  body.vividdigital-account-auth .sc-content__inner { width: min(100% - 1.25rem, 1240px); padding-block: 1.25rem 2rem; }
  body.vividdigital-account-auth .sc-auth-promo { padding: 1.35rem; border-radius: 1rem; }
  body.vividdigital-account-auth .sc-auth-promo__icon { width: 3rem; height: 3rem; margin-bottom: 1rem; }
  body.vividdigital-account-auth .sc-auth-promo h2 { font-size: 1.65rem; }
  body.vividdigital-account-auth .sc-auth-layout > .u-columns { padding: 1.25rem; border-radius: 1rem; }
  .sc-auth-form-heading h2 { font-size: 1.55rem; }
  .sc-auth-social,.sc-auth-register-prompt { padding-inline: 1.25rem; }
  body.vividdigital-account-auth .woocommerce-form-login__submit { width: 100%; margin: .5rem 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  body.vividdigital-account-auth * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* 1.6.5 layout correction: scope layout directly to its component so it remains
   reliable even when WordPress evaluates body classes before the account query. */
body.woocommerce-account:not(.logged-in) .sc-entry__header,
body.woocommerce-account:not(.logged-in) .sc-entry__title,
body.woocommerce-account:not(.logged-in) h1.entry-title,
body.woocommerce-account:not(.logged-in) .woocommerce > h2,
body.woocommerce-account:not(.logged-in) .woocommerce .u-columns > .u-column1 > h2,
body.woocommerce-account:not(.logged-in) .woocommerce .u-columns > .u-column2 > h2 {
  display: none !important;
}

.sc-auth-layout {
  display: grid !important;
  grid-template-columns: minmax(270px, .72fr) minmax(0, 1.28fr);
  grid-template-rows: auto auto auto;
  align-items: stretch;
  column-gap: clamp(1rem, 2.4vw, 2rem);
  row-gap: 1rem;
  width: 100%;
  max-width: 100%;
}
.sc-auth-layout > .sc-auth-promo {
  grid-column: 1;
  grid-row: 1 / span 3;
  min-width: 0;
  height: 100%;
  min-height: 540px;
  margin: 0;
}
.sc-auth-layout > .u-columns {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0 !important;
}
.sc-auth-layout > .sc-auth-social {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}
.sc-auth-layout > .sc-auth-register-prompt {
  grid-column: 2;
  grid-row: 3;
  min-width: 0;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem) 1.25rem;
}
.sc-auth-layout .u-columns > .u-column1,
.sc-auth-layout .u-columns > .u-column2 {
  min-width: 0;
}
.sc-auth-layout .u-columns > .u-column1 > h2,
.sc-auth-layout .u-columns > .u-column2 > h2 {
  display: none !important;
}

@media (max-width: 1099px) {
  .sc-auth-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
  }
  .sc-auth-layout > .sc-auth-promo {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    height: auto;
  }
  .sc-auth-layout > .u-columns {
    grid-column: 1;
    grid-row: 2;
  }
  .sc-auth-layout > .sc-auth-social {
    grid-column: 1;
    grid-row: 3;
  }
  .sc-auth-layout > .sc-auth-register-prompt {
    grid-column: 1;
    grid-row: 4;
  }
}
@media (max-width: 600px) {
  .sc-auth-layout { row-gap: .85rem; }
  .sc-auth-layout > .sc-auth-promo { padding: 1.25rem; }
  .sc-auth-layout > .u-columns { padding: 1.15rem; }
}
/* Fallback tied to the auth component itself, independent of body-class timing. */
.sc-entry:has(.sc-auth-layout) > .sc-entry__header,
.sc-entry:has(.sc-auth-layout) > .sc-entry__title {
  display: none !important;
}
