/* ==========================================================
   Showstopper — Login / Registration page
   Builds on style.css, category.css (page hero, checkbox)
   and cart.css (values strip)
   ========================================================== */

.page-hero--login .page-hero-content { padding-top: 86px; padding-bottom: 38px; }
.page-hero--login p { max-width: 270px; margin-bottom: 34px; font-size: 15.5px; }
.two-tone span { color: var(--brown); }

/* ---------- Auth card ---------- */
.auth { padding: 40px 0 56px; }
.auth-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 30px;
  padding: 44px 56px 70px 56px;
  border: 1px solid #efe4d6;
  border-radius: 22px;
  background: linear-gradient(180deg, #fdf9f4, #fbf5ee);
  box-shadow: 0 10px 30px rgba(120, 84, 40, .06);
}
.auth-pane { position: relative; z-index: 1; min-width: 0; }
.auth-pane h2 { font-size: clamp(27px, 3vw, 34px); margin-bottom: 14px; }
.auth-sub { font-size: 15px; color: var(--ink); margin-bottom: 30px; max-width: 380px; }
.auth-view[hidden] { display: none; }
.auth-view { animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

.auth-divider {
  position: relative;
  display: grid;
  place-items: center;
}
.auth-divider::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 1px;
  background: var(--line);
}
.auth-divider span {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-light);
  background: #fdf9f4;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--brown);
}
.auth-sprig {
  position: absolute;
  bottom: -18px;
  width: 92px;
  height: 140px;
  color: #a8773f;
  pointer-events: none;
}
.auth-sprig.left { left: 10px; transform: rotate(40deg); }
.auth-sprig.right { right: 10px; transform: scaleX(-1) rotate(40deg); }

/* Floating-label inputs with a leading icon */
.float-field { position: relative; margin-bottom: 26px; }
.float-field > svg {
  position: absolute;
  left: 18px;
  top: 26px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: var(--brown);
  pointer-events: none;
}
.float-field input {
  width: 100%;
  height: 52px;
  padding: 18px 50px 4px 52px;
  border: 1px solid #ddcfbe;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.float-field label {
  position: absolute;
  left: 52px;
  top: 26px;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--ink-soft);
  pointer-events: none;
  transition: top .15s ease, font-size .15s ease;
}
.float-field label .req { color: var(--red); }
.float-field input:focus + label,
.float-field input:not(:placeholder-shown) + label { top: 13px; font-size: 11.5px; }
.float-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 149, 79, .18);
}
.float-field.is-invalid input { border-color: var(--red); }
.float-field .field-error { display: none; margin-top: 5px; font-size: 12px; color: var(--red); }
.float-field.is-invalid .field-error { display: block; }
.toggle-pass {
  position: absolute;
  right: 12px;
  top: 26px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  color: var(--brown);
  display: grid;
  place-items: center;
  padding: 0;
}
.toggle-pass svg { width: 21px; height: 21px; }

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 30px;
}
.auth-row .check { font-size: 15px; color: var(--ink); }
.auth-row .check input { width: 18px; height: 18px; }
.text-link {
  border: 0;
  background: none;
  padding: 0;
  font-size: 15px;
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--gold); }

.auth-btn {
  width: 100%;
  justify-content: center;
  height: 52px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
  gap: 14px;
}
.auth-btn svg { width: 26px; height: 26px; }
.auth-btn:hover svg { transform: none; }
.auth-btn.btn-gold { background: linear-gradient(180deg, #b98543, #a0702f); }
.auth-btn.outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--brown);
}
.auth-btn.outline:hover { background: #fcf3e6; }

.or-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 34px 0 22px;
  font-size: 14px;
  color: var(--brown);
}
.or-line::before,
.or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  border: 1px solid #ddcfbe;
  border-radius: 8px;
  background: #fff;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.social-btn:hover { border-color: var(--gold-light); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.social-btn svg { width: 26px; height: 26px; }

.auth-msg {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fbefd9;
  font-size: 13px;
  color: #6b4a1f;
}
.auth-msg:empty { display: none; }
.back-to { margin-top: 18px; text-align: center; font-size: 14px; color: var(--ink-soft); }

/* Benefits list */
.benefits { margin: 4px 0 38px; }
.benefits li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}
.benefits li + li { margin-top: 10px; }
.benefit-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f7ead8;
  color: var(--gold);
  display: grid;
  place-items: center;
}
.benefit-icon svg { width: 32px; height: 32px; }
.benefits strong { display: block; font-family: var(--serif); font-size: 17px; font-weight: 500; }
.benefits span { font-size: 13.5px; }

.terms-check { margin: -6px 0 24px; font-size: 13.5px; align-items: flex-start; }
.terms-check a { color: var(--brown); text-decoration: underline; }
.terms-check.is-invalid { color: var(--red); }
.terms-check.is-invalid input { border-color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .auth-card { padding: 36px 32px 64px; gap: 22px; }
}

@media (max-width: 860px) {
  .auth-card { grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 32px 28px 64px; }
  .auth-divider { height: 42px; }
  .auth-divider::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
  .page-hero--login .page-hero-content { padding-top: 30px; padding-bottom: 26px; }
  .page-hero--login p { max-width: none; margin-bottom: 22px; }
}

@media (max-width: 600px) {
  .auth { padding: 26px 0 40px; }
  .auth-card { padding: 26px 18px 30px; border-radius: 18px; }
  .auth-sub { margin-bottom: 24px; }
  .auth-row .check, .text-link { font-size: 14px; }
  .social { gap: 10px; }
  .social-btn { font-size: 15px; }
  .benefits li { grid-template-columns: 50px minmax(0, 1fr); gap: 16px; }
  .benefit-icon { width: 50px; height: 50px; }
  .benefit-icon svg { width: 27px; height: 27px; }
  .auth-sprig { display: none; }
}
