/* ==========================================================================
   eKarajo Modern Login - Aurora Glassmorphism & Micro-Interactions (2026)
   ========================================================================== */

/* 1. Self-Hosted Typography: Plus Jakarta Sans */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-800-normal.woff2') format('woff2');
}

/* 2. Design Tokens */
:root {
  --bg-deep: #06080e;
  --bg-gradient: radial-gradient(circle at 50% 0%, #0b1222 0%, #06080e 100%);
  --aurora-blue: rgba(37, 99, 235, 0.38);
  --aurora-cyan: rgba(14, 165, 233, 0.32);
  --aurora-cobalt: rgba(30, 58, 138, 0.45);
  --aurora-steel: rgba(51, 65, 85, 0.4);

  --glass-bg: rgba(11, 17, 32, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-focus: rgba(59, 130, 246, 0.65);
  --glass-glow: rgba(59, 130, 246, 0.25);

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --mouse-x: 50%;
  --mouse-y: 50%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-deep);
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
  padding: 2rem 1.5rem;
}

/* 3. Ambient Fluid Aurora Background */
.aurora-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.7;
  will-change: transform;
}

.orb-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--aurora-blue) 0%, transparent 70%);
  top: -15%;
  left: -10%;
  animation: floatOrb1 24s ease-in-out infinite alternate;
}

.orb-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--aurora-cyan) 0%, transparent 70%);
  bottom: -20%;
  right: -10%;
  animation: floatOrb2 28s ease-in-out infinite alternate;
}

.orb-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--aurora-cobalt) 0%, transparent 70%);
  top: 30%;
  left: 30%;
  animation: floatOrb3 20s ease-in-out infinite alternate;
}

.orb-4 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--aurora-steel) 0%, transparent 70%);
  bottom: 5%;
  left: 10%;
  animation: floatOrb4 25s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(140px, 90px, 0) scale(1.15) rotate(90deg); }
  100% { transform: translate3d(-70px, 160px, 0) scale(0.9) rotate(180deg); }
}

@keyframes floatOrb2 {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(-160px, -100px, 0) scale(1.1) rotate(-90deg); }
  100% { transform: translate3d(80px, -150px, 0) scale(0.95) rotate(-180deg); }
}

@keyframes floatOrb3 {
  0% { transform: translate3d(0, 0, 0) scale(0.9) rotate(0deg); }
  50% { transform: translate3d(-100px, 120px, 0) scale(1.2) rotate(120deg); }
  100% { transform: translate3d(120px, -70px, 0) scale(0.85) rotate(240deg); }
}

@keyframes floatOrb4 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(90px, -110px, 0) scale(1.25); }
  100% { transform: translate3d(-80px, 60px, 0) scale(0.8); }
}

/* Subtle background grid pattern overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 88%);
  -webkit-mask-image: radial-gradient(circle at center, black 45%, transparent 88%);
  pointer-events: none;
  z-index: 1;
}

/* 4. Dual-Column Split Layout */
.split-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1220px;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
}

@media (max-width: 1024px) {
  .split-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 520px;
  }
}

/* 5. Left Panel: Animated Developer Workspace Scene */
.scene-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.scene-header {
  margin-bottom: 2rem;
}

.scene-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #818cf8;
  margin-bottom: 1rem;
}

.scene-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 8px #06b6d4;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.scene-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.scene-title-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.scene-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
}

/* Illustration Container with Relative Floating Badges */
.illustration-stage {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg-workspace {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

/* Hands Typing on Keyboard */
.hand-left {
  animation: typeLeft 0.28s infinite alternate ease-in-out;
  transform-origin: 295px 230px;
}

.hand-right {
  animation: typeRight 0.32s infinite alternate ease-in-out;
  transform-origin: 325px 230px;
}

@keyframes typeLeft {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-1.5deg); }
  100% { transform: translateY(2px) rotate(1deg); }
}

@keyframes typeRight {
  0% { transform: translateY(-3px) rotate(1deg); }
  50% { transform: translateY(2px) rotate(-1deg); }
  100% { transform: translateY(-2px) rotate(0deg); }
}

/* Head & Body Ambient Breathing */
.dev-torso {
  animation: breathe 3.6s ease-in-out infinite alternate;
  transform-origin: center bottom;
}

.dev-head {
  animation: headNod 4.8s ease-in-out infinite alternate;
  transform-origin: 310px 145px;
}

@keyframes breathe {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3px); }
}

@keyframes headNod {
  0% { transform: rotate(0deg); }
  40% { transform: rotate(1.5deg); }
  75% { transform: rotate(-1deg); }
  100% { transform: rotate(0.5deg); }
}

/* Laptop Screen Glow & Code Lines */
.screen-glow {
  animation: screenPulse 3s ease-in-out infinite alternate;
}

@keyframes screenPulse {
  0% { opacity: 0.6; }
  50% { opacity: 0.95; }
  100% { opacity: 0.7; }
}

.code-line-1 { animation: codeBlink 1.8s infinite alternate; }
.code-line-2 { animation: codeBlink 2.2s 0.3s infinite alternate; }
.code-line-3 { animation: codeBlink 2.0s 0.6s infinite alternate; }
.code-line-4 { animation: codeBlink 2.5s 0.2s infinite alternate; }

@keyframes codeBlink {
  0%, 100% { opacity: 0.5; width: 60px; }
  50% { opacity: 1; width: 85px; }
}

/* Coffee Steam */
.steam-path-1 {
  animation: steamFloat 2.8s infinite ease-out;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.steam-path-2 {
  animation: steamFloat 3.2s 0.9s infinite ease-out;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

@keyframes steamFloat {
  0% {
    stroke-dashoffset: 40;
    opacity: 0;
    transform: translateY(0) scaleX(1);
  }
  40% {
    opacity: 0.8;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
    transform: translateY(-28px) scaleX(1.4);
  }
}

/* Plant Leaves Swaying */
.plant-leaf-1 {
  animation: plantSway1 4.5s ease-in-out infinite alternate;
  transform-origin: 140px 240px;
}

.plant-leaf-2 {
  animation: plantSway2 3.8s ease-in-out infinite alternate;
  transform-origin: 140px 240px;
}

@keyframes plantSway1 {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-6deg); }
}

@keyframes plantSway2 {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(7deg); }
}

/* Lamp Warm Glow Pulse */
.lamp-glow {
  animation: lampPulse 5s ease-in-out infinite alternate;
}

@keyframes lampPulse {
  0% { opacity: 0.5; }
  100% { opacity: 0.85; }
}

/* 6. Floating Badges */
.floating-badge {
  position: absolute;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4), 0 0 15px rgba(99, 102, 241, 0.15);
  z-index: 5;
  pointer-events: none;
  font-size: 0.82rem;
  font-weight: 600;
  will-change: transform;
}

.badge-code {
  top: 12%;
  left: 2%;
  animation: floatBadgeA 6s ease-in-out infinite alternate;
}

.badge-status {
  bottom: 8%;
  left: 12%;
  animation: floatBadgeB 7s ease-in-out infinite alternate;
}

.badge-metrics {
  top: 22%;
  right: 4%;
  animation: floatBadgeC 6.5s ease-in-out infinite alternate;
}

@keyframes floatBadgeA {
  0% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  100% { transform: translate3d(8px, -16px, 0) rotate(2deg); }
}

@keyframes floatBadgeB {
  0% { transform: translate3d(0, 0, 0) rotate(1deg); }
  100% { transform: translate3d(-10px, -18px, 0) rotate(-2deg); }
}

@keyframes floatBadgeC {
  0% { transform: translate3d(0, 0, 0) rotate(2deg); }
  100% { transform: translate3d(-12px, 14px, 0) rotate(-1deg); }
}

/* 7. Right Panel: 3D Tilt Card & Glass Container */
.card-wrapper {
  perspective: 1200px;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

.glass-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 2.35rem 2.15rem;
  box-shadow:
    0 24px 60px -12px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 1px 3px rgba(255, 255, 255, 0.1) inset;
  transform-style: preserve-3d;
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  overflow: hidden;
}

/* Flashlight Spotlight follows cursor */
.glass-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 28px;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.12),
    transparent 50%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  pointer-events: none;
}

/* 8. Brand Logo & Orbit Rings */
.brand-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  position: relative;
  width: 96px;
  height: 96px;
  cursor: pointer;
  perspective: 600px;
  animation: logoFloat 4s ease-in-out infinite alternate;
}

.logo-orbit-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.ring-outer {
  inset: -6px;
  border: 1.5px dashed rgba(56, 189, 248, 0.45);
  animation: orbitClockwise 20s linear infinite;
}

.ring-inner {
  inset: -1px;
  border: 1px dotted rgba(212, 175, 55, 0.55);
  animation: orbitCounterClockwise 14s linear infinite;
}

.brand-logo-wrapper:hover .ring-outer {
  border-color: rgba(56, 189, 248, 0.85);
  animation-duration: 8s;
}

.brand-logo-wrapper:hover .ring-inner {
  border-color: rgba(212, 175, 55, 0.95);
  animation-duration: 6s;
}

.logo-disc {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(14, 165, 233, 0.25);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  z-index: 2;
  background: #0b1222;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.logo-shimmer {
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(
    65deg,
    transparent 35%,
    rgba(255, 255, 255, 0.0) 42%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0.0) 58%,
    transparent 65%
  );
  transform: translateX(-130%) rotate(25deg);
  animation: shimmerSweep 5.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.logo-glow-aura {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, rgba(37, 99, 235, 0.12) 55%, transparent 75%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
  animation: auraPulse 3.5s ease-in-out infinite alternate;
}

.brand-logo-wrapper:hover .logo-disc {
  transform: scale(1.07);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.8), 0 0 28px rgba(56, 189, 248, 0.45);
}

.brand-logo-wrapper.logo-pop .logo-disc {
  animation: logoPopClick 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes logoFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

@keyframes orbitClockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes orbitCounterClockwise {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes shimmerSweep {
  0%, 60% { transform: translateX(-130%) rotate(25deg); }
  85%, 100% { transform: translateX(130%) rotate(25deg); }
}

@keyframes auraPulse {
  0% { transform: scale(0.92); opacity: 0.5; }
  100% { transform: scale(1.18); opacity: 0.9; }
}

@keyframes logoPopClick {
  0% { transform: scale(1); }
  45% { transform: scale(1.18) rotate(6deg); }
  100% { transform: scale(1); }
}

/* 9. Banner & Alert Notifications */
.auth-alert-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  font-size: 0.84rem;
  line-height: 1.4;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: slideDownFade 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.auth-alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 10. Form & Input Fields */
.form-group {
  margin-bottom: 1.15rem;
  position: relative;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1.1rem;
  color: var(--text-muted);
  width: 19px;
  height: 19px;
  pointer-events: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.glass-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.9rem 1rem 0.9rem 2.85rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-input::placeholder {
  color: var(--text-muted);
}

.glass-input:focus {
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--glass-border-focus);
  box-shadow:
    0 0 0 3px var(--glass-glow),
    0 4px 16px rgba(99, 102, 241, 0.2);
}

.glass-input:focus ~ .input-icon {
  color: #818cf8;
  transform: scale(1.08);
}

.password-toggle {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s, transform 0.15s;
}

.password-toggle:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.input-error-msg {
  font-size: 0.78rem;
  color: #f87171;
  margin-top: 0.35rem;
  margin-left: 0.5rem;
  display: none;
  align-items: center;
  gap: 0.35rem;
}

.has-error .glass-input {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.has-error .input-error-msg {
  display: flex;
}

/* 11. Backend-Powered Captcha Widget */
.strict-captcha-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.captcha-canvas-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.captcha-img-wrapper {
  flex: 1;
  background: rgba(10, 15, 29, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) inset;
  cursor: pointer;
}

.captcha-img {
  height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
  user-select: none;
  -webkit-user-drag: none;
}

.btn-refresh-captcha {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0 0.95rem;
  height: 48px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.btn-refresh-captcha:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-refresh-captcha:active {
  transform: translateY(0);
}

.rotate-spin {
  animation: spinOnce 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes spinOnce {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.strict-captcha-group.has-error .glass-input {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.strict-captcha-group.has-error .input-error-msg {
  display: flex;
}

/* 12. Checkbox */
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.custom-checkbox input {
  accent-color: #6366f1;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* 13. Submit Button & Ripple */
.btn-primary {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #0284c7 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 0.92rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow:
    0 10px 25px -5px rgba(37, 99, 235, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px -4px rgba(37, 99, 235, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: all 0.75s ease;
}

.btn-primary:hover::before {
  left: 140%;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleEffect 0.6s linear;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Shake Animation */
.shake {
  animation: shakeKeyframes 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shakeKeyframes {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mobile responsiveness adjustments */
@media (max-width: 640px) {
  body {
    padding: 1.25rem 1rem;
  }

  .scene-panel {
    display: none; /* Hide heavy scene on small mobile screens to keep card centered & fast */
  }

  .glass-card {
    padding: 1.85rem 1.4rem;
    border-radius: 22px;
  }

  .scene-title {
    font-size: 2rem;
  }
}
