*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #020208;
  --bg-secondary: #06060f;
  --bg-card: rgba(5, 4, 12, 0.85);
  --bg-card-solid: #050410;
  
  --accent-gold: #ffcc00;
  --accent-amber: #ff9500;
  --accent-purple: #8844ff;
  --accent-magenta: #dd3377;
  --accent-violet: #6622cc;
  --accent-ember: #ff6633;
  --accent-chrome: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
  --accent-chrome-reverse: linear-gradient(135deg, #4facfe 0%, #f5576c 25%, #f093fb 50%, #764ba2 75%, #667eea 100%);
  
  --text-primary: #f0f0f5;
  --text-secondary: #c8c8d4;
  --text-muted: #6a6a7e;
  --text-error: #ff5555;
  
  --border-subtle: rgba(255, 200, 0, 0.08);
  --border-glow: rgba(255, 200, 0, 0.18);
  --border-focus: rgba(255, 200, 0, 0.4);
  
  --shadow-glow: 0 0 80px rgba(136, 68, 255, 0.06), 0 0 120px rgba(255, 200, 0, 0.04);
  --shadow-card: 0 30px 100px -25px rgba(0, 0, 0, 0.85), 0 15px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-input: inset 0 2px 6px rgba(0, 0, 0, 0.5);
  
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow: hidden;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-cyan);
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
button {
  border: none;
  outline: none;
  background: transparent;
}

::selection {
  background: var(--accent-blue);
  color: var(--bg-primary);
}

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.login-card-container {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: var(--spacing-lg);
  perspective: 1200px;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--bg-card);
  backdrop-filter: blur(30px) saturate(1.3) brightness(0.95);
  -webkit-backdrop-filter: blur(30px) saturate(1.3) brightness(0.95);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-xl) var(--spacing-lg);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  animation: cardEntry 0.7s cubic-bezier(0.16, 1, 0.3, 1), float 10s ease-in-out infinite 0.7s;
  transform-origin: center center;
  will-change: transform, opacity;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-2xl);
  padding: 1px;
  background: linear-gradient(
    var(--border-angle, 160deg),
    rgba(102, 126, 234, 0.4) 0%,
    rgba(118, 75, 162, 0.3) 25%,
    rgba(240, 147, 251, 0.25) 50%,
    rgba(245, 87, 108, 0.2) 75%,
    rgba(79, 172, 254, 0.35) 100%
  );
  -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;
  opacity: 0.8;
  animation: borderRotate 6s linear infinite;
}

@keyframes borderRotate {
  0% { --border-angle: 0deg; }
  100% { --border-angle: 360deg; }
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.login-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(102, 126, 234, 0.03) 60deg,
    transparent 120deg,
    rgba(240, 147, 251, 0.03) 180deg,
    transparent 240deg,
    rgba(79, 172, 254, 0.03) 300deg,
    transparent 360deg
  );
  animation: shimmer 12s linear infinite;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.login-card:hover::after {
  opacity: 1;
}

@keyframes shimmer {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.login-card.loading {
  pointer-events: none;
  border-color: rgba(180, 140, 0, 0.5);
  box-shadow: var(--shadow-card), 0 0 20px rgba(180, 140, 0, 0.08);
}

.login-card.success-phase1 {
  animation: successPhase1 0.15s ease-out forwards;
  border-color: rgba(80, 160, 140, 0.5);
}

.login-card.success-phase2 {
  animation: successPhase2 0.15s ease-out forwards;
}

.login-card.success-phase3 {
  animation: successPhase3 0.4s ease-in forwards;
}

.login-card.failure-shake {
  animation: failureShake 0.6s ease-out;
  border-color: rgba(180, 60, 60, 0.6);
  box-shadow: var(--shadow-card), 0 0 25px rgba(180, 60, 60, 0.15);
}

.login-card.failure-reset {
  animation: failureReset 0.4s ease-out forwards;
}

.login-card.frozen {
  filter: brightness(0.6) saturate(0.4);
}

.card-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.card-logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  background: var(--accent-chrome);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-xs);
  transition: filter 0.3s ease;
  position: relative;
  animation: gradientShift 8s ease infinite;
  white-space: nowrap;
}

.card-logo::after {
  content: 'HERAKLES.DEV';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  background: var(--accent-chrome-reverse);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  filter: blur(8px);
  animation: gradientShift 8s ease infinite, logoGlow 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes logoGlow {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.4; }
}

.login-card.success-phase1 .card-logo,
.login-card.success-phase2 .card-logo {
  filter: brightness(1.4);
}

.card-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  opacity: 0.8;
  background: linear-gradient(90deg, var(--text-muted) 0%, rgba(240, 147, 251, 0.6) 50%, var(--text-muted) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: taglineShimmer 4s ease-in-out infinite;
}

@keyframes taglineShimmer {
  0%, 100% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
}

.card-content {
  margin-bottom: var(--spacing-md);
}

.card-footer {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(102, 126, 234, 0.1);
  margin-top: var(--spacing-xs);
  position: relative;
}

.card-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 147, 251, 0.3), transparent);
}

.security-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.security-badge:hover {
  opacity: 1;
  color: #f093fb;
}

.security-badge svg {
  width: 13px;
  height: 13px;
}

@keyframes cardEntry {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.92) rotateX(10deg);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
    filter: blur(0);
  }
}


@keyframes successPhase1 {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.02) translateY(-5px); }
}

@keyframes successPhase2 {
  0% { transform: scale(1.02) translateY(-5px); }
  100% { transform: scale(1.05) translateY(-10px); }
}

@keyframes successPhase3 {
  0% { transform: scale(1.05) translateY(-10px); opacity: 1; }
  100% { transform: scale(0.5) translateY(-80px); opacity: 0; }
}

@keyframes failureShake {
  0% { transform: translateX(0) rotate(0deg); }
  10% { transform: translateX(-10px) rotate(-1.5deg); }
  20% { transform: translateX(10px) rotate(1.5deg); }
  30% { transform: translateX(-8px) rotate(-1deg); }
  40% { transform: translateX(8px) rotate(1deg); }
  50% { transform: translateX(-5px) rotate(-0.5deg); }
  60% { transform: translateX(5px) rotate(0.5deg); }
  70% { transform: translateX(-3px) rotate(0deg); }
  80% { transform: translateX(3px) rotate(0deg); }
  90% { transform: translateX(-1px) rotate(0deg); }
  100% { transform: translateX(0) rotate(0deg); }
}

@keyframes failureReset {
  0% {
    transform: scale(1);
    filter: brightness(0.7);
  }
  50% {
    transform: scale(0.97);
    filter: brightness(0.85);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

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

@media (max-width: 480px) {
  .login-card {
    padding: var(--spacing-xl) var(--spacing-lg);
    margin: var(--spacing-sm);
    max-width: 360px;
  }

  .card-logo {
    font-size: 1.35rem;
    letter-spacing: 0.1em;
  }
  
  .security-badges {
    gap: var(--spacing-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-card {
    animation: cardEntry 0.3s ease-out;
  }
  
  .login-card::after {
    animation: none;
  }
  
  .login-card.loading {
    animation: none;
  }
  
  .card-logo::after {
    animation: none;
  }
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-group {
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(106, 106, 126, 0.8);
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.4s ease;
}

.form-group:focus-within .form-label {
  color: rgba(168, 148, 200, 0.9);
}

.form-input {
  width: 100%;
  padding: 0.75rem var(--spacing-md);
  background: rgba(3, 2, 8, 0.7);
  border: 1px solid rgba(102, 126, 234, 0.15);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 400;
  transition: 
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    background 0.4s ease;
  box-shadow: 
    var(--shadow-input),
    0 0 0 1px rgba(118, 75, 162, 0.05);
}

.form-input::placeholder {
  color: rgba(106, 106, 126, 0.5);
  font-weight: 400;
}

.form-input:hover:not(:focus) {
  border-color: rgba(118, 75, 162, 0.3);
  background: rgba(3, 2, 8, 0.6);
  box-shadow: 
    var(--shadow-input),
    0 0 15px rgba(102, 126, 234, 0.05);
}

.form-input:focus {
  border-color: rgba(118, 75, 162, 0.5);
  box-shadow: 
    var(--shadow-input),
    0 0 0 1px rgba(102, 126, 234, 0.2),
    0 0 20px rgba(118, 75, 162, 0.1),
    0 0 40px rgba(79, 172, 254, 0.05);
  background: rgba(3, 2, 8, 0.85);
}

.form-input.typing {
  border-color: rgba(79, 172, 254, 0.4);
  box-shadow: 
    var(--shadow-input),
    0 0 0 1px rgba(118, 75, 162, 0.25),
    0 0 25px rgba(79, 172, 254, 0.12),
    0 0 50px rgba(118, 75, 162, 0.06);
}

.form-group {
  position: relative;
}

.form-group::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-md) + 1px);
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0) 0%,
    rgba(118, 75, 162, 0) 50%,
    rgba(79, 172, 254, 0) 100%
  );
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.form-group:focus-within::before {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.15) 50%,
    rgba(79, 172, 254, 0.1) 100%
  );
  opacity: 1;
  filter: blur(8px);
}

.form-input.error {
  border-color: var(--text-error);
  box-shadow: 
    var(--shadow-input),
    0 0 0 3px rgba(255, 107, 107, 0.15);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding-top: var(--spacing-xs);
}

.checkbox-input {
  width: 16px;
  height: 16px;
  accent-color: #8b5cf6;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.checkbox-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  letter-spacing: 0.02em;
}

.checkbox-label:hover {
  color: var(--text-secondary);
}

.submit-btn {
  position: relative;
  width: 100%;
  padding: 0.85rem var(--spacing-lg);
  margin-top: var(--spacing-sm);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 35%, #f093fb 65%, #ec4899 100%);
  background-size: 200% 200%;
  border-radius: var(--radius-lg);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: 
    transform 0.2s ease,
    box-shadow 0.3s ease,
    background-position 0.5s ease;
  overflow: hidden;
  animation: btnGradient 4s ease infinite;
}

@keyframes btnGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #06b6d4 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.submit-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 200, 0, 0.15) 50%,
    transparent 100%
  );
  transition: left 0.5s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px -8px rgba(102, 126, 234, 0.5),
    0 15px 35px -15px rgba(236, 72, 153, 0.4);
}

.submit-btn:hover::before {
  opacity: 1;
}

.submit-btn:hover::after {
  left: 100%;
}

.submit-btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  filter: saturate(0.6);
}

.submit-btn-text {
  position: relative;
  z-index: 1;
}

.submit-btn.loading .submit-btn-text {
  visibility: hidden;
}

.submit-btn.loading::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  top: 50%;
  left: 50%;
  margin: -11px 0 0 -11px;
  border: 2px solid transparent;
  border-top-color: #0a0a0f;
  border-right-color: #0a0a0f;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.error-message {
  display: none;
  padding: var(--spacing-md);
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.25);
  border-radius: var(--radius-md);
  color: var(--text-error);
  font-size: 0.85rem;
  text-align: center;
  animation: errorSlide 0.35s ease;
}

.error-message.visible {
  display: block;
}

@keyframes errorSlide {
  from { 
    opacity: 0; 
    transform: translateY(-8px) scale(0.98);
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1);
  }
}

.password-toggle {
  position: absolute;
  right: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--spacing-xs);
  transition: color 0.2s ease, transform 0.2s ease;
  opacity: 0.7;
}

.password-toggle:hover {
  color: #f093fb;
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.password-wrapper {
  position: relative;
}

.password-wrapper .form-input {
  padding-right: 3rem;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
  20%, 40%, 60%, 80% { transform: translateX(6px); }
}

@keyframes chromeBorder {
  0% {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.3);
  }
  33% {
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.3);
  }
  66% {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
  }
  100% {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.3);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rippleExpand {
  0% {
    transform: scale(0);
    opacity: 0.6;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes crack {
  0% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    filter: brightness(1);
  }
  50% {
    filter: brightness(0.5);
  }
  100% {
    clip-path: polygon(0 0, 48% 0, 45% 50%, 0 100%, 0 100%, 0 50%);
    filter: brightness(0.3);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(96, 165, 250, 0.4), 0 0 60px rgba(167, 139, 250, 0.2);
  }
}

@keyframes vortexSpin {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(720deg) scale(0);
  }
}

@keyframes flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-shake {
  animation: shake 0.5s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.5s ease-out;
}

.animate-slide-down {
  animation: slideDown 0.5s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.3s ease-out;
}

.animate-glow {
  animation: glowPulse 3s ease-in-out infinite;
}
body.no-webgl {
  background: var(--bg-primary);
}

body.no-webgl::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(96, 165, 250, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(167, 139, 250, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(34, 211, 238, 0.1) 0%, transparent 60%),
    var(--bg-primary);
  animation: liquidFallback 20s ease-in-out infinite;
}

body.no-webgl::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: 
    radial-gradient(circle at 30% 60%, rgba(96, 165, 250, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 70% 40%, rgba(167, 139, 250, 0.1) 0%, transparent 40%);
  animation: liquidFallback2 15s ease-in-out infinite;
  animation-delay: -5s;
}

@keyframes liquidFallback {
  0%, 100% {
    background-position: 
      0% 0%,
      100% 100%,
      50% 50%;
    filter: hue-rotate(0deg);
  }
  25% {
    background-position: 
      20% 30%,
      80% 70%,
      40% 60%;
  }
  50% {
    background-position: 
      40% 60%,
      60% 40%,
      60% 40%;
    filter: hue-rotate(15deg);
  }
  75% {
    background-position: 
      60% 40%,
      40% 60%,
      50% 50%;
  }
}

@keyframes liquidFallback2 {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.6;
  }
  33% {
    transform: scale(1.1) rotate(2deg);
    opacity: 0.8;
  }
  66% {
    transform: scale(0.95) rotate(-2deg);
    opacity: 0.5;
  }
}

.liquid-overlay {
  display: none;
}

body.no-webgl .liquid-overlay {
  display: block;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

body.no-webgl .liquid-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: blobFloat 25s ease-in-out infinite;
}

body.no-webgl .liquid-blob:nth-child(1) {
  width: 600px;
  height: 600px;
  background: var(--accent-blue);
  top: -200px;
  left: -100px;
  animation-delay: 0s;
}

body.no-webgl .liquid-blob:nth-child(2) {
  width: 500px;
  height: 500px;
  background: var(--accent-purple);
  bottom: -150px;
  right: -100px;
  animation-delay: -8s;
}

body.no-webgl .liquid-blob:nth-child(3) {
  width: 400px;
  height: 400px;
  background: var(--accent-cyan);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -16s;
}

@keyframes blobFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, -30px) scale(1.1);
  }
  50% {
    transform: translate(-30px, 50px) scale(0.9);
  }
  75% {
    transform: translate(30px, 30px) scale(1.05);
  }
}

body.no-webgl .login-card {
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  background: rgba(17, 17, 17, 0.9);
}

body.no-webgl #webgl-canvas {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  body.no-webgl::before,
  body.no-webgl::after,
  body.no-webgl .liquid-blob {
    animation: none;
  }
}
