/* ============================================================
   Unified auth page (/login) — Login / Sign Up / Forgot in one page.
   Full-width layout: ONE background fills the whole viewport; the hero
   composition sits in a left canvas (.auth-hero, aspect-locked so the
   cat/cards/letters keep their arrangement) and the form card is in its
   own right column, flush to the right edge. Hero text scales with the
   canvas via container-query (cqw) units; the card uses fixed px.
   ============================================================ */

.auth-page {
  min-height: 100vh; margin: 0;
  font-family: 'Inter', system-ui, sans-serif; color: #241a4e;
  background: #b89ad8 url("/assets/auth/studio-bg.webp?v=7") center / cover no-repeat fixed;
  overflow-x: hidden;
}

/* Form sits over the frosted panel built into the background (centre-right). */
.auth-shell {
  min-height: 100vh; box-sizing: border-box;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 24px;
}
.auth-formcol { margin-right: clamp(16px, 13vw, 240px); }

/* ---------------- Left hero canvas ---------------- */
.auth-hero {
  position: relative;
  width: min(100%, calc(94vh * 1.26));
  aspect-ratio: 1.26 / 1;
  justify-self: end;
  container-type: inline-size;
}
.auth-hero > * { position: absolute; }

.auth-logo { top: 3.5%; left: 3.4%; display: flex; align-items: center; gap: 1.14cqw; }
.auth-logo .mark {
  display: grid; place-items: center; height: 5.68cqw; width: 5.68cqw; border-radius: 1.85cqw;
  background: linear-gradient(135deg, #7c3aed, #ec4899); box-shadow: 0 1.42cqw 2.84cqw -0.99cqw rgba(124, 58, 237, .6);
}
.auth-logo .mark img { height: 4.54cqw; width: 4.54cqw; }
.auth-logo .brand { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 2.91cqw; line-height: 1; }
.auth-logo .brand .b { color: #7c3aed; } .auth-logo .brand .e { color: #ec4899; }
.auth-logo .tag { font-size: 1.02cqw; letter-spacing: .2em; color: #6b6a86; font-weight: 600; margin-top: .43cqw; }

.auth-cat {
  left: 45%; top: 9%; width: 40%; height: auto; z-index: 3; transform: translateX(-50%);
  filter: drop-shadow(0 2.84cqw 3.4cqw rgba(124, 58, 237, .3));
  animation: authFloatX 7s ease-in-out infinite;
}

.fc {
  z-index: 4; background: rgba(255, 255, 255, .94); backdrop-filter: blur(4px);
  border-radius: 1.85cqw; padding: 1.28cqw 1.56cqw; box-shadow: 0 1.7cqw 3.7cqw -1.42cqw rgba(124, 58, 237, .4);
  display: flex; align-items: center; gap: 0.85cqw; font-weight: 700; font-size: 1.49cqw; color: #241a4e; white-space: nowrap;
}
.fc .chev { margin-left: 0.43cqw; color: #a78bfa; }
.fc small { display: block; font-weight: 500; font-size: 1.11cqw; color: #6b6a86; }
.fc-col { display: flex; flex-direction: column; }
.fc-col .fc-title { font-weight: 700; font-size: 1.42cqw; }
.fc-col .flames { font-size: 1.35cqw; line-height: 1; margin-top: 0.28cqw; letter-spacing: 0.085cqw; }
.fc-streak { left: 11.4%; top: 27%; animation: authFloat 6s ease-in-out infinite; }
.fc-xp { left: 8.5%; top: 46%; animation: authFloat 6.6s ease-in-out .5s infinite; }
.fc-ai { left: 59.6%; top: 36%; animation: authFloat 6.2s ease-in-out .3s infinite; }
.fc-bubble {
  display: block; text-align: center; left: 52.5%; top: 11%; border-radius: 2.27cqw;
  font-family: 'Fredoka', sans-serif; font-size: 1.63cqw; color: #ec4899; line-height: 1.12; animation: authFloat 5.6s ease-in-out infinite;
}
.fc-bubble b { color: #7c3aed; }

.ltr { z-index: 2; height: auto; animation: authFloat 7s ease-in-out infinite; }
.ltr-a { left: 4.5%; top: 48%; width: 13.5%; animation-duration: 6.4s; }
.ltr-b { left: 66%; top: 37%; width: 11.5%; animation-duration: 7.2s; }
.ltr-c { left: 70.5%; top: 55%; width: 12.5%; animation-duration: 6.8s; }
.star-deco, .deco { z-index: 2; height: auto; }
.star-1 { left: 38.3%; top: 10%; width: 4.7%; }
.star-2 { left: 17%; top: 72%; width: 4.3%; }
.star-3 { left: 73%; top: 30%; width: 3.3%; }
.star-4 { left: 12.1%; top: 43%; width: 2.84%; }
.bfly-1 { left: 61%; top: 48%; width: 4.2%; animation: authFloat 6.5s ease-in-out infinite; }
.bfly-2 { left: 15%; top: 81%; width: 3.3%; animation: authFloat 7s ease-in-out .6s infinite; }
.pstar-1 { left: 60%; top: 25%; width: 3%; }
.pstar-2 { left: 3.5%; top: 29%; width: 2.6%; }

.note-hand { z-index: 4; font-family: 'Caveat', cursive; line-height: 1.15; color: #8b5cf6; }
.note-l { left: 7.1%; top: 16%; font-size: 2.13cqw; }

.auth-head { left: 22%; top: 59%; width: 56.8%; z-index: 4; }
.auth-head h1 { font-family: 'Fredoka', sans-serif; font-weight: 700; margin: 0; font-size: 5.68cqw; line-height: 1.02; color: #241a4e; }
.auth-head h1 .the { color: #7c3aed; }
.auth-head h1 .fun { color: #ec4899; background: linear-gradient(transparent 70%, #fbbf24 70%, #fbbf24 88%, transparent 88%); }
.auth-head p { margin: 1.42cqw 0 0; max-width: 48.3cqw; color: #5b5878; font-size: 1.63cqw; line-height: 1.5; }

.auth-feats { left: 7.1%; bottom: 3.5%; width: 68.2%; z-index: 4; display: flex; gap: 1.42cqw; }
.auth-feat {
  flex: 1; display: flex; align-items: center; gap: 1.14cqw; background: rgba(255, 255, 255, .92);
  border-radius: 1.85cqw; padding: 1.28cqw 1.56cqw; box-shadow: 0 1.7cqw 3.4cqw -1.42cqw rgba(124, 58, 237, .35);
}
.auth-feat .fico { font-size: 2.13cqw; }
.auth-feat b { display: block; font-size: 1.42cqw; color: #241a4e; }
.auth-feat span { font-size: 1.16cqw; color: #6b6a86; }

/* ---------------- Right column: form card ---------------- */
.auth-formcol { position: relative; display: flex; flex-direction: column; align-items: stretch; width: 100%; max-width: 416px; }

.auth-logo2 { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; width: 100%; max-width: 420px; }
.auth-logo2 .mark { display: grid; place-items: center; height: 48px; width: 48px; border-radius: 15px; background: linear-gradient(135deg, #7c3aed, #ec4899); box-shadow: 0 10px 22px -8px rgba(124, 58, 237, .55); }
.auth-logo2 .mark img { height: 38px; width: 38px; }
.auth-logo2 .brand { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 24px; line-height: 1; }
.auth-logo2 .brand .b { color: #7c3aed; } .auth-logo2 .brand .e { color: #ec4899; }
.auth-logo2 .tag { font-size: 10px; letter-spacing: .2em; color: #6b6a86; font-weight: 600; margin-top: 3px; }

.auth-card2 {
  width: 100%; max-width: 420px; box-sizing: border-box;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 24px;
  padding: 20px 24px 22px; box-shadow: 0 30px 60px -28px rgba(80, 40, 120, .45);
}

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; background: rgba(124, 58, 237, .08); border-radius: 999px; padding: 5px; margin-bottom: 14px; }
.auth-tab { border: 0; background: transparent; cursor: pointer; padding: 9px; border-radius: 999px; font-weight: 700; font-size: 15px; color: #6b6a86; transition: all .15s; }
.auth-tab.active { background: linear-gradient(135deg, #7c3aed, #ec4899); color: #fff; box-shadow: 0 8px 18px -8px rgba(236, 72, 153, .6); }

.auth-panel { display: none; }
.auth-panel.active { display: block; animation: authFade .25s ease; }
@keyframes authFade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.auth-h2 { font-size: 26px; font-weight: 800; margin: 0; color: #241a4e; line-height: 1.1; }
.auth-sub { margin: 3px 0 13px; font-size: 14px; color: #5b5878; }

.auth-label { display: block; margin-bottom: 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6b6a86; }
.auth-card2 form > div { margin-bottom: 11px; }
.auth-field { position: relative; }
.auth-field > .auth-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #8d89a8; pointer-events: none; }
.auth-input { width: 100%; box-sizing: border-box; border-radius: 13px; padding: 11px 14px; font-size: 15px; outline: none; background: rgba(243, 240, 255, .8); border: 1px solid rgba(124, 58, 237, .14); color: #241a4e; transition: box-shadow .15s, border-color .15s; }
.auth-input::placeholder { color: #9b97b5; }
.auth-input:focus { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, .18); }
.auth-input.has-icon { padding-left: 44px; }
.auth-input.has-eye { padding-right: 46px; }
.auth-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; color: #8d89a8; border-radius: 8px; }
.auth-eye:hover { color: #7c3aed; }
.auth-eye svg { width: 20px; height: 20px; }
.auth-fielderr { font-size: 12px; color: #b91c1c; }

.auth-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.auth-remember { display: inline-flex; align-items: center; gap: 8px; color: #6b6a86; cursor: pointer; }
.auth-remember input { width: 16px; height: 16px; accent-color: #7c3aed; }

.auth-cta { position: relative; width: 100%; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 14px; font-weight: 700; font-size: 16px; color: #fff; margin-top: 2px; background: linear-gradient(135deg, #7c3aed, #ec4899); box-shadow: 0 16px 30px -14px rgba(236, 72, 153, .55); transition: transform .12s; }
.auth-cta:hover { transform: translateY(-1px); }
.auth-cta .auth-cta-arrow { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 999px; background: rgba(255, 255, 255, .25); display: inline-flex; align-items: center; justify-content: center; }
.auth-cta .auth-cta-arrow svg { width: 16px; height: 16px; }

.auth-or { display: flex; align-items: center; gap: 12px; color: #6b6a86; font-size: 14px; margin: 12px 0; }
.auth-or::before, .auth-or::after { content: ""; height: 1px; flex: 1; background: rgba(124, 58, 237, .18); }

.auth-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 1px solid #e7e2f3; border-radius: 13px; padding: 11px; font-weight: 600; font-size: 15px; color: #241a4e; cursor: pointer; transition: box-shadow .15s, transform .12s; }
.auth-google:hover { box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .25); transform: translateY(-1px); }
.auth-google svg { width: 20px; height: 20px; }

.auth-switch { margin-top: 12px; text-align: center; font-size: 14px; color: #5b5878; }
.auth-switch a, .auth-linkbtn { color: #7c3aed; font-weight: 700; cursor: pointer; background: none; border: 0; font-size: inherit; }
.auth-staff { position: absolute; top: 100%; left: 0; width: 100%; margin-top: 14px; font-size: 13px; color: #6b6a86; text-align: center; }
.auth-validation { border-radius: 10px; padding: 10px 12px; font-size: 13px; background: rgba(239, 68, 68, .1); color: #b91c1c; margin-bottom: 14px; }

@keyframes authFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.28cqw); } }
@keyframes authFloatX { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-1.28cqw); } }

/* ---------------- Mobile ---------------- */
@media (max-width: 1000px) {
  .auth-page { overflow: auto; }
  .auth-page::after { background-size: cover; }
  .auth-page::before { display: none; }
  .auth-shell { justify-content: center; padding: 28px 20px; }
  .auth-formcol { max-width: 440px; margin-right: 0; }
  .auth-card2 { border-radius: 26px; }
}

@media (prefers-reduced-motion: reduce) { .auth-cat, .fc, .ltr { animation: none !important; } }
