.fs-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  box-sizing: border-box;
  max-width: 1240px;
  margin: auto;
  padding: clamp(24px, 4vw, 52px) 28px;
  background: #f3ede5;
  color: #493022;
  font-family: var(--font-body-family, Chronica, sans-serif);
}
body:has(.fs-auth), body:has(.fs-auth) #MainContent { background: #f3ede5; }
.fs-auth .customer.fs-auth__panel {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 8px;
  background: #fffaf5;
  text-align: left;
}
.fs-auth__eyebrow { margin: 0 0 20px; color: #a26b58; font-size: 8px; font-weight: 500; letter-spacing: .12em; }
.fs-auth .customer h1 {
  margin: 0 0 12px;
  color: #493022;
  font: 500 clamp(28px, 3vw, 38px)/1.1 var(--font-heading-family, Chronica, sans-serif);
  letter-spacing: -.035em;
}
.fs-auth .customer .fs-auth__intro { margin: 0; color: #745546; font-size: 13px; line-height: 1.65; }
.fs-auth .customer form { margin-top: 24px; }
.fs-auth .customer .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.fs-auth .customer .field::before, .fs-auth .customer .field::after { content: none; }
.fs-auth .customer .field label {
  position: static;
  order: -1;
  margin: 0;
  padding: 0;
  transform: none;
  color: #745546;
  letter-spacing: 0;
  font: 500 12px/1.5 var(--font-body-family, Chronica, sans-serif);
}
.fs-auth .customer .field :is(input, select) {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid #e6d8cc;
  border-radius: 6px;
  background-color: #f3ede5;
  color: #493022;
  box-shadow: none;
  font: 400 16px/1.4 var(--font-body-family, Chronica, sans-serif);
}
.fs-auth .customer .field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23745546' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
}
.fs-auth .customer input::placeholder { color: transparent; }
.fs-auth .customer .select { width: 100%; }
.fs-auth__names { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 0; }
.fs-auth__name { min-width: 0; }
.fs-auth .customer button {
  width: 100%;
  min-height: 46px;
  margin: 2px 0 12px;
  padding: 12px 18px;
  border: 0;
  box-shadow: none;
  letter-spacing: 0;
  border-radius: 7px;
  background: linear-gradient(115deg, #d70104, #b00103);
  color: #fff8f0;
  font: 500 13px/1.4 var(--font-body-family, Chronica, sans-serif);
  cursor: pointer;
}
.fs-auth .customer button::before, .fs-auth .customer button::after { content: none; }
.fs-auth .customer button:hover { background: #d70104; }
.fs-auth .customer form > a {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  box-sizing: border-box;
  padding: 9px 14px;
  margin: 0 0 8px;
  border-radius: 6px;
  background: #eee4d8;
  color: #d70104;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}
.fs-auth .customer form > a[href="#recover"] { width: fit-content; margin: 0 0 14px auto; min-height: 32px; padding: 7px 10px; background: transparent; }
.fs-auth .customer form > a:hover { background: #e5d6c8; }
.fs-auth .customer small { display: block; margin-top: 14px; font-size: 10px; line-height: 1.7; color: #9a7964; }
.fs-auth .customer small a { color: #d70104; font-weight: 500; text-decoration: none; }
.fs-auth .customer .form__message { padding: 12px; background: #eee4d8; border-radius: 6px; font-size: 12px; color: #493022; }
.fs-auth .customer .form__message svg { width: 18px; flex: none; }
.fs-auth__image { position: relative; overflow: hidden; border-radius: 8px; background: #1a1a1a; min-height: 500px; }
.fs-auth__image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.fs-auth__image::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, #160c0ce0); }
.fs-auth__image-copy { position: absolute; z-index: 1; bottom: 36px; left: 32px; right: 24px; text-align: left !important; }
.fs-auth__image-copy p { margin: 0 0 14px; font-size: 8px; letter-spacing: .12em; color: #edc4b9; text-align: left !important; }
.fs-auth__image-copy h2 { margin: 0; font: 500 clamp(28px, 3vw, 42px)/1.1 var(--font-heading-family, Chronica, sans-serif); color: #fff8f0; letter-spacing: -.035em; text-align: left !important; }
.fs-auth :is(a, button, input, select):focus-visible { outline: 2px solid #d70104; outline-offset: 3px; }
.fs-auth .button-snippet:empty { display: none; }
.fs-auth .customer .hide { display: none; }
.fs-auth .customer #recover + div > p { font-size: 13px; color: #745546; line-height: 1.65; }
body:has(.fs-auth) .fs-b-footer { margin-top: 0; }
@media (max-width: 749px) {
  .fs-auth { grid-template-columns: minmax(0, 1fr); padding: 24px 22px; }
  .fs-auth__image { min-height: 240px; }
  .fs-auth__image-copy { bottom: 24px; left: 24px; }
}

.fs-auth .customer.fs-auth__panel { padding: clamp(24px, 3vw, 40px); }
.fs-auth .customer h1 { font-size: 28px; line-height: 1.15; }
.fs-auth .fs-auth__eyebrow { margin-bottom: 14px; }
.fs-auth .customer form { margin-top: 22px; }
.fs-auth .customer .field { gap: 7px; margin-bottom: 16px; }
.fs-auth .customer .field label,
.fs-auth .customer .field input:focus ~ label,
.fs-auth .customer .field input:not(:placeholder-shown) ~ label,
.fs-auth .customer .field input:-webkit-autofill ~ label,
.fs-auth .customer .field.on_focus label {
  position: static;
  inset: auto;
  transform: none;
  font-size: 12px;
  line-height: 1.5;
  pointer-events: auto;
}
.fs-auth .customer .field :is(input, select),
.fs-auth .customer .field input:focus,
.fs-auth .customer .field input:not(:placeholder-shown) {
  height: 46px;
  min-height: 46px;
  padding: 11px 13px;
  font-size: 16px;
}
.fs-auth .customer .field select {
  padding-right: 40px;
}
.fs-auth .customer form > a[href="#recover"] {
  margin: -6px 0 14px auto;
  padding: 4px 0;
  min-height: 24px;
  background: transparent;
  border-radius: 5px;
}
.fs-auth__optional { margin: 0 0 18px; padding: 12px 14px; border-radius: 6px; background: #f3ede5; }
.fs-auth__optional summary { display: flex; justify-content: space-between; gap: 12px; color: #493022; font-size: 12px; font-weight: 500; cursor: pointer; list-style: none; }
.fs-auth__optional summary::-webkit-details-marker { display: none; }
.fs-auth__optional summary span { color: #9a7964; font-size: 11px; font-weight: 400; }
.fs-auth__optional[open] summary { margin-bottom: 16px; }
.fs-auth .customer .fs-auth__optional .field:last-child { margin-bottom: 0; }
.fs-auth .customer .fs-auth__consent {
  margin: 4px 0 0;
  max-width: none;
  font-size: 11px;
  line-height: 1.8;
  color: #8b6f5d;
}
.fs-auth .customer .fs-auth__consent a {
  display: inline;
  color: #d70104;
  font-size: inherit;
  font-weight: 700;
  text-decoration: none;
}
.fs-auth .customer .fs-auth__consent a:hover { color: #493022; }



.fs-auth .customer .fs-auth__switch > a:hover { background: #e5d6c8; }

.fs-auth .customer button:focus-visible { box-shadow: none; outline: 2px solid #d70104; outline-offset: 3px; }
.fs-auth .customer button:hover { box-shadow: none; }
.fs-auth .customer .fs-auth__consent a { white-space: normal; }
.fs-auth .customer .fs-auth__consent { text-align: left; }


.fs-auth .customer #recover { font-size: 28px; }
.fs-auth .customer #recover:target { display: block; margin: 0 0 12px; }
.fs-auth .customer .fs-auth__recover > p {
  margin: 0;
  max-width: 42ch;
  color: #745546;
  font-size: 13px;
  line-height: 1.7;
}
.fs-auth .customer .fs-auth__recover-form { margin-top: 24px; }
.fs-auth .customer .fs-auth__recover-form > a {
  width: 100%;
  margin: 0;
  min-height: 42px;
}
.fs-auth:has(#recover:target) .fs-auth__panel { align-self: center; }

.fs-auth .customer .fs-auth__switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px calc(-1 * clamp(24px, 3vw, 40px)) calc(-1 * clamp(24px, 3vw, 40px));
  padding: 18px clamp(24px, 3vw, 40px);
  border-radius: 0 0 8px 8px;
  background: #eee4d8;
  text-align: left;
}
.fs-auth .customer .fs-auth__switch > span {
  margin: 0;
  color: #745546;
  font-size: 12px;
  line-height: 1.5;
}
.fs-auth .customer .fs-auth__switch > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: auto;
  min-height: 38px;
  box-sizing: border-box;
  margin: 0;
  padding: 9px 14px;
  border: 0;
  border-radius: 6px;
  background: #fffaf5;
  color: #d70104;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}
.fs-auth .customer .fs-auth__switch > a:hover { background: #f8f1e9; }
@media (max-width: 380px) {
  .fs-auth .customer .fs-auth__switch { flex-direction: column; align-items: stretch; gap: 10px; }
}

.fs-auth .customer .fs-auth__recover-form > button,
.fs-auth .customer .fs-auth__recover-form > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 46px;
  min-height: 46px;
  box-sizing: border-box;
  padding: 12px 18px;
  border: 0;
  border-radius: 7px;
  font: 500 13px/1.4 var(--font-body-family, Chronica, sans-serif);
}
.fs-auth .customer .fs-auth__recover-form > button { margin: 0 0 10px; }
.fs-auth .customer .fs-auth__recover-form > a { margin: 0; }

/* Mobile-native Auth (Login / Sign up) polish (strictly max-width: 749px; desktop 100% untouched). */
@media (max-width: 749px) {
  .fs-auth {
    padding: 18px 16px 32px;
    gap: 16px;
  }
  .fs-auth .customer.fs-auth__panel {
    padding: 24px 18px;
    border-radius: 16px;
    border: 1px solid #e6dcd2;
    background: #fff;
  }
  .fs-auth .customer .field :is(input, select) {
    height: 48px;
    min-height: 48px;
    font-size: 16px;
    border-radius: 8px;
  }
  .fs-auth .customer button,
  .fs-auth .customer form > a {
    min-height: 48px;
    border-radius: 8px;
  }
  .fs-auth__image {
    min-height: 210px;
    border-radius: 16px;
  }
  .fs-auth__image-copy {
    bottom: 20px;
    left: 20px;
    right: 20px;
  }
}
