/* ═══════════════════════════════════════════════════════════
   poipoi — Auth pages (register, login, reset-password)
   ═══════════════════════════════════════════════════════════ */

/* ─── LAYOUT ─── */
.auth-shell {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 60px);
}

/* ─── LEFT PANEL ─── */
.auth-left {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  animation: fadeIn 0.8s ease both;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3.5rem 3rem 3rem;
}
.auth-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(200, 75, 47, 0.18) 100%);
  pointer-events: none;
}

.left-ghost-text {
  position: absolute;
  bottom: -1rem;
  left: -0.5rem;
  right: 1rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(5rem, 10vw, 8.5rem);
  font-weight: 900;
  color: rgba(255,255,255,0.035);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.04em;
}

.left-top {
  position: relative;
  z-index: 2;
}
.left-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.left-eyebrow::after {
  content: '';
  width: 2.5rem;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.left-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 3.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper);
  margin-bottom: 1.4rem;
}
.left-headline em {
  font-style: italic;
  font-weight: 400;
  color: rgba(244, 240, 232, 0.6);
}
.left-subtext {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(244, 240, 232, 0.45);
  line-height: 1.7;
  max-width: 36ch;
  border-left: 2px solid rgba(184, 154, 90, 0.4);
  padding-left: 1.1rem;
}
.left-preview-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(184, 154, 90, 0.45);
  padding: 0.25rem 0.65rem;
  margin-bottom: 1.1rem;
}
.left-bottom {
  position: relative;
  z-index: 2;
}
.left-facts {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.fact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.fact-icon {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.fact-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.fact-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.fact-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem;
  font-style: italic;
  color: rgba(255,255,255,0.35);
  line-height: 1.45;
}

/* ─── RIGHT PANEL ─── */
.auth-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3.5rem 3rem;
  position: relative;
  animation: slideUp 0.7s 0.2s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* ─── MODE TABS ─── */
.mode-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2.8rem;
  border-bottom: 1px solid var(--border);
}
.mode-tab {
  background: none;
  border: none;
  padding: 0.6rem 0;
  margin-right: 2.2rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.mode-tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.mode-tab:hover:not(.active) { color: var(--ink); }

/* ─── STEP INDICATOR ─── */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2.2rem;
  transition: opacity 0.3s;
}
.step-indicator.hidden { display: none; }

.step-dot {
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  position: relative;
  z-index: 1;
}
.step-dot.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.step-dot.done {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 3rem;
  transition: background 0.3s;
}
.step-line.done { background: var(--gold); }
.step-label {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 0.9rem;
}

/* ─── FORM PANELS ─── */
.form-panel { display: none; }
.form-panel.active {
  display: block;
  animation: panelIn 0.3s ease both;
}
.form-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.form-eyebrow::after {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--accent);
}
.form-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.form-title em { font-style: italic; font-weight: 400; }
.form-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ─── FORM FIELDS ─── */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}
.field-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.field-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0;
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.field-input::placeholder { color: var(--border); }
.field-input:focus { border-bottom-color: var(--ink); }
.field-input.error { border-bottom-color: var(--error); }
.field-error {
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--error);
  display: none;
}
.field-error.visible { display: block; }
.field-hint {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── CITY AUTOCOMPLETE ─── */
.city-suggestions {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--paper);
  border: 1px solid var(--border);
  z-index: 50;
  display: none;
}
.city-suggestions.open { display: block; }
.city-suggestion {
  padding: 0.65rem 0.85rem;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  transition: background 0.15s;
  border-bottom: 1px solid var(--cream);
}
.city-suggestion:last-child { border-bottom: none; }
.city-suggestion:hover { background: var(--cream); }
.city-suggestion-name { color: var(--ink); }
.city-suggestion-country {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── DEPARTURE DATE ─── */
.days-preview {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.4rem;
  min-height: 1rem;
  transition: color 0.2s;
}
.days-preview.has-value { color: var(--accent); }

/* ─── TOS ─── */
.tos-scroll {
  border: 1px solid var(--border);
  padding: 1.1rem 1.2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem;
  line-height: 1.75;
  color: #3a3530;
  max-height: 160px;
  overflow-y: auto;
  margin-bottom: 1.4rem;
  background: var(--cream);
}
.tos-scroll::-webkit-scrollbar { width: 4px; }
.tos-scroll::-webkit-scrollbar-thumb { background: var(--border); }
.tos-scroll h4 {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
  cursor: pointer;
}
.check-box {
  width: 16px;
  height: 16px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.check-box.checked {
  background: var(--ink);
  border-color: var(--ink);
}
.check-box.checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 2px;
  width: 5px; height: 8px;
  border-right: 1.5px solid var(--paper);
  border-bottom: 1.5px solid var(--paper);
  transform: rotate(40deg);
}
.check-label {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.6;
  letter-spacing: 0.03em;
}
.check-label a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}
.check-label a:hover { border-color: var(--accent); }

/* ─── SOCIAL DIVIDER ─── */
.social-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}
.social-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.social-divider-text {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── FORGOT LINK ─── */
.forgot-link {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  align-self: flex-end;
  margin-top: -0.6rem;
  margin-bottom: 1.4rem;
  display: inline-block;
}
.forgot-link:hover { color: var(--ink); border-bottom-color: var(--border); }

/* ─── SUCCESS STATE ─── */
.success-panel { display: none; text-align: center; padding: 2rem 0; animation: panelIn 0.4s ease both; }
.success-panel.active { display: block; }
.success-icon { font-size: 2.5rem; margin-bottom: 1.2rem; display: block; }
.success-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.success-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
  max-width: 36ch;
  margin: 0 auto 1.5rem;
}

/* ─── RESET BACK LINK ─── */
.reset-back {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}
.reset-back:hover { color: var(--ink); }

/* ─── TERMS NOTE ─── */
.auth-tos-note {
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin-bottom: 0.2rem;
}
.auth-tos-note a { color: var(--muted); text-decoration: underline; }
.auth-tos-note a:hover { color: var(--ink); }

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-left { min-height: 60vh; }
  .auth-right { padding: 3rem 2rem 2.5rem; }
}
