/* =============================================================================
 * DreamyAuth26 — Light Auth Card
 * Centered card on a clean warm-white page background, matching the site.
 * Scoped to body.dreamyaccount26-is-auth
 * ========================================================================== */

body.dreamyaccount26-is-auth {
  /* Inherit site tokens */
  --auth-bg: var(--bg-canvas, #f7f5f2);
  --auth-card: #ffffff;
  --auth-ink: var(--ink-primary, #050505);
  --auth-muted: var(--ink-secondary, #757575);
  --auth-border: rgba(0, 0, 0, 0.10);
  --auth-border-focus: rgba(0, 0, 0, 0.32);
  --auth-ui: var(--font-ui, 'Inter', system-ui, sans-serif);
  --auth-edit: var(--font-edit, 'Cormorant Garamond', Georgia, serif);
  background: var(--auth-bg);
}

/* ── Reset WC & MyAccount containers ─────────────────────────────────────── */
body.dreamyaccount26-is-auth .woocommerce,
body.dreamyaccount26-is-auth .woocommerce-page {
  max-width: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
}

body.dreamyaccount26-is-auth .woocommerce-MyAccount-wrap {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

body.dreamyaccount26-is-auth .woocommerce-MyAccount-navigation {
  display: none !important;
}

body.dreamyaccount26-is-auth .woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
}

body.dreamyaccount26-is-auth .woocommerce {
  padding: 0 !important;
  margin: 0 !important;
}

/* ── WC notices ──────────────────────────────────────────────────────────── */
body.dreamyaccount26-is-auth .woocommerce-notices-wrapper,
body.dreamyaccount26-is-auth .woocommerce-error,
body.dreamyaccount26-is-auth .woocommerce-message,
body.dreamyaccount26-is-auth .woocommerce-info {
  max-width: 480px;
  margin: 0 auto 12px;
  border-radius: 12px;
  font-size: 0.86rem;
  list-style: none;
}

/* =============================================================================
 * PAGE SCAFFOLD
 * Full viewport, centred card
 * ========================================================================== */
body.dreamyaccount26-is-auth .dreamyauth26-page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 60px;
}

/* Optional background image at very low opacity */
body.dreamyaccount26-is-auth .dreamyauth26-bgImage {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.18;
  /* visible but not dominant on light bg */
}

/* Light radial vignette (brightens edges) */
body.dreamyaccount26-is-auth .dreamyauth26-page::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.55) 0%, transparent 70%);
  pointer-events: none;
}

/* =============================================================================
 * CARD
 * ========================================================================== */
body.dreamyaccount26-is-auth .dreamyauth26-card {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 440px;
  background: var(--auth-card);
  border: 1px solid var(--auth-border);
  border-radius: 20px;
  padding: 44px 40px 40px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 12px 40px rgba(0, 0, 0, 0.07);
}

@media (max-width: 500px) {
  body.dreamyaccount26-is-auth .dreamyauth26-card {
    padding: 36px 24px 32px;
    border-radius: 16px;
  }
}

/* ── Brand ────────────────────────────────────────────────────────────────── */
body.dreamyaccount26-is-auth .dreamyauth26-brand {
  text-align: center;
  margin-bottom: 32px;
}

body.dreamyaccount26-is-auth .dreamyauth26-brand a {
  display: inline-block;
  text-decoration: none;
}

/* Logo stays its natural colours on a light background */
body.dreamyaccount26-is-auth .dreamyauth26-brand .custom-logo {
  max-height: 40px;
  width: auto;
}

body.dreamyaccount26-is-auth .dreamyauth26-brandWordmark {
  font-family: var(--auth-edit);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--auth-ink);
  letter-spacing: -0.01em;
}

/* =============================================================================
 * TAB SWITCHER
 * ========================================================================== */
body.dreamyaccount26-is-auth .dreamyauth26-tabs {
  display: flex;
  border-bottom: 1px solid var(--auth-border);
  margin-bottom: 28px;
}

body.dreamyaccount26-is-auth .dreamyauth26-tabBtn {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0 0 13px;
  margin-right: 24px;
  font-family: var(--auth-ui);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--auth-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1;
  white-space: nowrap;
}

body.dreamyaccount26-is-auth .dreamyauth26-tabBtn[aria-selected="true"] {
  color: var(--auth-ink);
  border-bottom-color: var(--auth-ink);
}

@media (hover: hover) {
  body.dreamyaccount26-is-auth .dreamyauth26-tabBtn:not([aria-selected="true"]):hover {
    color: var(--auth-ink);
  }
}

body.dreamyaccount26-is-auth .dreamyauth26-tabPanel[hidden] {
  display: none;
}

/* =============================================================================
 * FORM FIELDS — bottom-border underline style
 * ========================================================================== */
body.dreamyaccount26-is-auth .woocommerce form.login,
body.dreamyaccount26-is-auth .woocommerce form.register {
  border: none;
  padding: 0;
  margin: 0;
}

body.dreamyaccount26-is-auth .woocommerce-form-row,
body.dreamyaccount26-is-auth .form-row {
  padding: 0;
  margin: 0 0 22px;
}

body.dreamyaccount26-is-auth .dreamyauth26-tabPanel label {
  font-family: var(--auth-ui);
  font-size: 0.62rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--auth-muted);
  display: block;
  margin-bottom: 8px;
}

body.dreamyaccount26-is-auth .dreamyauth26-tabPanel input[type="text"],
body.dreamyaccount26-is-auth .dreamyauth26-tabPanel input[type="email"],
body.dreamyaccount26-is-auth .dreamyauth26-tabPanel input[type="password"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--auth-border);
  border-radius: 0;
  padding: 8px 0 10px;
  color: var(--auth-ink);
  font-family: var(--auth-ui);
  font-size: 0.96rem;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
  caret-color: var(--auth-ink);
}

body.dreamyaccount26-is-auth .dreamyauth26-tabPanel input::placeholder {
  color: rgba(0, 0, 0, 0.22);
}

body.dreamyaccount26-is-auth .dreamyauth26-tabPanel input[type="text"]:focus,
body.dreamyaccount26-is-auth .dreamyauth26-tabPanel input[type="email"]:focus,
body.dreamyaccount26-is-auth .dreamyauth26-tabPanel input[type="password"]:focus {
  border-bottom-color: var(--auth-border-focus);
}

/* ── WC native password show/hide button (.show-password-input) ─────────── */
body.dreamyaccount26-is-auth .dreamyauth26-inputWrap,
body.dreamyaccount26-is-auth .password-input {
  position: relative;
  display: block;
}

body.dreamyaccount26-is-auth .dreamyauth26-inputWrap input,
body.dreamyaccount26-is-auth .password-input input {
  padding-right: 36px;
}

/* Style WC's injected button to match our design */
body.dreamyaccount26-is-auth .show-password-input {
  position: absolute !important;
  right: 0 !important;
  bottom: 9px !important;
  top: auto !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  color: var(--auth-muted) !important;
  padding: 0 !important;
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.14s !important;
  /* WC uses a background-image eye icon via CSS; allow it */
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 16px 16px !important;
  /* Override WC's default color that may clash */
  filter: opacity(0.45);
}

body.dreamyaccount26-is-auth .show-password-input:hover {
  filter: opacity(0.8);
}

body.dreamyaccount26-is-auth .show-password-input.display-password {
  filter: opacity(0.72);
}

/* ── Inline field error ───────────────────────────────────────────────────── */
body.dreamyaccount26-is-auth .dreamyauth26-fieldError {
  display: block;
  font-family: var(--auth-ui);
  font-size: 0.74rem;
  color: #b00020;
  margin-top: 5px;
  min-height: 1em;
}

/* ── Remember / Forgot row ────────────────────────────────────────────────── */
body.dreamyaccount26-is-auth .dreamyauth26-rememberRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

body.dreamyaccount26-is-auth .dreamyauth26-remember {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--auth-ui);
  font-size: 0.80rem;
  color: var(--auth-muted);
  cursor: pointer;
}

body.dreamyaccount26-is-auth .dreamyauth26-forgotLink {
  font-family: var(--auth-ui);
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--auth-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  padding-bottom: 1px;
  transition: color 0.14s, border-color 0.14s;
}

body.dreamyaccount26-is-auth .dreamyauth26-forgotLink:hover {
  color: var(--auth-ink);
  border-bottom-color: rgba(0, 0, 0, 0.42);
}

/* ── Password note ────────────────────────────────────────────────────────── */
body.dreamyaccount26-is-auth .dreamyauth26-passwordNote {
  font-family: var(--auth-ui);
  font-size: 0.80rem;
  color: var(--auth-muted);
  margin: 0 0 4px;
  line-height: 1.5;
}

/* =============================================================================
 * PASSWORD STRENGTH METER
 * ========================================================================== */
body.dreamyaccount26-is-auth .dreamyauth26-strengthWrap {
  margin-top: 10px;
}

body.dreamyaccount26-is-auth .dreamyauth26-strengthBar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

body.dreamyaccount26-is-auth .dreamyauth26-strengthSeg {
  height: 2px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.08);
  transition: background 0.22s;
}

body.dreamyaccount26-is-auth .dreamyauth26-strengthBar[data-score="1"] .dreamyauth26-strengthSeg:nth-child(1) {
  background: #d32f2f;
}

body.dreamyaccount26-is-auth .dreamyauth26-strengthBar[data-score="2"] .dreamyauth26-strengthSeg:nth-child(-n+2) {
  background: #f57c00;
}

body.dreamyaccount26-is-auth .dreamyauth26-strengthBar[data-score="3"] .dreamyauth26-strengthSeg:nth-child(-n+3) {
  background: #fbc02d;
}

body.dreamyaccount26-is-auth .dreamyauth26-strengthBar[data-score="4"] .dreamyauth26-strengthSeg {
  background: #388e3c;
}

body.dreamyaccount26-is-auth .dreamyauth26-strengthLabel {
  display: block;
  font-family: var(--auth-ui);
  font-size: 0.70rem;
  color: var(--auth-muted);
  margin-top: 5px;
}

/* =============================================================================
 * PRIMARY BUTTON — black pill (matches site CTA style)
 * ========================================================================== */
body.dreamyaccount26-is-auth .dreamyauth26-tabPanel .woocommerce-button.button,
body.dreamyaccount26-is-auth .dreamyauth26-btnPrimary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 20px;
  margin-top: 26px;
  background: var(--auth-ink);
  color: #fff;
  border: 1px solid var(--auth-ink);
  border-radius: 999px;
  font-family: var(--auth-ui);
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  box-sizing: border-box;
}

@media (hover: hover) {

  body.dreamyaccount26-is-auth .dreamyauth26-tabPanel .woocommerce-button.button:hover,
  body.dreamyaccount26-is-auth .dreamyauth26-btnPrimary:hover {
    opacity: 0.86;
    transform: translateY(-1px);
  }
}

/* =============================================================================
 * "OR" DIVIDER
 * ========================================================================== */
body.dreamyaccount26-is-auth .dreamyauth26-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 0;
  font-family: var(--auth-ui);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--auth-muted);
}

body.dreamyaccount26-is-auth .dreamyauth26-divider::before,
body.dreamyaccount26-is-auth .dreamyauth26-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--auth-border);
}

/* =============================================================================
 * GOOGLE BUTTON OVERRIDE — light surface
 * ========================================================================== */
body.dreamyaccount26-is-auth .dreamy-google-login-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  width: 100%;
  padding: 14px 20px !important;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
  background: #fff !important;
  color: var(--auth-ink) !important;
  border: 1px solid var(--auth-border) !important;
  border-radius: 999px !important;
  font-family: var(--auth-ui) !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

body.dreamyaccount26-is-auth .dreamy-google-login-btn svg {
  width: 16px !important;
  height: 16px !important;
  margin-right: 0 !important;
  flex-shrink: 0;
}

@media (hover: hover) {
  body.dreamyaccount26-is-auth .dreamy-google-login-btn:hover {
    border-color: rgba(0, 0, 0, 0.22) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    background: #fafafa !important;
  }
}

/* =============================================================================
 * FOOTER LABEL (below card)
 * ========================================================================== */
body.dreamyaccount26-is-auth .dreamyauth26-footer {
  position: relative;
  z-index: 5;
  margin-top: 24px;
  text-align: center;
  font-family: var(--auth-ui);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(0, 0, 0, 0.24);
}

/* WC privacy policy notice in the register form — keep it tiny */
body.dreamyaccount26-is-auth .woocommerce-privacy-policy-text,
body.dreamyaccount26-is-auth .woocommerce-privacy-policy-text p {
  font-size: 0.68rem !important;
  color: var(--auth-muted) !important;
  line-height: 1.5;
  margin: 12px 0 0 !important;
}

body.dreamyaccount26-is-auth .woocommerce-privacy-policy-text a {
  color: var(--auth-muted);
  text-decoration: underline;
}