/* ===== Auth pages (login / signup) — split layout ===== */

body.auth-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--color-bg, #ffffff);
  overflow-x: hidden;
}

/* Hide the default .container wrapper styles on auth pages */
body.auth-page .container { display: none; }

/* ---------- Split layout ---------- */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ---------- LEFT: Showcase ---------- */
.auth-showcase {
  background: linear-gradient(160deg, #f0fdfa 0%, #ecfdf5 40%, #f0fdf4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.auth-showcase::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.auth-showcase::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -15%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.auth-showcase-inner {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: 100%;
}

.auth-showcase-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1c1917;
  text-decoration: none;
  margin-bottom: 1.75rem;
}
.auth-logo-img {
  height: 2.2em;
  width: auto;
}

.auth-showcase-logo span {
  color: var(--color-primary, #0d9488);
}

.auth-showcase-headline {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1c1917;
  margin: 0 0 0.625rem 0;
}

.auth-showcase-sub {
  font-size: 1rem;
  color: #57534e;
  line-height: 1.55;
  margin: 0 0 1.75rem 0;
}

/* ---------- Feature cards ---------- */
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.auth-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.auth-feature-card:hover {
  background: rgba(255, 255, 255, 0.7);
}

.auth-feature-card.auth-feature-active {
  background: rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.3);
}

.auth-feature-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.auth-feature-text h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1c1917;
  margin: 0 0 0.2rem 0;
}

.auth-feature-text p {
  font-size: 0.8rem;
  color: #57534e;
  line-height: 1.45;
  margin: 0;
}

.auth-feature-active .auth-feature-text p {
  color: #44403c;
}

/* ---------- Screenshot previews ---------- */
.auth-preview {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  aspect-ratio: 16 / 10;
  margin-bottom: 1rem;
}

.auth-preview-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-preview-img.auth-preview-active {
  opacity: 1;
}

.auth-preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

/* ---------- Dots ---------- */
.auth-preview-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.auth-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.auth-dot:hover {
  background: rgba(0, 0, 0, 0.3);
}

.auth-dot.auth-dot-active {
  background: var(--color-primary, #0d9488);
  transform: scale(1.25);
}

/* ---------- Trust strip ---------- */
.auth-showcase-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.75rem;
  color: #57534e;
}

.auth-showcase-story {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: #57534e;
  line-height: 1.45;
}

.auth-showcase-story a {
  color: var(--color-primary, #0d9488);
  font-weight: 600;
  text-decoration: none;
}

.auth-showcase-story a:hover {
  text-decoration: underline;
}

/* ---------- RIGHT: Form side ---------- */
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: var(--color-bg, #ffffff);
}

.auth-form-inner {
  max-width: 400px;
  width: 100%;
}

/* ---------- Signup: optional location (local experience) ---------- */
.auth-location-block {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(13, 148, 136, 0.18);
  background: linear-gradient(165deg, rgba(240, 253, 250, 0.65) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.auth-location-heading {
  font-size: 1rem;
  font-weight: 600;
  color: #1c1917;
  margin: 0 0 0.5rem 0;
}

.auth-location-intro {
  font-size: 0.88rem;
  color: #44403c;
  line-height: 1.5;
  margin: 0 0 0.65rem 0;
}

.auth-location-optional-line {
  font-size: 0.82rem;
  color: #57534e;
  margin: 0 0 1rem 0;
  line-height: 1.45;
}

.auth-location-block select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
}

.auth-city-wrap {
  position: relative;
}

.auth-city-field {
  position: relative;
}

.auth-suggest-list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 20;
  margin: 4px 0 0 0;
  padding: 0.25rem 0;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.auth-suggest-item {
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  color: #292524;
  cursor: pointer;
  line-height: 1.35;
}

.auth-suggest-item:hover,
.auth-suggest-item:focus {
  background: rgba(13, 148, 136, 0.1);
}

.auth-field-hint {
  font-size: 0.75rem;
  color: #78716c;
  margin: 0.35rem 0 0 0;
  line-height: 1.4;
}

.auth-input-warning {
  border-color: #d97706 !important;
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.25);
}

.auth-form-header {
  margin-bottom: 1.75rem;
}

.auth-form-header h1 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #1c1917;
  margin: 0 0 0.35rem 0;
}

.auth-form-header p {
  font-size: 0.95rem;
  color: #57534e;
  margin: 0;
}

/* Submit button — larger and more prominent */
.auth-submit-btn {
  display: block;
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary, #0d9488);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-top: 0.5rem;
}

.auth-submit-btn:hover {
  background: var(--color-primary-hover, #0f766e);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.25);
  transform: translateY(-1px);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

/* ---------- Value props below form ---------- */
.auth-value-props {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.auth-value-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.825rem;
  color: #57534e;
}

.auth-value-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.auth-footer {
  margin-top: 2rem;
  text-align: center;
}

.auth-footer p {
  font-size: 0.75rem;
  color: #78716c;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .auth-split {
    grid-template-columns: 1fr;
  }

  .auth-showcase {
    display: none;
  }

  .auth-form-side {
    min-height: 100vh;
    padding: 2rem 1.5rem;
  }

  .auth-form-inner {
    max-width: 440px;
  }

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

@media (max-width: 480px) {
  .auth-form-side {
    padding: 1.5rem 1rem;
  }

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

.auth-optional-label {
  font-weight: 400;
  color: #78716c;
  font-size: 0.8125rem;
}

.auth-forgot-link {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  text-align: right;
}

.auth-forgot-link a {
  color: var(--color-primary, #0d9488);
  text-decoration: none;
  font-weight: 500;
}

.auth-forgot-link a:hover {
  text-decoration: underline;
}

.auth-notice {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.auth-notice-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.auth-verify-intro {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #57534e;
  margin: 0 0 1rem;
}

.auth-secondary-btn {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #d6d3d1;
  background: #fff;
  color: #44403c;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

.auth-secondary-btn:hover {
  background: #fafaf9;
}

.auth-text-btn {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: var(--color-primary, #0d9488);
  font-size: 0.875rem;
  cursor: pointer;
}

#verification-code {
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.auth-choice-group {
  border: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.auth-choice-legend {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1c1917;
  margin-bottom: 0.35rem;
  padding: 0;
}

.auth-choice-intro {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #78716c;
  margin: 0 0 0.75rem;
}

.auth-choice-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-choice-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid #e7e5e4;
  border-radius: 0.625rem;
  background: #fafaf9;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.auth-choice-card:hover {
  border-color: #99f6e4;
  background: #f0fdfa;
}

.auth-choice-card input {
  margin-top: 0.2rem;
  accent-color: var(--color-primary, #0d9488);
  flex-shrink: 0;
}

.auth-choice-card:has(input:checked) {
  border-color: var(--color-primary, #0d9488);
  background: #ecfdf5;
  box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.15);
}

.auth-choice-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.auth-choice-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1c1917;
  line-height: 1.35;
}

.auth-choice-card-sub {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #78716c;
}

/* Large screens — a bit more breathing room */
@media (min-width: 1400px) {
  .auth-showcase-inner {
    max-width: 580px;
  }

  .auth-showcase-headline {
    font-size: 2rem;
  }
}
