/* ==========================================================================
   Splash / Login / Register
   ========================================================================== */

/* ---- Splash ---- */
.splash {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s-6) var(--s-5) var(--s-7);
  overflow: hidden;
}

/* Moody night-city hero, drawn as layered gradients + a generated car SVG so
   the build stays fully offline and license-clean. */
.splash-hero {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Biased above centre: the car sits in the upper-middle of the shot, and a
   short viewport should crop the empty asphalt rather than the subject. */
.splash-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.splash-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    #0d0d0f 4%,
    rgba(13, 13, 15, 0.94) 26%,
    rgba(13, 13, 15, 0.55) 52%,
    rgba(13, 13, 15, 0.3) 100%
  );
}

.splash-content {
  position: relative;
  z-index: 1;
}

.splash-logo {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}

.splash-logo .mark {
  width: 62px;
  height: 62px;
  filter: drop-shadow(0 0 22px rgba(245, 166, 35, 0.45));
}

.splash-logo .wordmark {
  font-size: 40px;
  font-weight: 800;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.splash-title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  margin-bottom: var(--s-2);
}

/* 34ch capped this ~54px narrower than the phone column had spare, which pushed
   «فروشنده.» onto a line of its own. 42ch still keeps the measure comfortable on
   a wide screen but lets a phone use its full width; `pretty` is the backstop
   against a lone last word at any other size. */
.splash-sub {
  color: var(--text-2);
  font-size: var(--fs-md);
  margin-bottom: var(--s-6);
  max-width: 42ch;
  text-wrap: pretty;
}

.splash-actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.splash-guest {
  margin-top: var(--s-4);
  text-align: center;
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: var(--s-2);
}

/* ---- Auth forms ---- */
.auth {
  padding: var(--s-2) var(--s-5) var(--s-7);
}

.auth-head {
  margin: var(--s-5) 0 var(--s-6);
}

.auth-head h1 {
  font-size: var(--fs-3xl);
  font-weight: 800;
  margin-bottom: var(--s-2);
}

.auth-head p {
  color: var(--text-muted);
  font-size: var(--fs-md);
}

.auth-forgot {
  display: block;
  text-align: start;
  color: var(--gold-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin: calc(var(--s-4) * -1 + var(--s-1)) 0 var(--s-5);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: var(--s-6) 0 var(--s-4);
  color: var(--text-faint);
  font-size: var(--fs-sm);
}

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

.social-row {
  display: flex;
  justify-content: center;
  gap: var(--s-3);
}

.social-btn {
  width: 56px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: all var(--dur-fast);
}

.social-btn:active {
  transform: scale(0.94);
  background: var(--surface-2);
}

.auth-foot {
  margin-top: var(--s-7);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.auth-foot .btn-link { margin-inline-start: var(--s-1); }
