/*!************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/components/auth/cinematic-auth.css ***!
  \************************************************************************************************************************************************************************************************************************************************************************************/
/* ========================================================================
   Cinematic Auth Theme
   Dark mode with HSL color variables, liquid glass effect, and animations
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

/* Scoped to the auth container so these dark-theme variables and the
   background/color overrides do NOT leak onto other pages. (This stylesheet is
   imported by a client component and App Router keeps it in the document after
   navigating away, so a global `:root`/`body` rule would darken the landing
   page when you go back.) */
.cinematic-auth-container {
  --background: 201 100% 13%;
  --foreground: 0 0% 100%;
  --muted-foreground: 240 4% 66%;
  --primary: 0 0% 100%;
  --primary-foreground: 0 0% 4%;
  --secondary: 0 0% 10%;
  --muted: 0 0% 10%;
  --accent: 0 0% 10%;
  --border: 0 0% 18%;
  --input: 0 0% 18%;
  --font-display: 'Instrument Serif', serif;
  --font-body: 'Inter', sans-serif;

  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
}

/* ========================================================================
   Liquid Glass Effect
   ======================================================================== */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  border-radius: 9999px;
}

.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* ========================================================================
   Animations
   ======================================================================== */
@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-rise {
  animation: fade-rise 0.8s ease-out forwards;
}

.animate-fade-rise-delay {
  animation: fade-rise 0.8s ease-out 0.2s forwards;
}

.animate-fade-rise-delay-2 {
  animation: fade-rise 0.8s ease-out 0.4s forwards;
}

/* ========================================================================
   Cinematic Auth Container — split layout: video + brand on the left,
   auth form on the right.
   ======================================================================== */
.cinematic-auth-container {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

/* ---- Left: video / branding panel ---- */
.cinematic-auth-media {
  position: relative;
  flex: 1 1 55%;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

.cinematic-auth-media-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  z-index: 0;
}

.cinematic-auth-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  z-index: 1;
}

.cinematic-auth-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 35%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 2;
}

.cinematic-auth-brand {
  position: relative;
  z-index: 3;
  padding: 48px 56px;
  max-width: 560px;
}

.cinematic-brand-title {
  font-family: var(--font-display);
  /* Scales with viewport width, capped so the left panel still fits in one
     screen alongside the floating cards. */
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0;
}

.cinematic-brand-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.6vw, 1.35rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  margin: 0.6em 0 0;
}

/* ---- Floating glass cards over the video ---- */
/* The container spans the whole panel; each card is positioned individually so
   they scatter across the footage rather than stacking in one corner. */
.cinematic-float-cards {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

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

/* Two columns of cards pinned to the left and right of the panel. Each column
   is a vertical flex stack with a gap, so cards can never overlap regardless of
   viewport height.

   All card dimensions below are expressed in `em`, and the root size here scales
   with the viewport via clamp() — so the whole card set grows/shrinks
   proportionally with the page rather than staying a fixed pixel size. */
.cinematic-float-cards {
  /* Scale with viewport width, but also clamp by viewport height so the left
     card stack never overflows a short screen. min() picks whichever is
     smaller, so on a wide-but-short window the height bound wins. */
  font-size: clamp(14px, min(1.05vw, 2.15vh), 23px);
}

.cinematic-float-col {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

/* Left column starts below the FlexLync heading/tagline so it never covers it.
   The brand block has a hard max height (heading caps at 4rem ≈ 64px, plus
   padding/tagline ≈ 215px total), so this floor clears it at every width — the
   heading only shrinks on narrower screens, never grows past this. */
.cinematic-col-left {
  top: 180px;
  left: 7%;
  align-items: flex-start;
}

/* Right column is vertically centered (nothing above it to clear) */
.cinematic-col-right {
  top: 50%;
  right: 6%;
  transform: translateY(-50%);
  align-items: flex-end;
}

.cinematic-float-card {
  font-family: var(--font-body);
  font-size: 1em;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1.15em;
  padding: 1.1em 1.25em;
  box-shadow: 0 0.85em 2.3em rgba(0, 0, 0, 0.28);
  animation: cinematic-float 6s ease-in-out infinite;
}

/* Stagger the bob per card so the stack doesn't move as one rigid block */
.cinematic-col-left .cinematic-float-card:nth-child(1) {
  animation-delay: 0s;
}
.cinematic-col-left .cinematic-float-card:nth-child(2) {
  animation-delay: 1.4s;
}
.cinematic-col-left .cinematic-float-card:nth-child(3) {
  animation-delay: 2.6s;
}
.cinematic-col-right .cinematic-float-card:nth-child(1) {
  animation-delay: 0.7s;
}
.cinematic-col-right .cinematic-float-card:nth-child(2) {
  animation-delay: 2s;
}

/* Card widths */
.cinematic-col-right .cinematic-float-card {
  width: 15em;
}

/* Pills size to their content rather than the column width */
.cinematic-float-card.cinematic-pill {
  width: auto;
}

/* Pill-style compact cards (streak, live class) */
.cinematic-pill {
  display: flex;
  align-items: center;
  gap: 0.85em;
  padding: 0.85em 1.1em;
}

.cinematic-pill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.cinematic-pill-text strong {
  font-size: 1em;
  font-weight: 600;
}

.cinematic-pill-text span {
  font-size: 0.78em;
  color: rgba(255, 255, 255, 0.65);
}

.cinematic-live-dot {
  width: 0.78em;
  height: 0.78em;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  animation: cinematic-live-pulse 1.8s ease-out infinite;
}

@keyframes cinematic-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  }
  100% {
    box-shadow: 0 0 0 0.7em rgba(239, 68, 68, 0);
  }
}

.cinematic-card-label {
  display: block;
  font-size: 0.78em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.85em;
}

/* Per-role tag chip at the top of a card */
.cinematic-role-tag {
  display: inline-block;
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22em 0.65em;
  border-radius: 9999px;
  margin-bottom: 0.7em;
}

.cinematic-role-student {
  background: rgba(34, 197, 94, 0.22);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.cinematic-role-instructor {
  background: rgba(99, 102, 241, 0.22);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.45);
}

.cinematic-role-admin {
  background: rgba(168, 85, 247, 0.22);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.45);
}

/* Instructor stat list (number + label rows) */
.cinematic-stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65em;
}

.cinematic-stat-list li {
  display: flex;
  align-items: baseline;
  gap: 0.65em;
  font-size: 0.85em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.cinematic-stat-num {
  font-size: 1.2em;
  font-weight: 700;
  color: #fff;
  min-width: 1.9em;
}

/* Admin KPI grid */
.cinematic-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85em 1.1em;
}

.cinematic-kpi {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.cinematic-kpi strong {
  font-size: 1.28em;
  font-weight: 700;
}

.cinematic-kpi span {
  font-size: 0.72em;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 0.15em;
}

/* Slim progress bar (reused by the course window) */
.cinematic-progress-track {
  height: 0.42em;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.cinematic-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #a855f7);
}

/* ---- Course window (mini lesson player, mirrors the /learn view) ---- */
.cinematic-course-window {
  width: 16.5em;
  padding: 0;
  overflow: hidden;
}

.cinematic-cw-player {
  position: relative;
  height: 5.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4338ca 0%, #7e22ce 100%);
}

.cinematic-cw-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35em;
  height: 2.35em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #4338ca;
  font-size: 0.9em;
  padding-left: 0.15em;
}

.cinematic-cw-now {
  position: absolute;
  left: 0.85em;
  bottom: 0.55em;
  font-size: 0.72em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.cinematic-cw-title {
  font-size: 1em;
  font-weight: 700;
  color: #fff;
  padding: 0.85em 1.1em 0.55em;
}

.cinematic-cw-lessons {
  list-style: none;
  margin: 0;
  padding: 0 1.1em;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.cinematic-cw-lessons li {
  display: flex;
  align-items: center;
  gap: 0.65em;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.7);
}

.cinematic-cw-active {
  color: #fff;
  font-weight: 600;
}

.cinematic-cw-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  font-size: 0.75em;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
}

.cinematic-cw-done .cinematic-cw-ic {
  background: #22c55e;
  color: #fff;
}

.cinematic-cw-active .cinematic-cw-ic {
  background: #a855f7;
  color: #fff;
}

.cinematic-cw-quiz {
  background: rgba(99, 102, 241, 0.35);
}

.cinematic-cw-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cinematic-cw-dur {
  font-size: 0.72em;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

.cinematic-course-window .cinematic-progress-track {
  margin: 0.85em 1.1em 1.1em;
}

/* Score card with conic-gradient ring */
.cinematic-score-ring {
  width: 6.6em;
  height: 6.6em;
  border-radius: 50%;
  background: conic-gradient(
    #a855f7 calc(var(--pct) * 1%),
    rgba(255, 255, 255, 0.18) 0
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.cinematic-score-ring-center {
  width: 5.1em;
  height: 5.1em;
  border-radius: 50%;
  background: rgba(20, 24, 38, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
}

.cinematic-score-ring-center strong {
  font-size: 1.8em;
  font-weight: 700;
  line-height: 1;
}

.cinematic-score-ring-center span {
  font-size: 0.7em;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

/* Hide the cards when the left panel collapses to a slim banner */
@media (max-width: 900px) {
  .cinematic-float-cards {
    display: none;
  }
}

/* ---- Right: auth form panel ---- */
.cinematic-auth-panel {
  position: relative;
  z-index: 4;
  flex: 1 1 45%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  /* Deep blue night sky matching the reference (the .cinematic-auth-stars
     layer draws stars on top). Stays distinctly blue rather than fading to
     near-black. */
  background: radial-gradient(
      120% 90% at 50% 18%,
      #1f4565 0%,
      #163450 32%,
      #0f2640 62%,
      #0a1a2c 100%
    );
}

/* Static CSS starry-night sky behind the login form (right panel only).
   Stars are drawn with layered radial-gradients — no image, no network. */
.cinematic-auth-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: transparent;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1.5px 1.5px at 28% 62%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 42% 30%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(2px 2px at 55% 78%, rgba(255, 255, 255, 0.98), transparent),
    radial-gradient(1px 1px at 63% 22%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 72% 52%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 80% 12%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(2px 2px at 88% 68%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1px 1px at 18% 88%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1.5px 1.5px at 35% 8%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 92% 38%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 8% 45%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 67% 90%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(2px 2px at 24% 40%, rgba(255, 255, 255, 0.9), transparent),
    /* second, denser layer of smaller stars */
    radial-gradient(1px 1px at 5% 12%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 16% 34%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 22% 72%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1px 1px at 31% 48%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 38% 84%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 46% 16%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 53% 64%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 59% 38%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 66% 8%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 74% 30%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1px 1px at 78% 82%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 84% 50%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 90% 24%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 95% 60%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 97% 86%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 10% 58%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 44% 94%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 70% 70%, rgba(255, 255, 255, 0.6), transparent);
  /* Soft bluish glow toward the upper area, matching the reference sky */
  box-shadow: inset 0 0 220px 50px rgba(70, 130, 200, 0.28);
}

.cinematic-auth-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Root size + max-width scale with the viewport, so the whole login form
     (card, inputs, button, text) grows on larger screens and shrinks on small
     ones. All form dimensions below are in `em` relative to this. */
  font-size: clamp(15px, 1.05vw, 24px);
  max-width: clamp(380px, 32vw, 620px);
  width: 100%;
}

/* ---- Responsive: stack the panels on narrow screens ---- */
@media (max-width: 900px) {
  .cinematic-auth-container {
    flex-direction: column;
  }

  .cinematic-auth-media {
    flex: 0 0 220px;
    align-items: flex-end;
  }

  .cinematic-auth-brand {
    padding: 28px 28px 24px;
  }

  .cinematic-auth-panel {
    flex: 1 1 auto;
    padding: 32px 20px 48px;
  }
}

/* ========================================================================
   Input & Button Styles
   ======================================================================== */
.cinematic-input {
  width: 100%;
  padding: 1em 1.25em;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5em;
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 1em;
  transition: all 0.3s ease;
}

.cinematic-input::-moz-placeholder {
  color: hsl(var(--muted-foreground));
}

.cinematic-input::placeholder {
  color: hsl(var(--muted-foreground));
}

/* The native dropdown popup inherits the light input text, which is invisible
   on the OS-default white surface. Force readable black-on-white options. */
.cinematic-input option {
  background: #ffffff;
  color: #000000;
}

.cinematic-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.cinematic-button {
  padding: 0.9em 2em;
  background: linear-gradient(135deg, rgba(100, 200, 255, 0.15) 0%, rgba(147, 112, 219, 0.12) 100%);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(147, 112, 219, 0.35);
  border-radius: 9999px;
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(147, 112, 219, 0.15), 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.cinematic-button::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.cinematic-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(100, 200, 255, 0.25) 0%, rgba(147, 112, 219, 0.22) 100%);
  border-color: rgba(147, 112, 219, 0.5);
  box-shadow: 0 0 30px rgba(147, 112, 219, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.cinematic-button:active {
  transform: translateY(0);
}

.cinematic-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  background: rgba(255, 255, 255, 0.08);
}

@keyframes cinematic-spin {
  to { transform: rotate(360deg); }
}

.cinematic-spinner {
  width: 1em;
  height: 1em;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: cinematic-spin 0.65s linear infinite;
  flex-shrink: 0;
}

/* ========================================================================
   Typography
   ======================================================================== */
.cinematic-title {
  font-family: var(--font-body);
  font-size: 2.1em;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.5em;
  color: hsl(var(--foreground));
}

.cinematic-subtitle {
  font-family: var(--font-body);
  font-size: 0.9em;
  color: hsl(var(--muted-foreground));
  text-align: center;
  margin-bottom: 1.7em;
  line-height: 1.6;
}

/* ========================================================================
   Glass Box Container
   ======================================================================== */
.cinematic-glass-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.15em;
  padding: 3em 2.5em;
  width: 100%;
}

@media (max-width: 640px) {
  .cinematic-glass-box {
    padding: 2em 1.5em;
    border-radius: 0.85em;
  }
}

/* ========================================================================
   Form Container
   ======================================================================== */
.cinematic-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.cinematic-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.cinematic-form-label {
  font-size: 0.82em;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cinematic-error {
  font-size: 0.82em;
  color: #ff6b6b;
  padding: 0.5em 0.65em;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 0.4em;
  border-left: 3px solid #ff6b6b;
  margin-bottom: 1em;
}

.cinematic-notice {
  font-size: 0.82em;
  color: #51cf66;
  padding: 0.5em 0.65em;
  background: rgba(81, 207, 102, 0.1);
  border-radius: 0.4em;
  border-left: 3px solid #51cf66;
  margin-bottom: 1em;
}

/* ========================================================================
   OTP Input Boxes
   ======================================================================== */
.cinematic-otp-container {
  display: flex;
  gap: 0.75em;
  justify-content: center;
  margin-bottom: 1.5em;
}

.cinematic-otp-input {
  width: 2.6em;
  height: 2.6em;
  font-size: 1.5em;
  font-weight: 600;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.33em;
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  transition: all 0.2s ease;
}

.cinematic-otp-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

.cinematic-otp-input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.cinematic-otp-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.cinematic-otp-input::-webkit-outer-spin-button,
.cinematic-otp-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cinematic-otp-input[type=number] {
  -moz-appearance: textfield;
  -webkit-appearance: textfield;
          appearance: textfield;
}

/* ========================================================================
   Links
   ======================================================================== */
.cinematic-link {
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.cinematic-link:hover {
  color: hsl(var(--muted-foreground));
}

.cinematic-footer-text {
  font-size: 0.9em;
  color: hsl(var(--foreground));
  text-align: center;
  margin-top: 1.75em;
  font-weight: 500;
}

