/* ═══════════════════════════════════════════════════
   AUTH.CSS — DropHub Sign-In / Sign-Up styles
   Depends on: style.css (shared navbar, buttons, cart)
   ═══════════════════════════════════════════════════ */

/* ── Page canvas ──
   Natural document flow: NO min-height/100vh flex trap — content and the
   real site footer simply follow the header and grow the page. */
.auth-page {
    /* The main content (.auth-main) applies the header offset, preventing a double gap. */
  padding-top: 0;
  background:
    radial-gradient(
      1100px 520px at 88% -10%,
      rgba(31, 100, 255, 0.12),
      transparent 60%
    ),
    radial-gradient(
      900px 480px at 4% 2%,
      rgba(31, 100, 255, 0.08),
      transparent 55%
    ),
    linear-gradient(160deg, #e6eefb 0%, #d6e2f7 48%, #ccdcf4 100%);
  /* no background-attachment: fixed — it breaks/janks vertical scrolling
     on Android Chrome and iOS (page gets stuck on mobile) */
}

/* Auth content is rendered inside the shared base hero wrapper.  That wrapper
   normally reserves header space for homepage content; remove that extra
   reservation here so the form is not pushed down twice. */
.auth-page .hero-wrapper {
  padding-top: 0;
  min-height: 0;
}

/* subtle grid texture band that fades out toward the content */
.auth-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 46vh;
  background-image:
    linear-gradient(rgba(31, 100, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 100, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── SITE HEADER — identical to every other page ──
   No overrides here on purpose: style.css already pins .navbar (position:fixed,
   top 0, transparent at rest) and adds the glass treatment on .navbar.scrolled
   — the same as the home page.
   ⚠ Never put `backdrop-filter` (or a transform/filter) together with
   `overflow: hidden` on this header: a backdrop-filtered ancestor becomes the
   containing block for position:fixed descendants, so the fixed-position cart
   dropdown would be positioned relative to the navbar AND clipped away by
   overflow:hidden — the dropdown then never shows (this is exactly what broke
   the cart dropdown on /signin/, /signup/ and /checkout/ before). */

/* ── Main area: right column of the split layout; flows naturally ── */
.auth-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--header-h) + 8px) 40px 48px;
  min-height: calc(100vh - var(--header-h));
}

/* Reduce gap on smaller desktop/tablet screens */
@media (max-width: 1024px) {
  .auth-main {
    padding: calc(var(--header-h) + 4px) 32px 64px;
  }
}

/* Mobile: NO extra gap — header offset only */
@media (max-width: 760px) {
  .auth-main {
    padding: var(--header-h) 16px 40px;
    justify-content: flex-start;
    align-items: stretch;
  }
}

/* ── Brand logo above card ── */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.auth-brand:hover {
  opacity: 0.82;
}
.auth-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.auth-brand-name {
  font-size: 22px;
  font-weight: 800;
  color: #0d1f3c;
  letter-spacing: -0.025em;
}
.auth-brand-name span {
  color: #1f64ff;
}

/* ── Card (redesigned: crisp layered depth + brand accent) ── */
.auth-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 26px;
  box-shadow:
    0 1px 2px rgba(15, 28, 77, 0.05),
    0 12px 40px rgba(15, 28, 77, 0.1),
    0 32px 90px rgba(31, 100, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

/* Mobile: make card full-width with smaller radius */
@media (max-width: 760px) {
  .auth-card {
    max-width: 100%;
    border-radius: 20px;
  }
}
/* slim brand gradient across the top of the card */
.auth-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #1f64ff 0%, #6ea3ff 55%, #22c55e 100%);
}

/* ── Tab switcher (redesigned: floating segmented pill control) ── */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 22px 22px 0;
  padding: 5px;
  background: #eef3fc;
  border-radius: 13px;
}
.auth-tab {
  padding: 11px 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #667085;
  cursor: pointer;
  background: transparent;
  border: none;
  border-radius: 9px;
  transition:
    color 0.2s,
    background 0.25s,
    box-shadow 0.25s;
  font-family: inherit;
  letter-spacing: -0.01em;
  line-height: 1;
}
.auth-tab--active {
  color: #1f64ff;
  background: #fff;
  box-shadow: 0 2px 10px rgba(31, 100, 255, 0.16);
}
.auth-tab:not(.auth-tab--active):hover {
  color: #0d1f3c;
}

/* ── Form wrapper ── */
.auth-form-wrap {
  padding: 26px 26px 26px;
}

.auth-form-panel {
  display: none;
}
.auth-form-panel.is-active {
  display: block;
}

/* ── Field group ── */
.auth-field {
  margin-bottom: 18px;
}

.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 7px;
  letter-spacing: -0.005em;
}

/* ── Input wrapper (icon + field + toggle) ── */
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-icon {
  position: absolute;
  left: 13px;
  color: #b0bac8;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}
.auth-input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  border: 1px solid #dce8f3;
  border-radius: 14px;
  font-size: 14.5px;
  font-family: inherit;
  font-weight: 600;
  color: #0f1e33;
  background: #f7f9fd;
  outline: none;
  transition: all 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}
.auth-input::placeholder {
  color: #9aa7bd;
  font-weight: 500;
}
.auth-input:focus {
  border-color: #2456e6;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(36, 86, 230, 0.12);
}
.auth-input:focus + .auth-input-icon,
.auth-input:focus ~ .auth-input-icon {
  color: #2456e6;
}

/* ── Password visibility toggle ── */
.auth-pw-toggle {
  position: absolute;
  right: 13px;
  background: none;
  border: none;
  color: #b0bac8;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  z-index: 1;
  transition: color 0.2s;
}
.auth-pw-toggle:hover {
  color: #1f64ff;
}

/* ── Forgot password row ── */
.auth-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
  margin-bottom: 20px;
}
.auth-forgot {
  font-size: 13px;
  font-weight: 600;
  color: #1f64ff;
  text-decoration: none;
  transition: opacity 0.2s;
}
.auth-forgot:hover {
  opacity: 0.72;
}

/* ── Submit button ── */
.auth-submit {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #2456e6 0%, #1a41b4 100%);
  color: #fff;
  font-size: 15.5px;
  font-weight: 800;
  font-family: inherit;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: -0.015em;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow:
    0 8px 24px rgba(36, 86, 230, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.auth-submit::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.5s ease;
}
.auth-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 14px 32px rgba(36, 86, 230, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #3269c5 0%, #2456e6 100%);
}
.auth-submit:hover:not(:disabled)::after {
  left: 200%;
}
.auth-submit:active:not(:disabled) {
  transform: scale(0.97);
}
.auth-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── "or continue with" divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: #b0bac8;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #eceff5;
}

/* ── Social auth buttons ── */
.auth-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.auth-social-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 10px;
  border: 1px solid #dce8f3;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
  font-size: 14px;
  font-weight: 700;
  color: #0f1e33;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.01em;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 30, 51, 0.04);
}
.auth-social-btn:hover {
  border-color: #b0c4f5;
  background: #fff;
  box-shadow: 0 8px 24px rgba(36, 86, 230, 0.12);
  transform: translateY(-2px);
  color: #2456e6;
}
.auth-provider-icon {
  width: 17px;
  height: 17px;
  display: block;
  flex: 0 0 17px;
}
.auth-provider-icon--apple {
  color: #111827;
}

/* ── Switch link ── */
.auth-switch {
  text-align: center;
  font-size: 13.5px;
  color: #6b7a93;
  line-height: 1.5;
}
.auth-switch a {
  color: #1f64ff;
  font-weight: 700;
  text-decoration: none;
}
.auth-switch a:hover {
  text-decoration: underline;
}

/* ── Security trust badges below the card (redesigned: glass pills) ── */
.auth-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.auth-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 100, 255, 0.14);
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(31, 100, 255, 0.05);
  font-size: 12px;
  font-weight: 600;
  color: #5b6b85;
  letter-spacing: -0.005em;
}
.auth-badge-item svg {
  flex-shrink: 0;
}

/* ── Name row (sign-up only) ── */
.auth-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Account type selector (Shop & Buy / Start Selling) ── */
.auth-type-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.auth-type-pill {
  cursor: pointer;
  position: relative;
}
.auth-type-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.auth-type-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #fafbff;
  font-size: 13.5px;
  font-weight: 600;
  color: #6b7a93;
  letter-spacing: -0.01em;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s,
    color 0.2s;
}
.auth-type-box svg {
  flex-shrink: 0;
  color: #9aa3b2;
  transition: color 0.2s;
}
.auth-type-pill input:checked + .auth-type-box {
  border-color: #1f64ff;
  background: #f4f8ff;
  color: #1f64ff;
  box-shadow: 0 0 0 3px rgba(31, 100, 255, 0.1);
}
.auth-type-pill input:checked + .auth-type-box svg {
  color: #1f64ff;
}
.auth-type-pill input:focus-visible + .auth-type-box {
  box-shadow: 0 0 0 3px rgba(31, 100, 255, 0.22);
}

/* ── "(optional)" label hint ── */
.auth-optional {
  font-weight: 500;
  color: #9aa3b2;
  font-size: 11.5px;
}

/* ── Passwords-match confirmation ── */
.auth-match-ok {
  display: none;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #16a34a;
}

/* ── Password strength meter ── */
.auth-strength-wrap {
  margin-top: -10px;
  margin-bottom: 16px;
}
.auth-strength-bar {
  height: 3px;
  border-radius: 2px;
  background: #e2e8f0;
  overflow: hidden;
}
.auth-strength-fill {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  transition:
    width 0.35s ease,
    background 0.35s ease;
}
.auth-strength-label {
  font-size: 11px;
  color: #9aa3b2;
  margin-top: 4px;
  min-height: 16px;
  transition: color 0.3s;
}

/* ── Terms checkbox row ── */
.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 12.5px;
  color: #6b7a93;
  line-height: 1.55;
}
.auth-terms input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #1f64ff;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.auth-terms a {
  color: #1f64ff;
  font-weight: 600;
  text-decoration: none;
}
.auth-terms a:hover {
  text-decoration: underline;
}

/* the real site footer must paint above the fixed texture band */
.auth-page .footer {
  position: relative;
  z-index: 1;
}

/* NOTE: the old minimal ".auth-footer" was retired — these pages now use
   DropHub's exact site footer (".footer" from style.css), identical to the
   homepage and all other pages. */

/* ── Inline field error state ── */
.auth-input.is-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.auth-field-error {
  font-size: 11.5px;
  color: #ef4444;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Success toast (post-submit) ── */
.auth-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #0d1f3c;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(15, 28, 77, 0.22);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 999;
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s;
  pointer-events: none;
}
.auth-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 480px) {
  .auth-main {
    padding: var(--header-h) 12px 40px;
  }
  /* navbar sizing comes from the shared style.css rules (same as home) */
  .auth-card {
    border-radius: 22px;
    max-width: 100%;
  }
  .auth-form-wrap {
    padding: 22px 18px 20px;
  }
  .auth-name-row {
    grid-template-columns: 1fr;
  }
  .auth-tabs {
    margin: 18px 16px 0;
  }
  .auth-badges {
    gap: 10px;
    flex-wrap: wrap;
  }
  .auth-brand-name {
    font-size: 20px;
  }
}

@media (max-width: 360px) {
  .auth-tab {
    font-size: 13.5px;
    padding: 16px 8px 14px;
  }
  .auth-input {
    font-size: 13px;
    padding: 12px 12px 12px 36px;
  }
  .auth-submit {
    font-size: 14px;
    padding: 14px;
  }
}

/* ═══════════════════════════════════════════════════
   SPLIT-SCREEN AUTH LAYOUT
   Left: brand story panel · Right: sign-in card
   ═══════════════════════════════════════════════════ */
.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  min-height: 100vh;
}

/* ── Left: brand story panel ── */
.auth-side {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 56px;
  color: #fff;
  background:
    radial-gradient(
      720px 420px at 82% 12%,
      rgba(56, 174, 245, 0.28),
      transparent 62%
    ),
    radial-gradient(
      760px 520px at 10% 96%,
      rgba(31, 100, 255, 0.38),
      transparent 60%
    ),
    linear-gradient(155deg, #0a172e 0%, #0e2249 52%, #123677 100%);
}
/* soft grid sheen, echoing the homepage hero */
.auth-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(
    80% 70% at 60% 35%,
    #000 20%,
    transparent 78%
  );
  mask-image: radial-gradient(80% 70% at 60% 35%, #000 20%, transparent 78%);
  pointer-events: none;
}
.auth-side-inner {
  position: relative;
  max-width: 460px;
  width: 100%;
}

.auth-side-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cfe0ff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.auth-side-badge svg {
  flex-shrink: 0;
}

.auth-side-title {
  margin: 24px 0 16px;
  font-size: 44px;
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.auth-side-title span {
  color: #4d8dff;
}

.auth-side-text {
  margin: 0 0 38px;
  font-size: 16px;
  line-height: 1.7;
  color: #b9c9e8;
}

.auth-points {
  display: grid;
  gap: 22px;
  margin-bottom: 40px;
}
.auth-point {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.auth-point-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #7fb0ff;
  background: rgba(31, 100, 255, 0.16);
  border: 1px solid rgba(77, 141, 255, 0.32);
}
.auth-point-title {
  margin: 0 0 3px;
  font-size: 15.5px;
  font-weight: 700;
}
.auth-point-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #9db2db;
}

.auth-side-stats {
  display: flex;
  gap: 34px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.auth-stat-num {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.auth-stat-label {
  margin: 0;
  font-size: 12px;
  color: #8fa6ce;
}

/* ── Responsive: form-first on tablets & phones ── */
@media (max-width: 1080px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-side {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════
   CARD HEADING · PROVIDER ICONS · SVG ICON SIZING
   ═══════════════════════════════════════════════════ */

/* ── Card heading (h1 + helper line above the form) ── */
.auth-card-heading {
  margin-bottom: 20px;
}
.auth-card-heading h1 {
  margin: 0 0 5px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0d1f3c;
  line-height: 1.15;
}
.auth-card-heading p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #6b7a93;
}

/* ── Sign-up form is taller: give it a little more room ── */
.auth-card--signup {
  max-width: 500px;
}

/* ─ Inline SVG icons (all iconography is vector, never glyphs) ── */
.auth-provider-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.auth-input-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}
.auth-pw-toggle svg {
  width: 17px;
  height: 17px;
  display: block;
}
.auth-submit svg {
  width: 17px;
  height: 17px;
}
.auth-badge-item svg {
  width: 13px;
  height: 13px;
}
.auth-point-icon svg {
  width: 19px;
  height: 19px;
}
.auth-side-badge svg {
  width: 14px;
  height: 14px;
}
.auth-type-box svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.auth-field-error svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.auth-switch svg {
  width: 13px;
  height: 13px;
}

/* ── Social buttons whose provider isn't wired up yet ── */
.auth-social-btn.is-soon {
  opacity: 0.62;
  cursor: not-allowed;
}
.auth-social-btn.is-soon:hover {
  transform: none;
  border-color: #e2e8f0;
  background: #fff;
  box-shadow: none;
}
.auth-social-soon {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #98a2b3;
  background: #f2f4f8;
  border-radius: 20px;
  padding: 3px 7px;
}

/* ── Password visibility toggle: eye / eye-off vector swap ── */
.auth-pw-toggle .pw-off {
  display: none;
}
.auth-pw-toggle.is-on .pw-on {
  display: none;
}
.auth-pw-toggle.is-on .pw-off {
  display: block;
}

/* ── Phone field helper under the sign-up role pills ── */
.auth-role-hint {
  margin: 9px 0 0;
  font-size: 12px;
  color: #8b97a9;
  line-height: 1.5;
}

/* Active Django auth pages use the reference split-screen composition. */
.auth-shell {
  background: linear-gradient(135deg, #e8f0ff 0%, #d7e4fa 100%);
    padding-top: 0;
  min-height: 100vh;
}
.auth-main {
  min-width: 0;
  min-height: calc(100vh - var(--header-h));
}
.auth-card-heading {
  text-align: center;
  margin: 0 0 16px;
}
.auth-card-heading h1 {
  margin: 0;
  color: #0d1f3c;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.auth-card-heading p {
  margin: 6px 0 0;
  color: #8390a3;
  font-size: 13px;
}
.auth-card--signup .auth-form-wrap {
  padding-top: 14px;
}
.auth-form .auth-input {
  min-height: 46px;
}
.auth-form select.auth-input {
  padding-left: 14px;
}
.auth-form .auth-field-error {
  display: block;
  margin-top: 5px;
  line-height: 1.4;
}
.auth-cart {
  position: relative;
  border: 0;
  background: #e7efff;
  color: #153b7b;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 19px;
  cursor: pointer;
}
.auth-cart span {
  position: absolute;
  right: 0;
  top: -3px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #1f64ff;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.auth-page .footer {
  margin-top: 0;
}
.auth-page .auth-input:not([name="username"]) {
  padding-left: 14px;
}
.auth-page .auth-name-row .auth-input {
  padding-left: 14px;
}
@media (max-width: 1080px) {
  .auth-page .auth-side {
    display: flex;
  }
  .auth-shell {
    grid-template-columns: minmax(0, 1fr) minmax(430px, 1fr);
  }
  .auth-side {
    padding-left: 40px;
    padding-right: 40px;
  }
  .auth-side-title {
    font-size: 38px;
  }
  .auth-side-text {
    font-size: 14px;
  }
  .auth-point-text {
    font-size: 12px;
  }
  .auth-point-title {
    font-size: 14px;
  }
}
@media (max-width: 760px) {
  .auth-shell { display: block; min-height: 0; }
  .auth-side  { display: none !important; }
  .auth-main  { padding-top: calc(var(--header-h) + 6px); }

  /* ── Navbar intentionally NOT overridden here ──
     The shared style.css rules the home page uses apply unchanged, so the
     mobile header matches the home page exactly (style.css hides .nav-links
     ≤1100px and .nav-signin/.btn-sell ≤600px on its own). */

  .auth-card  { max-width: 100%; border-radius: 20px; }
  .auth-main  { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 480px) {
  .auth-card  { max-width: 100%; border-radius: 20px; }
  .auth-main  { padding-left: 14px; padding-right: 14px; }
}

@media (max-width: 360px) {
  .auth-card  { max-width: 100%; border-radius: 18px; }
  .auth-main  { padding-left: 10px; padding-right: 10px; }
}
