/* =========================================================
   Rajasthani Vibes — Login & Signup (colorful / advanced)
   Scoped with the "av-" prefix so other auth pages are untouched
   ========================================================= */
:root {
  --av-red: #E10600;
  --av-magenta: #D6247B;
  --av-orange: #FF8A00;
  --av-gold: #FFC93C;
  --av-maroon: #5c0a1e;
  --av-ink: #1b1220;
  --av-soft: #6b6272;
  --av-line: #ece6ef;
  --av-grad: linear-gradient(120deg, #E10600 0%, #D6247B 55%, #FF8A00 100%);
}

* { box-sizing: border-box; }

body.av-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--av-ink);
  background: linear-gradient(135deg, #E10600, #D6247B, #7a1fa2, #FF8A00, #E10600);
  background-size: 400% 400%;
  animation: avShift 18s ease infinite;
  position: relative;
  overflow-x: hidden;
}
@keyframes avShift { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }

/* dotted pattern + floating blobs */
body.av-body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.18) 1.5px, transparent 1.5px);
  background-size: 26px 26px; opacity: .55;
}
.av-blob { position: fixed; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; animation: avFloat 14s ease-in-out infinite; }
.av-blob.b1 { width: 340px; height: 340px; background: #FFC93C; top: -90px; left: -80px; }
.av-blob.b2 { width: 380px; height: 380px; background: #7a1fa2; bottom: -120px; right: -100px; animation-delay: -5s; }
.av-blob.b3 { width: 260px; height: 260px; background: #00c2a8; top: 45%; left: 55%; opacity: .35; animation-delay: -9s; }
@keyframes avFloat { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(30px,-40px) scale(1.12)} }

.av-page { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }

.av-shell {
  width: 100%; max-width: 1000px;
  display: grid; grid-template-columns: 1.05fr 1fr;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 28px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(60,0,20,.45);
  overflow: hidden;
  animation: avRise .7s cubic-bezier(.2,.8,.2,1) both;
}
.av-shell.wide { max-width: 1060px; }
@keyframes avRise { from{opacity:0;transform:translateY(28px) scale(.98)} to{opacity:1;transform:none} }

/* ---------- Left hero ---------- */
.av-hero { padding: 46px 42px; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 22px; position: relative; }
.av-logo { display: flex; align-items: center; gap: 12px; font: 800 24px/1 'Sora','Inter',sans-serif; letter-spacing: .3px; text-decoration: none; color: #fff; }
.av-logo img { width: auto; height: 78px; max-width: 100%; padding: 8px 14px; border-radius: 18px; box-shadow: 0 6px 18px rgba(0,0,0,.3); background: #fff; object-fit: contain; }
.av-hero h1 { font: 800 34px/1.15 'Sora','Inter',sans-serif; margin: 0; color: #fff; }
.av-hero h1 span { background: linear-gradient(90deg, #FFE082, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.av-hero p.lead { color: #fff; margin: 0; font-size: 15px; line-height: 1.6; opacity: .92; }
.av-feats { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.av-feats li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.av-feats .ic { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; display: grid; place-items: center; font-size: 15px; color: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.2); }
.av-feats li:nth-child(1) .ic { background: linear-gradient(135deg,#FF8A00,#FFC93C); }
.av-feats li:nth-child(2) .ic { background: linear-gradient(135deg,#00c2a8,#12a4ff); }
.av-feats li:nth-child(3) .ic { background: linear-gradient(135deg,#D6247B,#7a1fa2); }
.av-feats li:nth-child(4) .ic { background: linear-gradient(135deg,#43e97b,#0bb36a); }
.av-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.av-chip { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; display: inline-flex; gap: 7px; align-items: center; }

/* ---------- Right card ---------- */
.av-card { background: #fff; padding: 42px 38px; position: relative; }
.av-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--av-grad); }
.av-card h2 { color: var(--av-ink); margin: 0 0 4px; font: 800 26px/1.2 'Sora','Inter',sans-serif; }
.av-card .sub { margin: 0 0 22px; color: var(--av-soft); font-size: 14px; }
.av-mobile-brand { display: none; }

.av-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; margin-bottom: 14px; animation: avShake .45s; }
.av-alert.danger { background: #fff0ef; color: #b30500; border: 1px solid #ffc9c6; }
.av-alert.success { background: #eafaf1; color: #12703a; border: 1px solid #b8ecd0; }
@keyframes avShake { 20%,60%{transform:translateX(-5px)} 40%,80%{transform:translateX(5px)} }

.av-field { margin-bottom: 15px; }
.av-field label { display: block; font-size: 12.5px; font-weight: 700; color: #3c3344; margin-bottom: 6px; letter-spacing: .2px; }
.av-input { position: relative; }
.av-input > i.lead-ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #b3a8bb; font-size: 14px; transition: color .2s; pointer-events: none; }
.av-input input {
  width: 100%; padding: 13px 44px 13px 44px; font: 500 14.5px 'Inter',sans-serif; color: var(--av-ink);
  background: #faf7fc; border: 2px solid var(--av-line); border-radius: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.av-input input::placeholder { color: #b9afc1; }
.av-input input:focus { background: #fff; border-color: var(--av-magenta); box-shadow: 0 0 0 4px rgba(214,36,123,.13); }
.av-input:focus-within > i.lead-ic { color: var(--av-magenta); }
.av-input input.ok { border-color: #2ecc71; }
.av-input input.bad { border-color: #ff4d4d; }
.av-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: transparent; color: #9c90a6; cursor: pointer; border-radius: 10px; }
.av-eye:hover { background: #f1e9f6; color: var(--av-magenta); }

.av-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.av-meter { height: 6px; background: #efe8f4; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.av-meter i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .3s, background .3s; }
.av-hint { font-size: 12px; margin-top: 5px; color: var(--av-soft); min-height: 16px; font-weight: 600; }

.av-captcha { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg,#fff7e0,#ffe9f3); border: 2px dashed #f4b6d2; border-radius: 14px; padding: 12px 14px; }
.av-captcha .q { font: 800 15px 'Sora',sans-serif; color: #b3125f; white-space: nowrap; }
.av-captcha input { flex: 1; min-width: 0; padding: 10px 12px; border: 2px solid #f1d0e0; border-radius: 10px; background: #fff; font: 600 14px 'Inter',sans-serif; outline: none; }
.av-captcha input:focus { border-color: var(--av-magenta); }

.av-links { display: flex; justify-content: flex-end; margin: -4px 0 16px; }
.av-links a, .av-switch a { color: var(--av-red); font-weight: 700; text-decoration: none; }
.av-links a { font-size: 13px; }
.av-links a:hover, .av-switch a:hover { text-decoration: underline; }

.av-btn {
  position: relative; width: 100%; padding: 14px 18px; border: 0; border-radius: 14px; cursor: pointer; overflow: hidden;
  font: 800 15.5px 'Sora','Inter',sans-serif; color: #fff; letter-spacing: .3px;
  background: var(--av-grad); background-size: 200% 100%;
  box-shadow: 0 12px 26px rgba(214,36,123,.38);
  transition: transform .15s, box-shadow .2s, background-position .5s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.av-btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 32px rgba(214,36,123,.45); }
.av-btn::after { content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: avShine 3.4s infinite; }
@keyframes avShine { 0%{left:-80%} 55%,100%{left:140%} }
.av-btn.loading { pointer-events: none; opacity: .88; }
.av-btn.loading .txt { opacity: .9; }
.av-spin { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: avSpin .7s linear infinite; display: none; }
.av-btn.loading .av-spin { display: inline-block; }
@keyframes avSpin { to { transform: rotate(360deg); } }

.av-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; color: #9c90a6; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.av-divider::before, .av-divider::after { content: ''; flex: 1; height: 1px; background: var(--av-line); }

.av-switch { text-align: center; margin: 18px 0 0; font-size: 14px; color: var(--av-soft); }
.av-secure { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 14px; font-size: 11.5px; color: #9c90a6; font-weight: 600; }
.av-secure i { color: #2ecc71; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .av-shell, .av-shell.wide { grid-template-columns: 1fr; max-width: 480px; }
  .av-hero { display: none; }
  .av-card { padding: 34px 24px 28px; }
  .av-mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font: 800 20px 'Sora',sans-serif; }
  .av-mobile-brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 4px 12px rgba(225,6,0,.3); }
  .av-mobile-brand span { background: var(--av-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
@media (max-width: 480px) {
  .av-page { padding: 12px; }
  .av-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body.av-body, .av-blob, .av-btn::after, .av-shell { animation: none !important; }
}

/* Audience select (register) */
.av-input select {
  width: 100%; padding: 13px 44px 13px 44px; font: 500 14.5px 'Inter',sans-serif; color: var(--av-ink);
  background: #faf7fc; border: 2px solid var(--av-line); border-radius: 14px; outline: none; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.av-input select:focus { background: #fff; border-color: var(--av-magenta); box-shadow: 0 0 0 4px rgba(214,36,123,.13); }
.av-input:focus-within > i.lead-ic { color: var(--av-magenta); }
.av-select::after {
  content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 12px;
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #b3a8bb; pointer-events: none;
}
