/* Native unified authentication: retain EasyStore's fields, tabs and app integrations. */
.fs-auth--native .customer.fs-auth__panel { min-width:0; text-align:left; }
.fs-auth--native .customer>.card { padding:0; margin:0; background:transparent; border:0; box-shadow:none; text-align:left; }
.fs-auth--native .customer h1,
.fs-auth--native .customer h2 {
  margin:0 0 14px !important;
  font-family: var(--font-heading-family, Chronica, sans-serif);
  font-size: clamp(24px, 2.3vw, 30px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: #493022;
  text-align: left;
}
.fs-auth--native .customer p.h3,
.fs-auth--native .customer p:not(.fs-auth__eyebrow):not(.fs-auth__profile-kicker) {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 16px;
  color: #745546;
  text-align: left;
}
.fs-auth--native .fs-auth__eyebrow {
  margin: 0 0 14px;
  color: #a26b58;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-align: left;
  text-transform: uppercase;
}

/* User identity cohesive profile header (avatar + customer name + switch link) */
.fs-auth--native .fs-auth__profile {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 14px !important;
  margin: 0 0 22px !important;
  padding: 14px 16px !important;
  background: #eee5db !important;
  border: 1px solid #e3d4c7 !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
}
.fs-auth--native .fs-auth__profile-left {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  min-width: 0 !important;
}
.fs-auth--native .fs-auth__profile-avatar {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: #493022 !important;
  color: #fffaf5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body-family, Chronica, sans-serif) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: .04em !important;
  box-shadow: none !important;
}
.fs-auth--native .fs-auth__profile-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
}
.fs-auth--native .fs-auth__profile-kicker {
  font-size: 9.5px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: .1em !important;
  color: #a26b58 !important;
  line-height: 1.1 !important;
  margin: 0 !important;
}
.fs-auth--native .fs-auth__profile-name {
  font-family: var(--font-heading-family, Chronica, sans-serif) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #2c1810 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.fs-auth--native .fs-auth__profile-switch {
  font-size: 12px !important;
  color: #d70104 !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(161, 23, 20, 0.25) !important;
  background: #fffaf5 !important;
  transition: all .15s ease !important;
  flex-shrink: 0 !important;
}
.fs-auth--native .fs-auth__profile-switch:hover {
  background: #d70104 !important;
  color: #fffaf5 !important;
  border-color: #d70104 !important;
}

/* Hide profile header if password recovery target is active */
.fs-auth--native #recover:target ~ .fs-auth__profile {
  display: none !important;
}

/* Fallback avatar styling (if JS profile header is bypassed) */
.fs-auth--native .avatar,
.fs-auth--native .avatar-img,
.fs-auth--native [class*="avatar"]:not(.fs-auth__profile-avatar) {
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  background: #493022 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  margin: 0 0 12px 0 !important;
}

/* User identity badge (e.g. email/phone display on password screen) */
.fs-auth--native .customer .account-identity,
.fs-auth--native .customer .customer-email-badge,
.fs-auth--native .customer .identity-wrapper,
.fs-auth--native .customer [class*="identity"]:not(.fs-auth__profile) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #eee5db;
  border-radius: 6px;
  font-size: 13px;
  color: #493022;
  margin-bottom: 18px;
}
.fs-auth--native .customer .account-identity a,
.fs-auth--native .customer [class*="identity"] a {
  color: #d70104;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

/* Tab controls */
.fs-auth--native .tab-wrapper { display:grid; grid-template-columns:1fr 1fr; width:100%; gap:4px; padding:4px; margin:0 0 22px; border-radius:7px; background:#eee5db; box-sizing:border-box; }
.fs-auth--native .tab-wrapper>div { min-width:0; }
.fs-auth--native .tab-wrapper .tab-label { display:flex; align-items:center; justify-content:center; width:100%; min-width:0; min-height:40px; padding:10px 16px; border-radius:5px; box-sizing:border-box; font-size:13px; font-weight:500; color:#745546; }
.fs-auth--native .tab-wrapper input[type=radio]:checked+.tab-label { background:#fffaf5; color:#d70104; box-shadow:0 1px 4px #49302212; }

/* Forms & Fields - APPLIES TO ALL FORMS (email, password, OTP, recover) */
.fs-auth--native form { margin: 0; width: 100%; }
.fs-auth--native .field {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  background: transparent !important;
  position: relative !important;
}
.fs-auth--native .field::before,
.fs-auth--native .field::after { display: none !important; }

/* Labels */
.fs-auth--native .field > label,
.fs-auth--native form label:not(.tab-label) {
  display: block !important;
  position: static !important;
  order: -1 !important;
  transform: none !important;
  margin: 0 0 7px !important;
  padding: 0 !important;
  color: #745546 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  opacity: 1 !important;
  text-align: left !important;
}

/* All text/password/email inputs across ALL forms */
.fs-auth--native form input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]),
.fs-auth--native form .field__input,
.fs-auth--native form input[type=password],
.fs-auth--native form input[type=text],
.fs-auth--native form input[type=email],
.fs-auth--native form input[type=tel] {
  width: 100% !important;
  border-radius: 6px !important;
  min-height: 46px !important;
  height: 46px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  font-family: var(--font-body-family, Chronica, sans-serif) !important;
  background: #f3ede5 !important;
  border: 1px solid #e3d4c7 !important;
  color: #493022 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  transition: border-color .15s ease, background-color .15s ease;
}
.fs-auth--native form input:focus {
  border-color: #d70104 !important;
  background: #fffaf5 !important;
  outline: none !important;
}
.fs-auth--native form input::placeholder {
  font-size: 13px !important;
  color: #9a7a66 !important;
  opacity: 1 !important;
}

/* Password field wrapper & visibility eye icon toggle */
.fs-auth--native .password-wrapper,
.fs-auth--native .input-password-wrapper,
.fs-auth--native .field:has(input[type="password"]) {
  position: relative !important;
}
.fs-auth--native .password-toggle,
.fs-auth--native [class*="toggle-password"],
.fs-auth--native [class*="password-eye"],
.fs-auth--native [class*="show-password"] {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: 0 !important;
  padding: 6px !important;
  cursor: pointer !important;
  color: #745546 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Primary Submit Button - Signature Brand Crimson */
.fs-auth--native form button[type=submit]:not(.fs-auth__btn-secondary):not([class*="secondary"]):not([id*="login-link"]):not([class*="login-link"]),
.fs-auth--native form .btn:not(#fb-login-btn):not(.fs-auth__btn-secondary):not([class*="secondary"]):not([id*="login-link"]):not([class*="login-link"]):not([class*="toggle"]):not([class*="eye"]),
.fs-auth--native form input[type=submit]:not(.fs-auth__btn-secondary):not([class*="secondary"]) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  height: 48px !important;
  margin: 14px 0 0 !important;
  padding: 13px 20px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: linear-gradient(110deg, #d70104, #b00103) !important;
  color: #fffaf5 !important;
  font-family: var(--font-body-family, Chronica, sans-serif) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: filter .16s ease, transform .16s ease !important;
}
.fs-auth--native form button[type=submit]:not(.fs-auth__btn-secondary):not([class*="secondary"]):not([id*="login-link"]):not([class*="login-link"]):hover,
.fs-auth--native form .btn:not(#fb-login-btn):not(.fs-auth__btn-secondary):not([class*="secondary"]):not([id*="login-link"]):not([class*="login-link"]):not([class*="toggle"]):not([class*="eye"]):hover,
.fs-auth--native form input[type=submit]:not(.fs-auth__btn-secondary):not([class*="secondary"]):hover {
  filter: brightness(1.08) !important;
  transform: translateY(-1px) !important;
}
.fs-auth--native form button[type=submit]:active,
.fs-auth--native form .btn:active {
  transform: translateY(0) !important;
}

/* Secondary Action Buttons (e.g. "Send me login link", magic link, OTP) */
.fs-auth--native .fs-auth__btn-secondary,
.fs-auth--native button.fs-auth__btn-secondary,
.fs-auth--native .btn.fs-auth__btn-secondary,
.fs-auth--native [class*="login-link"],
.fs-auth--native button[id*="login-link"],
.fs-auth--native button[id*="magic"],
.fs-auth--native form button[type=button]:not([class*="toggle"]):not([class*="eye"]),
.fs-auth--native .customer .btn--secondary {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 46px !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 12px 20px !important;
  border: 1.5px solid #dcd1c4 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #493022 !important;
  font-family: var(--font-body-family, Chronica, sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: all .16s ease !important;
}
.fs-auth--native .fs-auth__btn-secondary:hover,
.fs-auth--native button.fs-auth__btn-secondary:hover,
.fs-auth--native .btn.fs-auth__btn-secondary:hover,
.fs-auth--native [class*="login-link"]:hover,
.fs-auth--native button[id*="login-link"]:hover,
.fs-auth--native form button[type=button]:not([class*="toggle"]):not([class*="eye"]):hover {
  background: #eee5db !important;
  border-color: #baa495 !important;
  color: #2c1810 !important;
  filter: none !important;
  transform: translateY(-1px) !important;
}

/* Editorial "or" Divider */
.fs-auth--native .fs-auth__divider,
.fs-auth--native .divider,
.fs-auth--native .or-divider,
.fs-auth--native .or-text {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  margin: 16px 0 !important;
  color: #a26b58 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: .12em !important;
  text-align: center !important;
}
.fs-auth--native .fs-auth__divider::before,
.fs-auth--native .fs-auth__divider::after,
.fs-auth--native .divider::before,
.fs-auth--native .divider::after,
.fs-auth--native .or-divider::before,
.fs-auth--native .or-divider::after,
.fs-auth--native .or-text::before,
.fs-auth--native .or-text::after {
  content: "" !important;
  flex: 1 1 0% !important;
  height: 1px !important;
  background: #e3d4c7 !important;
}

/* Secondary helper links: "Forgot password?", "Back to sign in" */
.fs-auth--native form a,
.fs-auth--native .customer a:not(#fb-login-btn):not(.fs-auth__policies a):not(.fs-auth__profile-switch) {
  display: inline-block;
  margin-top: 10px;
  font-size: 12.5px;
  color: #745546;
  text-decoration: none;
  transition: color .15s ease;
}
.fs-auth--native form a:hover,
.fs-auth--native .customer a:not(#fb-login-btn):not(.fs-auth__policies a):not(.fs-auth__profile-switch):hover {
  color: #d70104;
  text-decoration: underline;
}

/* Error messages and notes */
.fs-auth--native #error-content,
.fs-auth--native .errors,
.fs-auth--native .form__message--error,
.fs-auth--native .note.errors {
  padding: 10px 14px !important;
  margin: 0 0 16px !important;
  border-radius: 6px !important;
  background: #fdf2f2 !important;
  border: 1px solid #f8d7da !important;
  color: #d70104 !important;
  font-size: 13px !important;
  text-align: left !important;
}
.fs-auth--native .note.form-success {
  padding: 10px 14px !important;
  margin: 0 0 16px !important;
  border-radius: 6px !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #166534 !important;
  font-size: 13px !important;
  text-align: left !important;
}

/* Keep Facebook login and other app snippet buttons clean */
.fs-auth--native #fb-login-btn.btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  height: 48px !important;
  min-height: 48px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 12px 0 0 !important;
  padding: 13px 20px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #eee5db !important;
  color: #493022 !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 22px !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  transition: background .2s ease !important;
}
.fs-auth--native #fb-login-btn.btn:hover { background: #e5d7c8 !important; }
.fs-auth--native #fb-login-btn.btn svg { flex: none !important; width: 20px !important; height: 20px !important; padding: 0 !important; }
.fs-auth--native #fb-login-btn.btn .fb-login-text { width: auto !important; padding: 0 !important; font-family: inherit !important; font-size: 14px !important; font-weight: 500 !important; line-height: 22px !important; letter-spacing: 0 !important; }

/* Right editorial image copy - strictly left-aligned */
.fs-auth--native .fs-auth__image-copy,
.fs-auth--native .fs-auth__image-copy p,
.fs-auth--native .fs-auth__image-copy h2 {
  text-align: left !important;
}

/* Terms & policies */
.fs-auth--native #register-tos { margin:20px 0 0 !important; font-size:12px !important; line-height:1.6 !important; color:#92735e !important; text-align:left !important; }
.fs-auth--native #register-tos p { margin:0 0 6px !important; font-size:12px !important; line-height:1.6 !important; color:#92735e !important; text-align:left !important; }
.fs-auth--native .fs-auth__policies { display:flex !important; flex-wrap:wrap !important; gap:4px 10px !important; align-items:center !important; justify-content:flex-start !important; }
.fs-auth--native .fs-auth__policy-sep { color:#c3aa99 !important; font-size:12px !important; user-select:none !important; }
.fs-auth--native #register-tos a { display:inline-block !important; margin:0 !important; font-size:12px !important; line-height:1.6 !important; font-weight:500 !important; color:#745546 !important; text-decoration:underline !important; text-underline-offset:3px !important; text-decoration-color:rgba(116,85,70,0.35) !important; white-space:nowrap !important; }
.fs-auth--native #register-tos a:hover { color:#d70104 !important; text-decoration-color:#d70104 !important; }

/* Card panel sizing */
.fs-auth--native .customer.fs-auth__panel { padding: clamp(24px, 3.2vw, 38px) !important; }
@media(max-width:749px){
  .fs-auth--native {
    padding: 18px 16px 32px !important;
    gap: 16px !important;
  }
  .fs-auth--native .customer.fs-auth__panel {
    padding: 24px 18px !important;
    border-radius: 16px !important;
    border: 1px solid #e6dcd2 !important;
    background: #fff !important;
  }
  .fs-auth--native .customer h1 { font-size: 24px !important; }
  .fs-auth--native form input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]),
  .fs-auth--native form .field__input {
    height: 48px !important;
    min-height: 48px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
  }
  .fs-auth--native form button[type=submit],
  .fs-auth--native .fs-auth__social-btn {
    min-height: 48px !important;
    border-radius: 8px !important;
  }
  .fs-auth--native .fs-auth__image {
    min-height: 210px !important;
    border-radius: 16px !important;
  }
}
