/* ============================================================
   client-auth.css
   Client Login / Signup / Favorites system styles
   The Mother Daughter Team -- RE/MAX Escarpment Realty Inc.
   ============================================================ */

/* ------------------------------------------------------------
   CSS Variables (inherits from site design system)
   ------------------------------------------------------------ */
:root {
  --auth-ivory: #F8F4EE;
  --auth-cream: #EDE8DF;
  --auth-charcoal: #1C1C1C;
  --auth-deep: #111111;
  --auth-warm-grey: #8A8278;
  --auth-text: #2A2A2A;
  --auth-accent: #E8B4C4;
  --auth-accent-dark: #d49aad;
  --auth-white: #FFFFFF;
  --auth-error: #B85450;
  --auth-error-bg: #FDF2F2;
  --auth-success: #d49aad;
  --auth-success-bg: #FAF5F7;
  --auth-radius: 2px;
  --auth-shadow: 0 4px 32px rgba(28, 28, 28, 0.06);
  --auth-shadow-hover: 0 8px 40px rgba(28, 28, 28, 0.10);
  --auth-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ============================================================
   1. AUTH PAGES (Login, Signup, Forgot Password)
   ============================================================ */

/* -- Page Wrapper ------------------------------------------- */
.auth-page {
  min-height: 100vh;
  background: var(--auth-ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  font-family: 'Jost', sans-serif;
}

/* -- Centered Card Container -------------------------------- */
.auth-container {
  width: 100%;
  max-width: 460px;
  background: var(--auth-white);
  box-shadow: var(--auth-shadow);
  padding: 56px 48px 48px;
  position: relative;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--auth-charcoal);
}

/* -- Header / Title Area ------------------------------------ */
.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-header .auth-eyebrow {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--auth-warm-grey);
  margin-bottom: 14px;
  position: relative;
  padding-left: 36px;
}

.auth-header .auth-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--auth-accent);
}

.auth-header h1 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--auth-charcoal);
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.3;
}

.auth-header h1 em {
  font-style: normal;
  color: var(--auth-accent);
}

.auth-header p {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  color: var(--auth-warm-grey);
  margin-top: 10px;
  font-weight: 300;
  line-height: 1.6;
}

/* -- Form Layout -------------------------------------------- */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.auth-form-group {
  position: relative;
}

.auth-form-group label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--auth-warm-grey);
  margin-bottom: 8px;
}

/* -- Inputs (underline style) ------------------------------- */
.auth-input {
  width: 100%;
  padding: 12px 0;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--auth-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--auth-cream);
  outline: none;
  transition: var(--auth-transition);
  letter-spacing: 0.01em;
  -webkit-appearance: none;
  border-radius: 0;
}

.auth-input::placeholder {
  color: var(--auth-cream);
  font-weight: 300;
}

.auth-input:focus {
  border-bottom-color: var(--auth-accent);
}

.auth-input:focus + .auth-input-line {
  transform: scaleX(1);
}

.auth-input-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--auth-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.auth-input.has-error {
  border-bottom-color: var(--auth-error);
}

/* Password visibility toggle */
.auth-password-wrap {
  position: relative;
}

.auth-password-wrap .auth-input {
  padding-right: 40px;
}

.auth-password-toggle {
  position: absolute;
  right: 0;
  bottom: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--auth-warm-grey);
  padding: 4px;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.auth-password-toggle:hover {
  color: var(--auth-accent);
}

/* -- Primary Submit Button ---------------------------------- */
.auth-btn {
  display: block;
  width: 100%;
  padding: 16px 32px;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--auth-ivory);
  background: var(--auth-charcoal);
  border: 1px solid var(--auth-charcoal);
  cursor: pointer;
  transition: var(--auth-transition);
  margin-top: 8px;
  text-align: center;
  text-decoration: none;
  line-height: 1;
}

.auth-btn:hover {
  background: var(--auth-accent);
  border-color: var(--auth-accent);
  color: var(--auth-charcoal);
}

.auth-btn:active {
  transform: scale(0.985);
}

.auth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-btn:disabled:hover {
  background: var(--auth-charcoal);
  border-color: var(--auth-charcoal);
  color: var(--auth-ivory);
}

/* Secondary/outline button variant */
.auth-btn-outline {
  display: block;
  width: 100%;
  padding: 16px 32px;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--auth-charcoal);
  background: transparent;
  border: 1px solid var(--auth-charcoal);
  cursor: pointer;
  transition: var(--auth-transition);
  text-align: center;
  text-decoration: none;
  line-height: 1;
}

.auth-btn-outline:hover {
  background: var(--auth-charcoal);
  color: var(--auth-ivory);
}

/* -- Text Links --------------------------------------------- */
.auth-link {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--auth-warm-grey);
  text-decoration: none;
  transition: color 0.3s;
  cursor: pointer;
}

.auth-link:hover {
  color: var(--auth-accent-dark);
}

.auth-form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -8px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  color: var(--auth-warm-grey);
  cursor: pointer;
}

.auth-remember input[type="checkbox"] {
  accent-color: var(--auth-charcoal);
  width: 14px;
  height: 14px;
}

/* -- Divider ("or") ----------------------------------------- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--auth-cream);
}

.auth-divider span {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--auth-warm-grey);
}

/* -- Error Message ------------------------------------------ */
.auth-error {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  color: var(--auth-error);
  background: var(--auth-error-bg);
  padding: 14px 18px;
  border-left: 3px solid var(--auth-error);
  line-height: 1.5;
  display: none;
}

.auth-error.visible {
  display: block;
}

/* -- Success Message ---------------------------------------- */
.auth-success {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  color: var(--auth-accent-dark);
  background: var(--auth-success-bg);
  padding: 14px 18px;
  border-left: 3px solid var(--auth-accent);
  line-height: 1.5;
  display: none;
}

.auth-success.visible {
  display: block;
}

/* -- Footer Text -------------------------------------------- */
.auth-footer-text {
  text-align: center;
  margin-top: 32px;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  color: var(--auth-warm-grey);
  font-weight: 300;
}

.auth-footer-text a {
  color: var(--auth-charcoal);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

.auth-footer-text a:hover {
  color: var(--auth-accent-dark);
}

/* -- Logo above auth container ------------------------------ */
.auth-logo {
  display: block;
  margin: 0 auto 32px;
  height: 40px;
  width: auto;
}


/* ============================================================
   2. FAVORITES PAGE
   ============================================================ */

/* -- Page Wrapper ------------------------------------------- */
.favorites-page {
  background: var(--auth-ivory);
  min-height: 100vh;
  font-family: 'Jost', sans-serif;
}

/* -- Hero Header (charcoal bar) ----------------------------- */
.favorites-header {
  background: var(--auth-charcoal);
  padding: 140px 60px 60px;
  text-align: center;
}

.favorites-header h1 {
  font-family: 'Open Sans', sans-serif;
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--auth-ivory);
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}

.favorites-header h1 em {
  font-style: normal;
  color: var(--auth-accent);
}

.favorites-header p {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  color: var(--auth-warm-grey);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* -- Favorites Controls (sort/filter bar) ------------------- */
.favorites-controls {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 60px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.favorites-count {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  color: var(--auth-warm-grey);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.favorites-sort {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  color: var(--auth-text);
  background: transparent;
  border: 1px solid var(--auth-cream);
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.favorites-sort:focus {
  outline: none;
  border-color: var(--auth-accent);
}

/* -- 3-Column Card Grid ------------------------------------- */
.favorites-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 60px 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* -- Empty State -------------------------------------------- */
.favorites-empty {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 60px 140px;
  text-align: center;
}

.favorites-empty-icon {
  font-size: 3rem;
  margin-bottom: 24px;
  opacity: 0.3;
  display: block;
}

.favorites-empty h2 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--auth-charcoal);
  margin: 0 0 12px;
}

.favorites-empty p {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  color: var(--auth-warm-grey);
  font-weight: 300;
  max-width: 400px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.favorites-empty .auth-btn {
  display: inline-block;
  width: auto;
  padding: 16px 48px;
}

/* -- Listing Card ------------------------------------------- */
.listing-card {
  background: var(--auth-white);
  border-bottom: 3px solid var(--auth-charcoal);
  box-shadow: var(--auth-shadow);
  transition: var(--auth-transition);
  position: relative;
  overflow: hidden;
}

.listing-card:hover {
  box-shadow: var(--auth-shadow-hover);
  transform: translateY(-4px);
}

/* Card Image */
.listing-card-img {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
  background: var(--auth-cream);
}

.listing-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.listing-card:hover .listing-card-img img {
  transform: scale(1.04);
}

/* Status badge (e.g., "NEW", "SOLD") */
.listing-card-status {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: var(--auth-charcoal);
  color: var(--auth-ivory);
  z-index: 2;
}

/* Card Body */
.listing-card-body {
  padding: 24px 24px 28px;
}

/* Price */
.listing-card-price {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--auth-charcoal);
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

/* Address */
.listing-card-address {
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  color: var(--auth-text);
  font-weight: 400;
  margin: 0 0 4px;
  line-height: 1.4;
}

.listing-card-city {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  color: var(--auth-warm-grey);
  font-weight: 300;
  margin: 0 0 16px;
}

/* Beds / Baths / Sqft Row */
.listing-card-details {
  display: flex;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--auth-cream);
}

.listing-card-details span {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--auth-warm-grey);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}

.listing-card-details span strong {
  font-weight: 600;
  color: var(--auth-text);
}

/* Heart Icon Overlay */
.listing-card-heart {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--auth-transition);
  z-index: 3;
}

.listing-card-heart svg {
  width: 18px;
  height: 18px;
  stroke: var(--auth-charcoal);
  fill: none;
  stroke-width: 1.8;
  transition: var(--auth-transition);
}

.listing-card-heart:hover {
  background: var(--auth-white);
  transform: scale(1.08);
}

.listing-card-heart:hover svg {
  stroke: var(--auth-accent);
}

.listing-card-heart.active svg {
  fill: var(--auth-accent);
  stroke: var(--auth-accent);
}

.listing-card-heart.active:hover svg {
  fill: var(--auth-accent-dark);
  stroke: var(--auth-accent-dark);
}

/* Remove animation */
@keyframes heartPulse {
  0% { transform: scale(1); }
  25% { transform: scale(1.25); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.listing-card-heart.pulse svg {
  animation: heartPulse 0.4s ease;
}


/* ============================================================
   3. NAV HEART ICON
   ============================================================ */

.nav-heart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0;
  cursor: pointer;
  transition: var(--auth-transition);
  vertical-align: middle;
  line-height: 1;
}

.nav-heart svg {
  width: 16px;
  height: 16px;
  stroke: var(--auth-charcoal);
  fill: var(--auth-accent);
  stroke-width: 1.6;
  transition: var(--auth-transition);
  display: block;
}

.nav-heart:hover svg {
  stroke: var(--auth-accent);
}

.nav-heart.has-favorites svg {
  fill: var(--auth-accent);
  stroke: var(--auth-accent);
}

/* Count Badge */
.nav-heart .heart-badge {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 18px;
  height: 18px;
  background: var(--auth-accent);
  color: var(--auth-charcoal);
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0 4px;
  line-height: 1;
  opacity: 0;
  transform: scale(0);
  transition: var(--auth-transition);
}

.nav-heart.has-favorites .heart-badge {
  opacity: 1;
  transform: scale(1);
}


/* ============================================================
   4. AUTH PROMPT TOAST
   ============================================================ */

.auth-toast {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 0 24px;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.auth-toast.show {
  transform: translateY(0);
  pointer-events: auto;
}

.auth-toast-content {
  max-width: 520px;
  margin: 0 auto 32px;
  background: var(--auth-charcoal);
  color: var(--auth-ivory);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.15);
}

.auth-toast-content p {
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  margin: 0;
  line-height: 1.5;
}

.auth-toast-content p strong {
  font-weight: 500;
}

.auth-toast-content a {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--auth-charcoal);
  background: var(--auth-accent);
  padding: 10px 24px;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--auth-transition);
  flex-shrink: 0;
}

.auth-toast-content a:hover {
  background: var(--auth-accent-dark);
}

.auth-toast-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 28px;
  height: 28px;
  background: var(--auth-ivory);
  color: var(--auth-charcoal);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: var(--auth-transition);
}

.auth-toast-close:hover {
  background: var(--auth-accent);
  color: var(--auth-charcoal);
}

.auth-toast-content {
  position: relative;
}


/* ============================================================
   5. USER MENU DROPDOWN
   ============================================================ */

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

/* Trigger Button (initial circle) */
.user-menu-trigger {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--auth-charcoal);
  color: var(--auth-ivory);
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--auth-transition);
  text-transform: uppercase;
}

.user-menu-trigger:hover {
  background: var(--auth-accent);
  color: var(--auth-charcoal);
}

/* Dropdown Panel */
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 220px;
  background: var(--auth-white);
  box-shadow: 0 12px 48px rgba(28, 28, 28, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--auth-transition);
  z-index: 9999;
}

.user-menu-dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--auth-charcoal);
}

.user-menu.open .user-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown header (user info) */
.user-menu-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--auth-cream);
}

.user-menu-header .user-name {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--auth-charcoal);
  margin: 0 0 2px;
}

.user-menu-header .user-email {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  color: var(--auth-warm-grey);
  font-weight: 300;
  margin: 0;
}

/* Menu Items */
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 24px;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--auth-text);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  transition: var(--auth-transition);
}

.user-menu-item:hover {
  background: var(--auth-ivory);
  color: var(--auth-charcoal);
}

.user-menu-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--auth-warm-grey);
  fill: none;
  stroke-width: 1.6;
  flex-shrink: 0;
}

.user-menu-item:hover svg {
  stroke: var(--auth-accent);
}

/* Divider inside dropdown */
.user-menu-divider {
  height: 1px;
  background: var(--auth-cream);
  margin: 4px 0;
}

/* Logout item - subtle distinction */
.user-menu-item.logout {
  color: var(--auth-warm-grey);
  padding-top: 16px;
  padding-bottom: 18px;
}

.user-menu-item.logout:hover {
  color: var(--auth-error);
}

.user-menu-item.logout:hover svg {
  stroke: var(--auth-error);
}


/* ============================================================
   6. LOADING SPINNER (used in auth forms)
   ============================================================ */

.auth-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--auth-cream);
  border-top-color: var(--auth-accent);
  border-radius: 50%;
  animation: authSpin 0.7s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes authSpin {
  to { transform: rotate(360deg); }
}


/* ============================================================
   7. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* -- Tablet / 900px: Mobile nav adjustments ----------------- */
@media (max-width: 900px) {
  .auth-page {
    padding: 100px 20px 60px;
  }

  .auth-container {
    padding: 44px 32px 40px;
  }

  .favorites-header {
    padding: 120px 40px 48px;
  }

  .favorites-header h1 {
    font-size: 2.1rem;
  }

  .favorites-grid {
    padding: 32px 40px 80px;
    gap: 24px;
  }

  .favorites-controls {
    padding: 24px 40px 0;
  }

  .favorites-empty {
    padding: 80px 40px 120px;
  }

  .nav-heart {
    padding: 8px;
  }

  .user-menu-trigger {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }

  .user-menu-dropdown {
    right: -12px;
  }
}

/* -- Mobile / 767px: Grids collapse, form adjustments ------- */
@media (max-width: 767px) {
  .auth-page {
    padding: 80px 16px 40px;
    align-items: flex-start;
    padding-top: 100px;
  }

  .auth-container {
    padding: 40px 24px 36px;
    max-width: 100%;
    box-shadow: none;
    border-bottom: 3px solid var(--auth-charcoal);
  }

  .auth-header h1 {
    font-size: 1.5rem;
  }

  .auth-form {
    gap: 24px;
  }

  .auth-form-options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .favorites-header {
    padding: 100px 20px 40px;
  }

  .favorites-header h1 {
    font-size: 1.75rem;
  }

  .favorites-grid {
    grid-template-columns: 1fr;
    padding: 24px 20px 60px;
    gap: 24px;
  }

  .favorites-controls {
    padding: 20px 20px 0;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .favorites-empty {
    padding: 60px 20px 100px;
  }

  .listing-card-img {
    height: 220px;
  }

  .listing-card-body {
    padding: 20px 20px 24px;
  }

  .auth-toast-content {
    flex-direction: column;
    text-align: center;
    padding: 20px 24px;
    margin-bottom: 16px;
    gap: 16px;
  }

  .auth-toast-close {
    top: -10px;
    right: -6px;
  }

  .user-menu-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    min-width: 100%;
    transform: translateY(100%);
    border-top: 2px solid var(--auth-charcoal);
  }

  .user-menu.open .user-menu-dropdown {
    transform: translateY(0);
  }

  .user-menu-item {
    padding: 16px 24px;
    font-size: 0.9rem;
  }
}

/* -- Two-column grid at tablet ------------------------------ */
@media (max-width: 900px) and (min-width: 768px) {
  .favorites-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -- Small Mobile / 420px ----------------------------------- */
@media (max-width: 420px) {
  .auth-container {
    padding: 32px 20px 28px;
  }

  .auth-header h1 {
    font-size: 1.35rem;
  }

  .auth-header .auth-eyebrow {
    font-size: 0.6rem;
  }

  .auth-btn,
  .auth-btn-outline {
    padding: 14px 24px;
    font-size: 0.75rem;
  }

  .favorites-header h1 {
    font-size: 1.5rem;
  }

  .listing-card-price {
    font-size: 1.2rem;
  }

  .listing-card-details {
    gap: 12px;
    flex-wrap: wrap;
  }

  .listing-card-heart {
    width: 36px;
    height: 36px;
  }

  .listing-card-heart svg {
    width: 16px;
    height: 16px;
  }
}
