/* =========================================================
   YatraSaathi — auth.css  (Jadoo Theme — matches index.css)
   ========================================================= */

/* ── Design Tokens (mirrors index.css) ─────────────────── */
:root {
  --clr-primary:   #DF6951;
  --clr-secondary: #F1A501;
  --clr-heading:   #181E4B;
  --clr-text:      #5E6282;
  --font-heading:  'Volkhov', serif;
  --font-body:     'Poppins', sans-serif;

  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-2xl:  36px;
  --r-full: 9999px;

  --dur-fast: 150ms;
  --dur-base: 300ms;
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: #fdf9f6;
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; transition: 0.3s; }
ul  { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ── Warm blob backgrounds (matches landing) ────────────── */
body::before {
  content: '';
  position: fixed;
  top: 0; right: 0;
  width: 660px; height: 780px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 705 814' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M705 0H0C0 0 54.4983 147.16 186.294 205.82C318.09 264.479 285.344 433.003 338.401 534.821C391.458 636.639 494.619 655.772 543.684 723.111C592.748 790.451 705 814 705 814V0Z' fill='%23FFF1DA'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: top right;
  background-size: cover;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
}

body::after {
  content: '';
  position: fixed;
  bottom: -100px; left: -100px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241,165,1,0.10) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* ── Spring decoration (bottom-right corner) ────────────── */
.auth-spring-decor {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  animation: spinSlow 24s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Logo nav link (top-left) ───────────────────────────── */
.nav-logo {
  position: fixed;
  top: 22px;
  left: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.25s;
  width: auto;
  max-width: 280px;
}

.nav-logo:hover { opacity: 0.8; }

.nav-logo-img {
  height: 100px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}

.nav-logo-fallback {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-heading);
}

.nav-logo-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--clr-primary), #FF8E75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(223,105,81,0.35);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%,100% { box-shadow: 0 4px 14px rgba(223,105,81,0.35); }
  50%      { box-shadow: 0 6px 22px rgba(223,105,81,0.55), 0 0 32px rgba(223,105,81,0.18); }
}

/* ── Page wrapper ───────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

/* ── Auth card ──────────────────────────────────────────── */
.auth-container {
  width: 100%;
  max-width: 1060px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(24,30,75,0.10),
    0 8px 24px rgba(0,0,0,0.05);
  background: #fff;
  border: 1.5px solid rgba(223,105,81,0.10);
  min-height: 660px;
}

/* ════════════════════════════════════════════════════════
   VISUAL SIDE
════════════════════════════════════════════════════════ */
.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  overflow: hidden;
  background: #fdf5ee;
}

/* Warm inner blob behind illustration */
.auth-visual-blob {
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241,165,1,0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* Plus pattern decorations */
.auth-plus-decor { position: absolute; pointer-events: none; opacity: 0.55; }
.auth-plus-tl { top: 18px; left: 16px; }
.auth-plus-br { bottom: 110px; right: 12px; opacity: 0.35; }

/* ── Illustration block ─────────────────────────────────── */
.auth-illus-wrap {
  position: relative;
  margin-bottom: 1.75rem;
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.auth-illus-main {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 20px 60px rgba(24,30,75,0.12),
    0 6px 18px rgba(0,0,0,0.07);
}

.auth-illus-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease, transform 14s ease;
}

.auth-illus-main:hover .auth-illus-img { transform: scale(1.04); }

/* bottom gradient over photo */
.auth-illus-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(24,30,75,0.55) 0%,
    rgba(223,105,81,0.10) 55%,
    transparent 100%
  );
}

/* ── Floating stat cards ────────────────────────────────── */
.auth-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  background: #fff;
  border-radius: 14px;
  box-shadow:
    0 12px 35px rgba(24,30,75,0.12),
    0 3px 8px rgba(0,0,0,0.06);
  animation: floatBob 4s ease-in-out infinite;
  white-space: nowrap;
  z-index: 3;
}

.auth-float-card:nth-child(2) { animation-delay: -2s; }

.auth-float-top    { top: 14px; right: -12px; }
.auth-float-bottom { bottom: 14px; left: -12px; animation-delay: -1s; }

@keyframes floatBob {
  0%,100% { transform: translateY(0);   }
  50%      { transform: translateY(-7px); }
}

.auth-float-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

.auth-float-info { display: flex; flex-direction: column; }

.auth-float-num {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-heading);
  line-height: 1.2;
}

.auth-float-label {
  font-size: 0.75rem;
  color: var(--clr-text);
  font-weight: 500;
}

/* ── Visual bottom copy ─────────────────────────────────── */
.auth-visual-content { position: relative; z-index: 2; }

.auth-visual-heading {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-heading);
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.auth-visual-sub {
  font-size: 0.9rem;
  color: var(--clr-text);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

/* Feature pills (matching landing page service badges) */
.auth-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: #fff;
  border: 1.5px solid rgba(223,105,81,0.18);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-heading);
  box-shadow: 0 2px 8px rgba(223,105,81,0.08);
  transition: all 0.25s ease;
}

.auth-pill i { color: var(--clr-primary); font-size: 0.75rem; }
.auth-pill:hover {
  background: rgba(223,105,81,0.06);
  border-color: rgba(223,105,81,0.35);
  transform: translateY(-1px);
}

/* Back to Home button (landing-page CTA style) */
.auth-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.7rem 1.4rem;
  background: linear-gradient(135deg, var(--clr-primary), #FF8E75);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--r-full);
  box-shadow: 0 8px 22px rgba(223,105,81,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  width: fit-content;
}

.auth-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(223,105,81,0.50);
  color: #fff;
}

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

/* ════════════════════════════════════════════════════════
   FORM SIDE
════════════════════════════════════════════════════════ */
.auth-form-side {
  padding: 2.75rem 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  background: #fff;
}

/* Logo at top of form */
.auth-form-logo {
  margin-bottom: 1.75rem;
}

.auth-form-logo-img {
  height: 0px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}

.auth-logo-fallback {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-heading);
}

/* ── Tabs ───────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.75rem;
  background: #f5f0eb;
  border-radius: var(--r-full);
  padding: 5px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--clr-text);
  cursor: pointer;
  border-radius: var(--r-full);
  transition: all var(--dur-base) var(--ease);
}

.auth-tab:hover { color: var(--clr-primary); }

.auth-tab.active {
  background: #fff;
  color: var(--clr-primary);
  box-shadow: 0 4px 14px rgba(223,105,81,0.14), 0 1px 4px rgba(0,0,0,0.06);
}

/* ── Error Banner ───────────────────────────────────────── */
.auth-error-banner {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  background: rgba(239,68,68,0.07);
  border: 1.5px solid rgba(239,68,68,0.22);
  color: #dc2626;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  animation: fadeUp 0.3s ease;
}

/* ── Form Controls ──────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-heading);
  margin-bottom: 0.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: #f9f5f2;
  border: 1.5px solid rgba(24,30,75,0.09);
  border-radius: var(--r-md);
  color: var(--clr-heading);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  transition: all var(--dur-base) var(--ease);
  outline: none;
  -webkit-appearance: none;
}

.form-control::placeholder { color: #c0b8cc; }

.form-control:focus {
  border-color: var(--clr-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(223,105,81,0.11);
}

/* ── Input Icon Wrapper ─────────────────────────────────── */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 1.1rem;
  color: #ccc5d9;
  font-size: 1rem;
  transition: color 0.25s ease;
  pointer-events: none;
}

.input-with-icon:focus-within i { color: var(--clr-primary); }
.input-with-icon .form-control   { padding-left: 3rem; }

/* ── Forgot link ────────────────────────────────────────── */
.forgot-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-primary);
  transition: opacity 0.2s;
}
.forgot-link:hover { opacity: 0.75; }

/* ── Social proof ───────────────────────────────────────── */
.auth-social-proof {
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--clr-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-container {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  .auth-visual { display: none; }
  .auth-wrapper { padding-top: 5.5rem; }
}

@media (max-width: 520px) {
  .auth-wrapper     { padding: 5rem 0.75rem 1.5rem; }
  .auth-form-side   { padding: 2rem 1.5rem; }
  .auth-float-card  { display: none; }
}
