/* Login + signup feature showcase
   Pure CSS animations. No external assets. */

.bs-auth-split {
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: linear-gradient(120deg, #f5f7f1 0%, #eef3e4 60%, #e6efd6 100%);
}

.bs-auth-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

/* Background haze */
.bs-auth-showcase::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(420px 420px at 12% 20%, rgba(59,109,17,.18), transparent 60%),
    radial-gradient(360px 360px at 90% 90%, rgba(132,180,72,.22), transparent 60%);
  filter: blur(4px);
  z-index: 0;
  animation: bsBgDrift 16s ease-in-out infinite alternate;
}
@keyframes bsBgDrift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(2%, -1%, 0) scale(1.03); }
}

/* Decorative floating shapes */
.bs-bg-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.bs-shape {
  position: absolute;
  border-radius: 30% 70% 60% 40% / 50% 40% 60% 50%;
  filter: blur(2px);
  opacity: .55;
  animation: bsBlob 14s ease-in-out infinite;
}
.bs-shape--a { width: 220px; height: 220px; background: #c9e2a6; top: 10%; left: -40px; animation-delay: 0s; }
.bs-shape--b { width: 180px; height: 180px; background: #f6e6a8; bottom: 12%; right: -30px; animation-delay: 2s; }
.bs-shape--c { width: 140px; height: 140px; background: #c5e7d8; bottom: 40%; left: 38%; animation-delay: 4s; opacity:.45; }
@keyframes bsBlob {
  0%, 100% { transform: translate(0,0) rotate(0deg) scale(1); }
  50%      { transform: translate(8px,-10px) rotate(8deg) scale(1.05); }
}

.bs-auth-showcase__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
}

.bs-auth-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #3B6D11;
  margin-bottom: 10px;
}
.bs-auth-eyebrow span { color: #111827; }
.bs-auth-headline {
  font-family: Georgia, serif;
  font-size: 32px;
  line-height: 1.15;
  color: #111827;
  margin: 0 0 10px;
}
.bs-typed {
  display: inline-block;
  color: #3B6D11;
  border-bottom: 2px dashed #3B6D11;
  padding-bottom: 1px;
  transition: opacity .2s ease, transform .2s ease;
}
.bs-typed.flip { opacity: 0; transform: translateY(4px); }

.bs-auth-tagline {
  color: #4B5563;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 18px;
}

/* Stage */
.bs-stage {
  position: relative;
  background: #ffffffcc;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 16px;
  height: 360px;
  box-shadow: 0 18px 40px rgba(17,24,39,.08);
  overflow: hidden;
  backdrop-filter: saturate(120%) blur(2px);
}

.bs-slide {
  position: absolute;
  inset: 16px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 14px;
  opacity: 0;
  transform: translateY(8px) scale(.99);
  transition: opacity .45s ease, transform .55s ease;
  pointer-events: none;
}
.bs-slide.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.bs-slide__visual {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  overflow: hidden;
}
.bs-explain {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bs-explain__tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #3B6D11;
}
.bs-explain h3 {
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.25;
  color: #111827;
  margin: 0 0 4px;
}
.bs-explain ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.bs-explain li {
  font-size: 12.5px;
  color: #374151;
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}
.bs-explain li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #84B448;
}

/* Slide 1 — flashcards */
.bs-flashcards {
  position: relative;
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bs-card {
  position: absolute;
  width: 220px;
  padding: 12px 14px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(17,24,39,.10);
  transform-origin: center bottom;
  animation: bsCardFloat 4s ease-in-out infinite;
}
.bs-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #27500A;
  background: #EAF3DE;
  border: 1px solid #C0DD97;
  border-radius: 999px;
  padding: 2px 8px;
  margin-bottom: 6px;
}
.bs-card__word { font-family: Georgia, serif; font-size: 20px; color: #111827; font-weight: 700; }
.bs-card__def  { font-size: 12px; color: #6B7280; margin-top: 2px; }
.bs-card--a { transform: rotate(-8deg) translate(-58px, 18px); animation-delay: 0s; }
.bs-card--b { transform: rotate(0deg)  translate(0, -4px);     animation-delay: .35s; z-index: 2; }
.bs-card--c { transform: rotate(8deg)  translate(58px, 18px);  animation-delay: .7s; }
@keyframes bsCardFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}
.bs-chips {
  margin-top: 10px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.bs-chips__track {
  display: flex;
  gap: 6px;
  width: max-content;
  animation: bsMarquee 22s linear infinite;
}
.bs-chips__track span {
  flex: 0 0 auto;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #C0DD97;
  background: #EAF3DE;
  color: #27500A;
}
@keyframes bsMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Slide 2 — Type-it AI feedback */
.bs-typeit {
  display: grid; gap: 10px; height: 100%;
}
.bs-typeit__word {
  font-family: Georgia, serif; font-size: 20px; color: #111827;
}
.bs-typeit__word small {
  display: inline-block; margin-left: 6px;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  color: #6B7280;
}
.bs-typeit__label { font-size: 11px; color: #6B7280; }
.bs-typeit__box {
  position: relative;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px; color: #111827;
  min-height: 48px;
  line-height: 1.55;
}
.bs-typed-out { white-space: pre-wrap; }
.bs-caret {
  display: inline-block; width: 2px; height: 16px;
  vertical-align: -3px;
  background: #111827;
  margin-left: 2px;
  animation: bsBlink 1s steps(1) infinite;
}
@keyframes bsBlink { 50% { opacity: 0; } }
.bs-scores { display: flex; gap: 8px; flex-wrap: wrap; }
.bs-score {
  font-size: 12px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  padding: 6px 10px; border-radius: 10px; color: #374151;
}
.bs-score b { margin-left: 6px; color: #111827; }
.bs-score--tot { background: #EAF3DE; border-color: #C0DD97; color: #27500A; }
.bs-score--tot b { color: #1f3d07; }

/* Slide 3 — Writing editor */
.bs-editor {
  height: 100%;
  display: flex; flex-direction: column; gap: 10px;
}
.bs-editor__top {
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 6px;
}
.bs-dot { width: 9px; height: 9px; border-radius: 50%; background: #fca5a5; }
.bs-dot:nth-child(2) { background: #fcd34d; }
.bs-dot:nth-child(3) { background: #86efac; }
.bs-editor__title { margin-left: 8px; font-size: 11px; color: #6B7280; }
.bs-editor__line { font-size: 13px; line-height: 1.55; color: #111827; margin: 0; }
.hl {
  position: relative; font-style: normal;
  padding: 0 3px; border-radius: 4px;
  animation: bsHlPop .8s ease both;
}
.hl--good { background: #dcfce7; color: #166534; animation-delay: .1s; }
.hl--err  { background: #fee2e2; color: #991b1b; text-decoration: underline wavy #dc2626; animation-delay: .35s; }
.hl--imp  { background: #fef9c3; color: #92400e; animation-delay: .6s; }
@keyframes bsHlPop {
  0%   { background: transparent; color: inherit; }
  100% { /* keep final */ }
}
.bs-band {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 8px 10px; display: grid; gap: 6px;
}
.bs-band__row {
  display: grid; grid-template-columns: 110px 1fr 30px; align-items: center; gap: 8px;
  font-size: 12px; color: #374151;
}
.bs-band__row b { color: #111827; text-align: right; }
.bar {
  height: 6px; border-radius: 999px; background: #e5e7eb; overflow: hidden;
}
.bar i {
  display: block; width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #84B448, #3B6D11);
  transition: width 1.1s cubic-bezier(.22,.61,.36,1);
}
.bs-band__score {
  border-top: 1px dashed #e5e7eb; padding-top: 6px;
  font-size: 12px; color: #3B6D11; text-align: right;
}
.bs-band__score strong { font-size: 16px; }

/* Slide 4 — Reading passage */
.bs-passage {
  height: 100%; display: flex; flex-direction: column; gap: 10px;
}
.bs-passage__head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: #6B7280;
  border-bottom: 1px dashed #e5e7eb; padding-bottom: 6px;
}
.bs-timer {
  font-variant-numeric: tabular-nums;
  color: #111827; font-weight: 600;
  background: #f8fafc; border: 1px solid #e5e7eb;
  border-radius: 999px; padding: 2px 8px;
}
.bs-passage__body { display: flex; flex-direction: column; gap: 7px; }
.bs-line {
  height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, #eef2f7 0%, #e5e7eb 50%, #eef2f7 100%);
  background-size: 200% 100%;
  animation: bsShimmer 2.4s linear infinite;
}
.bs-line--short { width: 65%; }
@keyframes bsShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.bs-passage__q {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 8px 10px;
}
.bs-q { font-size: 12px; color: #111827; margin-bottom: 6px; }
.bs-q-opts { display: flex; gap: 6px; }
.bs-opt {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  border: 1px solid #e5e7eb; border-radius: 8px;
  background: #fff; color: #6B7280;
}
.bs-opt--on {
  background: #EAF3DE; color: #27500A; border-color: #C0DD97;
  animation: bsTickPulse 1.6s ease-in-out infinite;
}
@keyframes bsTickPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* Slide 5 — Lessons & skills tiles */
.bs-tilegrid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  height: 100%;
}
.bs-tile {
  background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.bs-tile b { font-size: 13px; color: #111827; }
.bs-tile span { font-size: 11px; color: #6B7280; }
.bs-tile__bar {
  display: block; height: 6px; border-radius: 999px; background: #e5e7eb; overflow: hidden;
  margin-top: 6px;
}
.bs-tile__bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #84B448, #3B6D11);
  transition: width 1s cubic-bezier(.22,.61,.36,1);
}
.bs-tile--purple { background: #f4f1ff; border-color: #e7dfff; }
.bs-tile--green  { background: #effaf0; border-color: #cfe9d0; }
.bs-tile--amber  { background: #fffaf0; border-color: #fde9b8; }
.bs-tile--blue   { background: #eff6ff; border-color: #cfe1fb; }

/* Slide 6 — Streak */
.bs-streak {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 10px 14px;
  align-items: center;
}
.bs-streak__flame {
  font-size: 42px; line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(234,88,12,.35));
  animation: bsFlame 1.4s ease-in-out infinite;
  transform-origin: center bottom;
}
@keyframes bsFlame {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  50%      { transform: scale(1.06) rotate(2deg); }
}
.bs-streak__num { display: flex; align-items: baseline; gap: 8px; }
.bs-streak__num span {
  font-family: Georgia, serif; font-size: 36px; color: #111827; font-weight: 700;
}
.bs-streak__num small { font-size: 12px; color: #6B7280; }
.bs-streak__week {
  grid-column: 1 / -1; display: flex; gap: 6px;
}
.bs-streak__week span {
  flex: 1; height: 10px; border-radius: 4px; background: #e5e7eb;
}
.bs-streak__week .on { background: #84B448; }
.bs-streak__week .today {
  background: #3B6D11;
  animation: bsTodayPulse 1.4s ease-in-out infinite;
}
@keyframes bsTodayPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,109,17,.45); }
  50%      { box-shadow: 0 0 0 6px rgba(59,109,17,0); }
}
.bs-streak__chips {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.bs-streak__chips span {
  font-size: 11px;
  color: #27500A; background: #EAF3DE; border: 1px solid #C0DD97;
  padding: 3px 8px; border-radius: 999px;
}
.bs-streak__chips i { font-style: normal; font-weight: 700; }

/* Dots / progress controls */
.bs-auth-dots {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 14px 0 8px;
}
.bs-auth-dot {
  font-size: 11px; font-weight: 700;
  letter-spacing: .04em;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #4B5563;
  cursor: pointer;
  transition: all .2s;
}
.bs-auth-dot:hover { border-color: #9CA3AF; }
.bs-auth-dot.is-on {
  background: #3B6D11; border-color: #3B6D11; color: #fff;
  box-shadow: 0 4px 10px rgba(59,109,17,.25);
}

/* Bullets */
.bs-auth-bullets {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px;
}
.bs-auth-bullets li {
  font-size: 13px; color: #374151;
  padding-left: 22px; position: relative;
}
.bs-auth-bullets li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 16px; height: 16px;
  background: #3B6D11; color: #fff;
  font-size: 11px; font-weight: 700;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Right column */
.bs-auth-formwrap {
  display: flex; align-items: center; justify-content: center;
  padding: 32px 28px;
  background: #fff;
}
.bs-auth-split .bs-auth-card {
  box-shadow: 0 14px 40px rgba(17,24,39,.07);
  border-color: #eef2f7;
}

/* Reduced motion: keep static layout, drop animations */
@media (prefers-reduced-motion: reduce) {
  .bs-auth-showcase::before,
  .bs-shape, .bs-card, .hl, .bs-line, .bs-opt--on,
  .bs-streak__flame, .bs-streak__week .today,
  .bs-chips__track, .bs-caret {
    animation: none !important;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .bs-slide { grid-template-columns: 1fr; }
  .bs-stage { height: auto; min-height: 360px; }
  .bs-slide__visual { min-height: 180px; }
}
@media (max-width: 960px) {
  .bs-auth-split { grid-template-columns: 1fr; }
  .bs-auth-showcase { padding: 28px 22px 8px; }
  .bs-auth-formwrap { padding: 22px; }
  .bs-stage { min-height: 320px; }
  .bs-auth-bullets { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bs-auth-headline { font-size: 26px; }
  .bs-card { width: 200px; }
  .bs-card--a { transform: rotate(-7deg) translate(-30px, 14px); }
  .bs-card--c { transform: rotate(7deg)  translate(30px, 14px); }
  .bs-band__row { grid-template-columns: 100px 1fr 28px; }
}
