/* ============================================
   CINEMATIC AUTH — In-Place Mountain Login
   Mountains + particles LIVE INSIDE the panel.
   The page itself stays visible behind a soft backdrop.
   ============================================ */

/* --- Auth Overlay: backdrop only, no fullscreen takeover --- */
#cinematicAuth {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #f8fafc;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  /* Soft backdrop so the page shows through but is dimmed */
  background: rgba(11, 18, 32, 0.55);
  backdrop-filter: blur(6px) saturate(0.9);
  -webkit-backdrop-filter: blur(6px) saturate(0.9);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#cinematicAuth.active {
  display: flex;
}

/* --- Panel Wrap (centered, no fullscreen) --- */
#cinematicAuth .cin-panel-wrap {
  position: relative;
  width: 100%;
  max-width: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- The Panel (the form card) --- */
#cinematicAuth .cin-panel {
  position: relative;
  width: 100%;
  border-radius: 22px;
  /* Glassmorphism using site theme colors (bg-primary + accent) */
  background: linear-gradient(
    160deg,
    rgba(30, 41, 59, 0.38) 0%,
    rgba(15, 23, 42, 0.55) 100%
  );
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid rgba(59, 130, 246, 0.16);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 0 rgba(96, 165, 250, 0.16) inset;  /* top edge glow */
  padding: 32px 28px 24px;
  overflow: hidden;
  isolation: isolate;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  z-index: 2;
  transform: translateY(12px) scale(0.985);
  opacity: 0.99;
  transition: transform 0.48s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Subtle angular notch on top corners — futuristic panel */
#cinematicAuth .cin-panel::before,
#cinematicAuth .cin-panel::after {
  content: '';
  position: absolute;
  top: 0;
  width: 28px;
  height: 28px;
  background: rgba(59, 130, 246, 0.08);
  z-index: 0;
  pointer-events: none;
}
#cinematicAuth .cin-panel::before {
  left: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
#cinematicAuth .cin-panel::after {
  right: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

/* Decorative top line (glow) */
#cinematicAuth .cin-panel > .cin-panel-topline {
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(96, 165, 250, 0.6) 50%,
    transparent
  );
  pointer-events: none;
  z-index: 3;
}

/* --- Logo at the top of the panel --- */
#cinematicAuth .cin-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.18);
  box-shadow:
    0 0 20px rgba(59, 130, 246, 0.15) inset,
    0 6px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}
#cinematicAuth .cin-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.3));
}

/* --- Brand tagline --- */
#cinematicAuth .cin-tagline {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.6);
  margin: 0 auto 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  position: relative;
  z-index: 2;
}

/* --- Title --- */
#cinematicAuth .cin-title {
  text-align: center;
  margin: 0 0 20px;
  position: relative;
  z-index: 2;
}
#cinematicAuth .cin-title h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #f8fafc;
  letter-spacing: -0.01em;
}
#cinematicAuth .cin-title p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

/* --- Form fields --- */
#cinematicAuth .cin-field {
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}
#cinematicAuth .cin-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
#cinematicAuth .cin-field input,
#cinematicAuth .cin-field input.auth-otp {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: #f8fafc;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  padding: 11px 14px;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}
#cinematicAuth .cin-field input::placeholder {
  color: #64748b;
}
#cinematicAuth .cin-field input:focus {
  border-color: rgba(96, 165, 250, 0.6);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
#cinematicAuth .cin-field input.auth-otp {
  text-align: center;
  font-size: 22px;
  letter-spacing: 0.4em;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-weight: 600;
  padding-left: calc(14px + 0.4em);
}

/* --- Password wrap --- */
#cinematicAuth .cin-password-wrap {
  position: relative;
}
#cinematicAuth .cin-password-wrap input {
  padding-right: 42px;
}
#cinematicAuth .cin-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
#cinematicAuth .cin-password-toggle:hover {
  color: #60a5fa;
}

/* --- Submit Button --- */
#cinematicAuth .cin-btn {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 8px 24px -6px rgba(59, 130, 246, 0.5);
}
#cinematicAuth .cin-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -6px rgba(59, 130, 246, 0.6);
  filter: brightness(1.08);
}
#cinematicAuth .cin-btn:active {
  transform: translateY(0);
}
#cinematicAuth .cin-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
#cinematicAuth .cin-btn .cin-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: cin-spin 0.7s linear infinite;
}
#cinematicAuth .cin-btn.is-loading .cin-spinner {
  display: inline-block;
}
#cinematicAuth .cin-btn.is-loading span:first-child {
  opacity: 0.7;
}
@keyframes cin-spin {
  to { transform: rotate(360deg); }
}

/* --- Footer (link to register/login) --- */
#cinematicAuth .cin-footer {
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  margin-top: 18px;
  position: relative;
  z-index: 2;
}
#cinematicAuth .cin-footer button {
  background: transparent;
  border: none;
  color: #60a5fa;
  font-weight: 600;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  transition: color 0.15s;
}
#cinematicAuth .cin-footer button:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* --- Error message --- */
#cinematicAuth .cin-error {
  display: none;
  font-size: 12.5px;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 9px 12px;
  border-radius: 8px;
  margin-top: 12px;
  text-align: center;
  position: relative;
  z-index: 2;
}
#cinematicAuth .cin-error.visible {
  display: block;
}

/* --- Verify info block --- */
#cinematicAuth .cin-verify-info {
  text-align: center;
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0 0 4px;
  position: relative;
  z-index: 2;
}
#cinematicAuth .cin-verify-email {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #60a5fa;
  margin: 0 0 16px;
  word-break: break-all;
  position: relative;
  z-index: 2;
}
#cinematicAuth .cin-resend {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  margin-top: 12px;
  width: 100%;
  text-align: center;
  transition: color 0.15s;
  position: relative;
  z-index: 2;
}
#cinematicAuth .cin-resend:hover {
  color: #60a5fa;
}

/* --- Auth view switching --- */
#cinematicAuth .auth-view {
  display: none;
}
#cinematicAuth .auth-view.active {
  display: block;
}

/* --- Back button --- */
#cinematicAuth .cin-back {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transition: background 0.15s, color 0.15s;
}
#cinematicAuth .cin-back:hover {
  background: rgba(59, 130, 246, 0.12);
  color: #f8fafc;
}
#cinematicAuth .cin-back svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   IN-PANEL MOUNTAINS — decorative background
   These live INSIDE the panel, not fullscreen
   ============================================ */

/* Sky / gradient INSIDE the panel (decorative) */
#cinematicAuth .cin-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 8%, rgba(96, 165, 250, 0.16), transparent 32%),
    radial-gradient(circle at 50% 22%, rgba(59, 130, 246, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(7, 11, 20, 0.12), rgba(7, 11, 20, 0));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease 0.05s;
}

#cinematicAuth .cin-dawn {
  position: absolute;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
  width: 120%;
  height: 60%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at center bottom, rgba(96, 165, 250, 0.20) 0%, rgba(59, 130, 246, 0.12) 22%, transparent 62%);
  filter: blur(16px);
  opacity: 0;
  transition: opacity 0.5s ease 0.12s, transform 0.5s ease 0.12s;
}

#cinematicAuth .cin-rays {
  position: absolute;
  inset: -6% -10% auto -10%;
  height: 55%;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(125, 211, 252, 0.00) 0 14px, rgba(125, 211, 252, 0.06) 14px 15px, rgba(125, 211, 252, 0.00) 15px 28px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 82%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 82%);
  filter: blur(1px);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.5s ease 0.18s, transform 0.55s ease 0.18s;
}

/* Stars — small dots in the top area of the panel */
#cinematicAuth .cin-stars {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s ease 0.10s;
}

#cinematicAuth .cin-star {
  position: absolute;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.9);
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.32);
  animation: cinTwinkle 3.8s ease-in-out infinite;
}

@keyframes cinTwinkle {
  0%, 100% { transform: scale(0.9); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* Aurora glow centered in the panel */
#cinematicAuth .cin-aurora {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%) scale(0.96);
  width: 120%;
  height: 58%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(59, 130, 246, 0.22) 0%,
    rgba(96, 165, 250, 0.14) 28%,
    transparent 60%
  );
  filter: blur(18px);
  opacity: 0;
  transition: opacity 0.55s ease 0.14s, transform 0.55s ease 0.14s;
}

/* Mountains container — at the bottom of the panel, behind content */
#cinematicAuth .cin-mountains {
  position: absolute;
  bottom: -6%;
  left: 0;
  right: 0;
  height: 55%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.6s ease 0.24s, transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) 0.24s;
  transform: translateY(18px);
}

/* Individual mountain layer — anchored to bottom-center */
#cinematicAuth .cin-mtn-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform-origin: 50% 100%;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition-property: opacity, transform;
  transition-duration: 0.66s, 0.72s;
  transition-timing-function: ease, cubic-bezier(0.2, 0.8, 0.2, 1);
}
#cinematicAuth .cin-mtn-layer svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.04));
}
#cinematicAuth .cin-mtn-layer--back { transition-delay: 0.26s; }
#cinematicAuth .cin-mtn-layer--mid { transition-delay: 0.34s; }
#cinematicAuth .cin-mtn-layer--front { transition-delay: 0.42s; }

/* Fog — at the bottom of the panel */
#cinematicAuth .cin-fog {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(59, 130, 246, 0.12) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.45s ease 0.5s;
}
#cinematicAuth .cin-fog-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(96, 165, 250, 0.08) 0%,
    transparent 60%
  );
}

/* Particles canvas — full panel */
#cinematicAuth .cin-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease 0.58s;
}

/* ============================================
   URIDOT BRANDING — "web by uridot" badge
   ============================================ */
#cinematicAuth .cin-uridot {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: rgba(148, 163, 184, 0.35); /* muted, transparent feel */
  z-index: 5;
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: baseline;
  gap: 1px;
}
#cinematicAuth .cin-uridot-name {
  font-weight: 700;
  color: rgba(96, 165, 250, 0.55);
  letter-spacing: 0.1em;
}
#cinematicAuth .cin-uridot-dot {
  color: rgba(96, 165, 250, 0.7);
  font-weight: 700;
}

#cinematicAuth.is-opened .cin-panel {
  transform: translateY(0) scale(1);
}

#cinematicAuth.is-opened .cin-sky {
  opacity: 1;
}

#cinematicAuth.is-opened .cin-dawn {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

#cinematicAuth.is-opened .cin-rays {
  opacity: 1;
  transform: translateY(0);
}

#cinematicAuth.is-opened .cin-stars {
  opacity: 1;
}

#cinematicAuth.is-opened .cin-aurora {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

#cinematicAuth.is-opened .cin-mountains {
  opacity: 1;
  transform: translateY(0);
}

#cinematicAuth.is-opened .cin-mtn-layer {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#cinematicAuth.is-opened .cin-fog {
  opacity: 1;
}

#cinematicAuth.is-opened .cin-particles {
  opacity: 0.92;
}

#cinematicAuth .cin-stars .cin-star:nth-child(3n) { animation-duration: 4.8s; }
#cinematicAuth .cin-stars .cin-star:nth-child(4n) { animation-duration: 5.6s; }
#cinematicAuth .cin-stars .cin-star:nth-child(5n) { animation-duration: 6.2s; }

/* ============================================
   SUN & CLOUDS
   ============================================ */
#cinematicAuth .cin-sun {
  position: absolute;
  top: 5%;
  right: 8%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #fef3c7 0%, #fbbf24 45%, #d97706 100%);
  box-shadow:
    0 0 30px rgba(251, 191, 36, 0.45),
    0 0 70px rgba(245, 158, 11, 0.25),
    inset 0 0 20px rgba(255, 255, 255, 0.25);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px) scale(0.9);
  transition: opacity 0.6s ease 0.2s, transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}
html.light-mode #cinematicAuth.is-opened .cin-sun {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#cinematicAuth .cin-clouds {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease 0.24s;
}
#cinematicAuth.is-opened .cin-clouds {
  opacity: 1;
}
#cinematicAuth .cin-cloud {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.22), rgba(71, 85, 105, 0.10));
  filter: blur(10px);
}
#cinematicAuth .cin-cloud::before,
#cinematicAuth .cin-cloud::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: inherit;
}
#cinematicAuth .cin-cloud--1 {
  top: 10%;
  left: -8%;
  width: 160px;
  height: 44px;
}
#cinematicAuth .cin-cloud--1::before { width: 70px; height: 70px; top: -34px; left: 28px; }
#cinematicAuth .cin-cloud--1::after { width: 55px; height: 55px; top: -22px; right: 32px; }
#cinematicAuth .cin-cloud--2 {
  top: 22%;
  right: -10%;
  width: 180px;
  height: 48px;
}
#cinematicAuth .cin-cloud--2::before { width: 76px; height: 76px; top: -36px; left: 36px; }
#cinematicAuth .cin-cloud--2::after { width: 60px; height: 60px; top: -24px; right: 40px; }
#cinematicAuth .cin-cloud--3 {
  top: 6%;
  left: 28%;
  width: 110px;
  height: 32px;
  opacity: 0.6;
}
#cinematicAuth .cin-cloud--3::before { width: 48px; height: 48px; top: -22px; left: 18px; }
#cinematicAuth .cin-cloud--3::after { width: 38px; height: 38px; top: -14px; right: 20px; }

/* ============================================
   LIGHT MODE
   ============================================ */
html.light-mode #cinematicAuth {
  background: rgba(238, 242, 247, 0.72);
  backdrop-filter: blur(8px) saturate(0.95);
}
html.light-mode #cinematicAuth .cin-panel {
  background: linear-gradient(160deg, rgba(255,255,255,0.88) 0%, rgba(248,250,252,0.92) 100%);
  border-color: rgba(15,23,42,0.10);
  box-shadow:
    0 30px 80px -20px rgba(15,23,42,0.18),
    0 0 0 1px rgba(255,255,255,0.6) inset,
    0 1px 0 0 rgba(2,132,199,0.12) inset;
}
html.light-mode #cinematicAuth .cin-panel::before,
html.light-mode #cinematicAuth .cin-panel::after {
  background: rgba(2,132,199,0.08);
}
html.light-mode #cinematicAuth .cin-panel-topline {
  background: linear-gradient(90deg, transparent, rgba(2,132,199,0.35) 50%, transparent);
}
html.light-mode #cinematicAuth .cin-logo {
  background: rgba(2,132,199,0.08);
  border-color: rgba(2,132,199,0.16);
  box-shadow: 0 0 20px rgba(2,132,199,0.10) inset, 0 6px 20px rgba(15,23,42,0.08);
}
html.light-mode #cinematicAuth .cin-tagline {
  color: rgba(71,85,105,0.7);
}
html.light-mode #cinematicAuth .cin-title h2 {
  color: #0f172a;
}
html.light-mode #cinematicAuth .cin-title p {
  color: #64748b;
}
html.light-mode #cinematicAuth .cin-field label {
  color: #475569;
}
html.light-mode #cinematicAuth .cin-field input,
html.light-mode #cinematicAuth .cin-field input.auth-otp {
  background: #ffffff;
  border-color: rgba(15,23,42,0.12);
  color: #0f172a;
}
html.light-mode #cinematicAuth .cin-field input::placeholder {
  color: #94a3b8;
}
html.light-mode #cinematicAuth .cin-field input:focus {
  border-color: rgba(2,132,199,0.5);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2,132,199,0.10);
}
html.light-mode #cinematicAuth .cin-password-toggle {
  color: #64748b;
}
html.light-mode #cinematicAuth .cin-password-toggle:hover {
  color: #0284c7;
}
html.light-mode #cinematicAuth .cin-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 8px 24px -6px rgba(2,132,199,0.35);
}
html.light-mode #cinematicAuth .cin-footer {
  color: #64748b;
}
html.light-mode #cinematicAuth .cin-footer button {
  color: #0284c7;
}
html.light-mode #cinematicAuth .cin-footer button:hover {
  color: #0369a1;
}
html.light-mode #cinematicAuth .cin-error {
  color: #991b1b;
  background: rgba(220,38,38,0.08);
  border-color: rgba(220,38,38,0.18);
}
html.light-mode #cinematicAuth .cin-verify-info {
  color: #64748b;
}
html.light-mode #cinematicAuth .cin-verify-email {
  color: #0284c7;
}
html.light-mode #cinematicAuth .cin-resend {
  color: #64748b;
}
html.light-mode #cinematicAuth .cin-resend:hover {
  color: #0284c7;
}
html.light-mode #cinematicAuth .cin-back {
  background: rgba(2,132,199,0.06);
  border-color: rgba(2,132,199,0.12);
  color: #64748b;
}
html.light-mode #cinematicAuth .cin-back:hover {
  background: rgba(2,132,199,0.12);
  color: #0f172a;
}
html.light-mode #cinematicAuth .cin-uridot {
  color: rgba(100,116,139,0.35);
}
html.light-mode #cinematicAuth .cin-uridot-name {
  color: rgba(2,132,199,0.5);
}
html.light-mode #cinematicAuth .cin-uridot-dot {
  color: rgba(2,132,199,0.65);
}

/* Light mode decorative elements */
html.light-mode #cinematicAuth .cin-sky {
  background:
    radial-gradient(circle at 50% 8%, rgba(2,132,199,0.12), transparent 32%),
    radial-gradient(circle at 50% 22%, rgba(2,132,199,0.06), transparent 45%),
    linear-gradient(180deg, rgba(224,242,254,0.25), rgba(224,242,254,0));
}
html.light-mode #cinematicAuth .cin-dawn {
  background: radial-gradient(circle at center bottom, rgba(251,191,36,0.18) 0%, rgba(2,132,199,0.08) 22%, transparent 62%);
}
html.light-mode #cinematicAuth .cin-rays {
  background: repeating-linear-gradient(115deg, rgba(2,132,199,0.00) 0 14px, rgba(2,132,199,0.05) 14px 15px, rgba(2,132,199,0.00) 15px 28px);
}
html.light-mode #cinematicAuth .cin-aurora {
  background: radial-gradient(ellipse at center, rgba(2,132,199,0.18) 0%, rgba(2,132,199,0.10) 28%, transparent 60%);
}
html.light-mode #cinematicAuth .cin-star {
  background: rgba(15,23,42,0.65);
  box-shadow: 0 0 8px rgba(2,132,199,0.18);
}
html.light-mode #cinematicAuth .cin-fog {
  background: linear-gradient(to top, rgba(2,132,199,0.08) 0%, transparent 100%);
}
html.light-mode #cinematicAuth .cin-fog-layer {
  background: radial-gradient(ellipse at 50% 100%, rgba(2,132,199,0.06) 0%, transparent 60%);
}
html.light-mode #cinematicAuth .cin-cloud {
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(203,213,225,0.35));
}
html.light-mode #cinematicAuth .cin-sun {
  background: radial-gradient(circle at 32% 32%, #fffbeb 0%, #fcd34d 45%, #f59e0b 100%);
  box-shadow:
    0 0 30px rgba(251,191,36,0.55),
    0 0 70px rgba(245,158,11,0.30),
    inset 0 0 20px rgba(255,255,255,0.35);
}

/* Day scene: no stars, brighter mountains, softer glows */
html.light-mode #cinematicAuth .cin-stars,
html.light-mode #cinematicAuth.is-opened .cin-stars {
  opacity: 0 !important;
}
html.light-mode #cinematicAuth .cin-mountains {
  filter: brightness(1.45) saturate(0.5) hue-rotate(-8deg);
}
html.light-mode #cinematicAuth .cin-mtn-layer svg {
  filter: drop-shadow(0 0 10px rgba(2,132,199,0.06));
}
html.light-mode #cinematicAuth .cin-dawn {
  background: radial-gradient(circle at center bottom, rgba(125,211,252,0.16) 0%, rgba(2,132,199,0.06) 28%, transparent 62%);
}
html.light-mode #cinematicAuth .cin-aurora {
  background: radial-gradient(ellipse at center, rgba(2,132,199,0.12) 0%, rgba(2,132,199,0.06) 28%, transparent 58%);
}

@media (max-width: 480px) {
  #cinematicAuth {
    padding: 10px;
  }
  #cinematicAuth .cin-panel {
    padding: 22px 18px 26px;
    border-radius: 18px;
    max-width: 100%;
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #cinematicAuth .cin-logo {
    width: 52px;
    height: 52px;
  }
  #cinematicAuth .cin-logo-img {
    width: 36px;
    height: 36px;
  }
  #cinematicAuth .cin-title h2 {
    font-size: 19px;
  }
  #cinematicAuth .cin-title {
    margin-bottom: 16px;
  }
  #cinematicAuth .cin-tagline {
    margin-bottom: 14px;
  }
  #cinematicAuth .cin-field {
    margin-bottom: 12px;
  }
  #cinematicAuth .cin-field input,
  #cinematicAuth .cin-field input.auth-otp {
    font-size: 16px;
  }
  #cinematicAuth .cin-uridot {
    font-size: 9px;
    bottom: 6px;
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #cinematicAuth .cin-mountains,
  #cinematicAuth .cin-aurora,
  #cinematicAuth .cin-fog,
  #cinematicAuth .cin-stars,
  #cinematicAuth .cin-particles {
    display: none !important;
  }
  #cinematicAuth .cin-panel {
    backdrop-filter: blur(20px) saturate(1.2);
  }
}
