@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap";

/* src/styles/base.css */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  color-scheme: dark;
  accent-color: #ff6b00;
  --bg: #050710;
  --bg1: #0a0d18;
  --bg2: #0f1422;
  --bg3: #151b2e;
  --bg4: #1d253d;
  --bg-elevated: #1a2138;
  --glass: rgba(20, 26, 45, 0.55);
  --glass-heavy: rgba(14, 19, 35, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --orange: #ff6b00;
  --orange-light: #ff8c1a;
  --orange-pale: #ffb347;
  --orange-deep: #e55a00;
  --orange-dim: rgba(255, 107, 0, 0.12);
  --orange-glow: rgba(255, 107, 0, 0.35);
  --orange-grad:
    linear-gradient(
      135deg,
      #ff6b00 0%,
      #ff8c1a 50%,
      #ffa040 100%);
  --border: rgba(255, 255, 255, 0.06);
  --border-h: rgba(255, 255, 255, 0.12);
  --border2: rgba(255, 107, 0, 0.25);
  --text: #f0f2f8;
  --text-sub: #8492b0;
  --text-dim: #3f4a66;
  --success: #2ecc71;
  --success-dim: rgba(46, 204, 113, 0.12);
  --danger: #ff4757;
  --danger-dim: rgba(255, 71, 87, 0.12);
  --warn: #ffa726;
  --warn-dim: rgba(255, 167, 38, 0.12);
  --info: #3498db;
  --info-dim: rgba(52, 152, 219, 0.12);
  --gold: #ffd700;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 24px var(--orange-glow);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --dur-fast: 0.15s;
  --dur: 0.25s;
  --dur-slow: 0.4s;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
}
html,
body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-feature-settings:
    "cv11",
    "ss01",
    "ss03";
  background: var(--bg);
  background-image:
    radial-gradient(
      circle at 15% 10%,
      rgba(255, 107, 0, 0.06) 0%,
      transparent 40%),
    radial-gradient(
      circle at 85% 90%,
      rgba(255, 140, 26, 0.04) 0%,
      transparent 40%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
a {
  color: var(--orange-light);
  text-decoration: none;
  transition: color var(--dur-fast);
}
a:hover {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mono {
  font-family:
    "JetBrains Mono",
    "SF Mono",
    "Fira Code",
    monospace;
}
.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
::selection {
  background: var(--orange-glow);
  color: #fff;
}
::-moz-selection {
  background: var(--orange-glow);
  color: #fff;
}
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background var(--dur-fast);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--orange-dim);
  background-clip: padding-box;
}
::-webkit-scrollbar-corner {
  background: transparent;
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes logSlide {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  20%, 60% {
    transform: translateX(-8px);
  }
  40%, 80% {
    transform: translateX(8px);
  }
}
@keyframes bounce {
  0%, 60%, 100% {
    transform: translateY(0) scale(1);
  }
  30% {
    transform: translateY(-8px) scale(1.1);
  }
}
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 15px var(--orange-glow);
  }
  50% {
    box-shadow: 0 0 35px var(--orange-glow), 0 0 60px rgba(255, 107, 0, 0.15);
  }
}
@keyframes neonPulse {
  0%, 100% {
    box-shadow: 0 0 5px var(--orange), 0 0 10px rgba(255, 107, 0, 0.4);
  }
  50% {
    box-shadow:
      0 0 15px var(--orange),
      0 0 25px rgba(255, 107, 0, 0.6),
      inset 0 0 10px rgba(255, 107, 0, 0.2);
  }
}
@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 10px var(--orange), 0 0 20px var(--orange-glow);
  }
  50% {
    text-shadow:
      0 0 20px var(--orange),
      0 0 40px var(--orange-glow),
      0 0 60px rgba(255, 107, 0, 0.3);
  }
}
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}
@keyframes duckFloat {
  0% {
    transform: translateY(110vh) rotate(0deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-12vh) rotate(20deg);
    opacity: 0;
  }
}
@keyframes breath {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}
@keyframes dot {
  0%, 80%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.badge-success {
  background: var(--success-dim);
  color: var(--success);
}
.badge-error {
  background: var(--danger-dim);
  color: var(--danger);
}
.badge-warn {
  background: var(--warn-dim);
  color: var(--warn);
}
.badge-info {
  background: var(--info-dim);
  color: var(--info);
}
.badge-orange {
  background: var(--orange-dim);
  color: var(--orange-light);
}
#toastContainer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--glass-heavy);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  box-shadow: var(--shadow-lg), 0 0 20px var(--orange-glow);
  transform: translateX(120%);
  opacity: 0;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
  max-width: 360px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show {
  transform: translateX(0);
  opacity: 1;
}
.toast.toast-success {
  border-color: rgba(46, 204, 113, 0.35);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(46, 204, 113, 0.25);
}
.toast.toast-error {
  border-color: rgba(255, 71, 87, 0.35);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 71, 87, 0.25);
}
.skeleton {
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 0%,
      rgba(255, 255, 255, 0.06) 50%,
      rgba(255, 255, 255, 0.02) 100%);
  background-size: 1000px 100%;
  animation: shimmer 1.6s linear infinite;
  border-radius: var(--radius-sm);
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
.dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  animation: dot 1.2s ease-in-out infinite;
}
.dots span:nth-child(2) {
  animation-delay: 0.15s;
}
.dots span:nth-child(3) {
  animation-delay: 0.30s;
}
.glass {
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border: 1px solid var(--glass-border);
}
.gradient-text {
  background: var(--orange-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* src/styles/backgrounds.css */
.afc-bg-aurora {
  position: relative;
  isolation: isolate;
}
.afc-bg-aurora::before,
.afc-bg-aurora::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform;
}
.afc-bg-aurora::before {
  background:
    radial-gradient(
      ellipse 60% 40% at 30% 20%,
      var(--brand-500, #7c5cff) 0%,
      var(--brand-700, #5338b0) 35%,
      transparent 60%);
  animation: afc-aurora-drift-a 24s var(--ease-in-out-cubic, ease-in-out) infinite alternate;
}
.afc-bg-aurora::after {
  background:
    radial-gradient(
      ellipse 50% 30% at 70% 80%,
      var(--orange-light, #ff8c1a) 0%,
      var(--orange-deep, #e55a00) 40%,
      transparent 65%);
  animation: afc-aurora-drift-b 28s var(--ease-in-out-cubic, ease-in-out) infinite alternate;
  opacity: 0.35;
}
@keyframes afc-aurora-drift-a {
  0% {
    transform: translate3d(-10%, -8%, 0) scale(1);
  }
  50% {
    transform: translate3d(8%, 4%, 0) scale(1.15);
  }
  100% {
    transform: translate3d(-4%, 10%, 0) scale(0.95);
  }
}
@keyframes afc-aurora-drift-b {
  0% {
    transform: translate3d(8%, 10%, 0) scale(1.05);
  }
  50% {
    transform: translate3d(-8%, -4%, 0) scale(0.9);
  }
  100% {
    transform: translate3d(4%, 8%, 0) scale(1.2);
  }
}
.theme-light.afc-bg-aurora::before {
  opacity: 0.28;
}
.theme-light.afc-bg-aurora::after {
  opacity: 0.2;
}
.afc-bg-grid {
  position: relative;
  isolation: isolate;
}
.afc-bg-grid::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(
      to right,
      var(--border-subtle) 1px,
      transparent 1px),
    linear-gradient(
      to bottom,
      var(--border-subtle) 1px,
      transparent 1px);
  background-size: 56px 56px;
  mask-image:
    radial-gradient(
      ellipse 80% 60% at 50% 40%,
      #000 0%,
      transparent 80%);
  -webkit-mask-image:
    radial-gradient(
      ellipse 80% 60% at 50% 40%,
      #000 0%,
      transparent 80%);
  animation: afc-grid-drift 60s linear infinite;
}
@keyframes afc-grid-drift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 56px 56px;
  }
}
.afc-bg-dots {
  position: relative;
  isolation: isolate;
}
.afc-bg-dots::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(
      circle,
      var(--border-strong) 1px,
      transparent 1px);
  background-size: 32px 32px;
  mask-image:
    radial-gradient(
      ellipse 70% 50% at 50% 50%,
      #000 0%,
      transparent 85%);
  -webkit-mask-image:
    radial-gradient(
      ellipse 70% 50% at 50% 50%,
      #000 0%,
      transparent 85%);
  opacity: 0.6;
  animation: afc-dots-pulse 8s var(--ease-in-out-cubic, ease-in-out) infinite;
}
@keyframes afc-dots-pulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.02);
  }
}
.afc-bg-noise::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.4;
  mix-blend-mode: overlay;
}
.afc-bg-mesh {
  position: relative;
  isolation: isolate;
}
.afc-bg-mesh::before {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: -1;
  pointer-events: none;
  background:
    conic-gradient(
      from 0deg at 50% 50%,
      var(--brand-900, #281c5a) 0deg,
      var(--surface-0, #0a0e14) 60deg,
      var(--brand-950, #180f3a) 180deg,
      var(--surface-1, #0f141b) 240deg,
      var(--brand-800, #3d2a85) 330deg,
      var(--surface-0, #0a0e14) 360deg);
  opacity: 0.5;
  filter: blur(90px);
  animation: afc-mesh-rotate 120s linear infinite;
}
@keyframes afc-mesh-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.theme-light.afc-bg-mesh::before {
  opacity: 0.18;
}
.afc-bg-scanlines::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(
      to bottom,
      transparent 0,
      transparent 2px,
      rgba(255, 255, 255, 0.02) 2px,
      rgba(255, 255, 255, 0.02) 4px);
  opacity: 0.6;
}
.afc-bg-spotlight {
  position: relative;
  isolation: isolate;
}
.afc-bg-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      600px circle at var(--afc-spotlight-x, 50%) var(--afc-spotlight-y, 50%),
      var(--brand-subtle, rgba(124, 92, 255, 0.12)) 0%,
      transparent 60%);
  opacity: 0;
  transition: opacity var(--motion-med, 200ms) ease;
}
.afc-bg-spotlight:hover::before {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .afc-bg-aurora::before,
  .afc-bg-aurora::after,
  .afc-bg-grid::before,
  .afc-bg-dots::before,
  .afc-bg-mesh::before {
    animation: none !important;
  }
}

/* src/styles/aferamine.css */
:root {
  --afm-cyan: #00e5ff;
  --afm-magenta: #ff3da8;
  --afm-violet: #8b5cf6;
  --afm-lime: #beff00;
  --afm-amber: #ffb347;
  --afm-mesh-1: #ff6b00;
  --afm-mesh-2: #8b5cf6;
  --afm-mesh-3: #00e5ff;
  --afm-mesh-4: #ff3da8;
  --afm-sweep:
    conic-gradient(
      
      from var(--afm-angle, 0deg),
      #ff6b00,
      #ff3da8,
      #8b5cf6,
      #00e5ff,
      #beff00,
      #ff6b00 );
  --mx: 50%;
  --my: 50%;
  --afm-ease-snap: cubic-bezier(0.2, 0.9, 0.3, 1.2);
  --afm-ease-glide: cubic-bezier(0.16, 1, 0.3, 1);
  --afm-ease-back: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
@property --afm-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.afm-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(
      600px circle at var(--mx) var(--my),
      rgba(255, 107, 0, 0.10),
      rgba(139, 92, 246, 0.06) 30%,
      transparent 60%);
  transition: background-position 0.1s linear;
  mix-blend-mode: screen;
}
.theme-light .afm-spotlight {
  background:
    radial-gradient(
      600px circle at var(--mx) var(--my),
      rgba(255, 107, 0, 0.14),
      rgba(139, 92, 246, 0.08) 30%,
      transparent 60%);
  mix-blend-mode: multiply;
}
.afm-mesh {
  position: fixed;
  inset: -20%;
  z-index: -3;
  pointer-events: none;
  filter: blur(90px) saturate(140%);
  opacity: 0.85;
  background:
    radial-gradient(
      ellipse 45% 35% at 15% 20%,
      var(--afm-mesh-1) 0%,
      transparent 55%),
    radial-gradient(
      ellipse 50% 40% at 85% 30%,
      var(--afm-mesh-2) 0%,
      transparent 55%),
    radial-gradient(
      ellipse 55% 40% at 70% 85%,
      var(--afm-mesh-3) 0%,
      transparent 50%),
    radial-gradient(
      ellipse 40% 30% at 20% 80%,
      var(--afm-mesh-4) 0%,
      transparent 50%);
  animation: afm-mesh-drift 32s ease-in-out infinite alternate;
}
.theme-light .afm-mesh {
  opacity: 0.35;
}
@keyframes afm-mesh-drift {
  0% {
    transform: translate3d(-3%, -2%, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate3d(4%, 3%, 0) scale(1.15) rotate(8deg);
  }
  100% {
    transform: translate3d(-1%, 5%, 0) scale(0.95) rotate(-6deg);
  }
}
.afm-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.8'/></svg>");
}
.afm-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 107, 0, 0.04) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(139, 92, 246, 0.04) 1px,
      transparent 1px);
  background-size: 56px 56px;
  mask-image:
    radial-gradient(
      ellipse 70% 60% at 50% 50%,
      #000 0%,
      transparent 85%);
  -webkit-mask-image:
    radial-gradient(
      ellipse 70% 60% at 50% 50%,
      #000 0%,
      transparent 85%);
  animation: afm-grid-drift 90s linear infinite;
}
@keyframes afm-grid-drift {
  to {
    background-position: 56px 56px;
  }
}
.afm-glass {
  position: relative;
  background: rgba(14, 18, 32, 0.62);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  isolation: isolate;
}
.theme-light .afm-glass {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.afm-border-glow {
  position: relative;
  border: 1px solid transparent;
  background-clip: padding-box;
}
.afm-border-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: var(--afm-sweep);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  animation: afm-angle-spin 10s linear infinite;
  pointer-events: none;
}
.afm-border-glow:hover::before {
  opacity: 0.9;
}
@keyframes afm-angle-spin {
  to {
    --afm-angle: 360deg;
  }
}
@supports not (background: conic-gradient(from var(--afm-angle, 0deg), red, blue)) {
  .afm-border-glow::before {
    animation: afm-angle-spin-fallback 10s linear infinite;
  }
  @keyframes afm-angle-spin-fallback {
    to {
      transform: rotate(360deg);
    }
  }
}
.afm-gradient-text {
  background:
    linear-gradient(
      120deg,
      #ff6b00 0%,
      #ff3da8 30%,
      #8b5cf6 60%,
      #00e5ff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: afm-gradient-shift 6s ease-in-out infinite alternate;
  filter: drop-shadow(0 2px 24px rgba(255, 107, 0, 0.25));
}
.afm-gradient-text--warm {
  background:
    linear-gradient(
      120deg,
      var(--afm-mesh-1) 0%,
      var(--afm-amber) 50%,
      var(--afm-mesh-4) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: afm-gradient-shift 8s ease-in-out infinite alternate;
}
@keyframes afm-gradient-shift {
  to {
    background-position: 100% 50%;
  }
}
.afm-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      #ff6b00 0%,
      #ff3da8 55%,
      #8b5cf6 100%);
  background-size: 200% 200%;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(var(--btn-tx, 0), var(--btn-ty, 0), 0);
  transition:
    transform 0.25s var(--afm-ease-glide),
    background-position 0.5s var(--afm-ease-glide),
    box-shadow 0.3s ease;
  box-shadow:
    0 8px 28px rgba(255, 107, 0, 0.35),
    0 0 0 0 rgba(255, 61, 168, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.afm-btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 40%;
  background:
    linear-gradient(
      100deg,
      transparent 0%,
      rgba(255, 255, 255, 0.35) 50%,
      transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.7s var(--afm-ease-glide);
  pointer-events: none;
}
.afm-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      180px circle at var(--bmx, 50%) var(--bmy, 50%),
      rgba(255, 255, 255, 0.25),
      transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.afm-btn:hover {
  background-position: 100% 50%;
  box-shadow:
    0 12px 40px rgba(255, 61, 168, 0.45),
    0 0 0 6px rgba(139, 92, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.afm-btn:hover::before {
  left: 120%;
}
.afm-btn:hover::after {
  opacity: 1;
}
.afm-btn:active {
  transform: translate3d(var(--btn-tx, 0), var(--btn-ty, 0), 0) scale(0.97);
}
.afm-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text, #f0f2f8);
  box-shadow: none;
}
.afm-btn--ghost:hover {
  background: rgba(255, 107, 0, 0.08);
  border-color: rgba(255, 107, 0, 0.4);
  box-shadow: 0 0 24px rgba(255, 107, 0, 0.2);
}
.afm-tilt-scene {
  perspective: 1200px;
}
.afm-tilt {
  transform: rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)) translate3d(0, 0, 0);
  transform-style: preserve-3d;
  transition: transform 0.4s var(--afm-ease-glide);
  will-change: transform;
}
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.7s var(--afm-ease-glide), transform 0.7s var(--afm-ease-glide);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
[data-reveal] {
  transition-delay: var(--reveal-delay, 0ms);
}
.afm-split {
  display: inline-flex;
  flex-wrap: wrap;
}
.afm-split > span {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.6em, 0) rotateX(-90deg);
  transform-origin: 50% 100%;
  animation: afm-char-in 0.7s var(--afm-ease-snap) forwards;
  animation-delay: calc(var(--ci, 0) * 32ms);
}
.afm-split > span.is-space {
  width: 0.3em;
}
@keyframes afm-char-in {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg);
  }
}
.afm-skel {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}
.afm-skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      transparent 30%,
      rgba(255, 255, 255, 0.08) 50%,
      transparent 70%);
  animation: afm-shimmer 1.4s ease-in-out infinite;
}
@keyframes afm-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
.afm-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success, #2ecc71);
  box-shadow: 0 0 12px currentColor;
}
.afm-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.5;
  animation: afm-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes afm-ping {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}
.afm-float {
  animation: afm-float 6s ease-in-out infinite;
  transform-origin: 50% 100%;
}
@keyframes afm-float {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}
.afm-pulse {
  animation: afm-pulse 2.8s ease-in-out infinite;
}
@keyframes afm-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px currentColor);
  }
  50% {
    filter: drop-shadow(0 0 24px currentColor);
  }
}
@media (prefers-reduced-motion: reduce) {
  .afm-mesh,
  .afm-grid,
  .afm-gradient-text,
  .afm-gradient-text--warm,
  .afm-border-glow::before,
  .afm-float,
  .afm-pulse,
  .afm-dot::after,
  .afm-skel::after {
    animation: none !important;
  }
  .afm-split > span {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .afm-tilt {
    transform: none !important;
    transition: none !important;
  }
  .afm-btn,
  .afm-btn:hover {
    transform: none !important;
  }
  .afm-btn::before,
  .afm-btn::after {
    display: none !important;
  }
}

/* src/styles/login.css */
.caps-hint {
  margin-top: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: var(--radius-sm);
  animation: fadeUp 0.18s ease;
}
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.login-page::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 60% 40% at 30% 25%,
      rgba(255, 107, 0, 0.22) 0%,
      transparent 60%),
    radial-gradient(
      ellipse 50% 35% at 75% 75%,
      rgba(124, 92, 255, 0.18) 0%,
      transparent 55%);
  filter: blur(60px);
  animation: login-aurora 26s ease-in-out infinite alternate;
}
@keyframes login-aurora {
  0% {
    transform: translate3d(-6%, -4%, 0) scale(1);
  }
  50% {
    transform: translate3d(6%, 6%, 0) scale(1.15);
  }
  100% {
    transform: translate3d(-2%, 8%, 0) scale(0.95);
  }
}
.login-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 107, 0, 0.035) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(255, 107, 0, 0.035) 1px,
      transparent 1px);
  background-size: 50px 50px;
  mask-image:
    radial-gradient(
      ellipse 70% 60% at 50% 50%,
      #000 0%,
      transparent 80%);
  -webkit-mask-image:
    radial-gradient(
      ellipse 70% 60% at 50% 50%,
      #000 0%,
      transparent 80%);
  animation: login-grid 80s linear infinite;
}
@keyframes login-grid {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .login-page::before,
  .login-page::after {
    animation: none;
  }
}
#ducks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.duck {
  position: absolute;
  font-size: 24px;
  animation: duckFloat linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 140, 26, 0.6));
  user-select: none;
}
.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  padding: 20px;
  animation: fadeUp 0.5s ease;
}
.login-card {
  position: relative;
  background: rgba(11, 15, 26, 0.68);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 48px 42px;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 107, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  isolation: isolate;
  transform-style: preserve-3d;
}
.login-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background:
    conic-gradient(
      from var(--afm-angle, 0deg),
      rgba(255, 107, 0, 0.9),
      rgba(255, 61, 168, 0.8),
      rgba(139, 92, 246, 0.8),
      rgba(0, 229, 255, 0.7),
      rgba(255, 107, 0, 0.9));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  animation: afm-angle-spin 12s linear infinite;
  pointer-events: none;
}
.login-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(
      ellipse 60% 40% at 50% 0%,
      rgba(255, 107, 0, 0.10),
      transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.login-card > * {
  position: relative;
  z-index: 1;
}
.theme-light .login-card {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 107, 0, 0.25);
  box-shadow:
    0 24px 80px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(255, 107, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.logo {
  text-align: center;
  margin-bottom: 38px;
}
.logo-duck {
  font-size: 52px;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 16px rgba(255, 140, 26, 0.8));
  animation: duck-idle 6s ease-in-out infinite, duck-blink 5s steps(1, end) infinite;
  transform-origin: 50% 80%;
  cursor: pointer;
  transition: transform 150ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo-duck:hover {
  transform: rotate(-6deg) scale(1.08);
}
.logo-duck:active {
  transform: rotate(6deg) scale(0.96);
}
@keyframes duck-idle {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-6px) rotate(2deg);
  }
}
@keyframes duck-blink {
  0%, 94%, 98%, 100% {
    opacity: 1;
  }
  96% {
    opacity: 0.72;
  }
}
@media (prefers-reduced-motion: reduce) {
  .logo-duck {
    animation: none;
  }
  .logo-duck:hover,
  .logo-duck:active {
    transform: none;
  }
}
.logo-wordmark {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #b0b9c7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.08));
}
.logo-orange {
  background:
    linear-gradient(
      120deg,
      #ff6b00 0%,
      #ff3da8 35%,
      #8b5cf6 70%,
      #00e5ff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 107, 0, 0.55));
  animation: orange-shift 7s ease-in-out infinite alternate;
}
@keyframes orange-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .logo-orange {
    animation: none;
  }
}
.logo-tagline {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 3px;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-form.shake {
  animation: shake 0.4s ease;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.input-wrap {
  position: relative;
}
.input-wrap input {
  width: 100%;
  background: rgba(21, 27, 46, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition:
    border-color 0.2s var(--afm-ease-glide, ease),
    box-shadow 0.25s var(--afm-ease-glide, ease),
    background 0.25s ease;
  outline: none;
}
.input-wrap input:hover {
  border-color: rgba(255, 107, 0, 0.25);
}
.input-wrap input:focus {
  border-color: transparent;
  background: rgba(21, 27, 46, 0.8);
  box-shadow:
    0 0 0 1px rgba(255, 107, 0, 0.7),
    0 0 0 4px rgba(255, 107, 0, 0.15),
    0 0 24px rgba(255, 61, 168, 0.25);
}
.input-wrap input::placeholder {
  color: var(--text-dim);
}
.eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-sub);
  padding: 2px;
  transition: color 0.2s;
}
.eye-btn:hover {
  color: var(--orange-light);
}
.btn-primary {
  position: relative;
  background:
    linear-gradient(
      135deg,
      #ff6b00 0%,
      #ff3da8 55%,
      #8b5cf6 100%);
  background-size: 200% 200%;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translate3d(var(--btn-tx, 0), var(--btn-ty, 0), 0);
  transition:
    background-position 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 10px 32px rgba(255, 107, 0, 0.4),
    0 0 0 0 rgba(255, 61, 168, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  margin-top: 4px;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 40%;
  background:
    linear-gradient(
      100deg,
      transparent 0%,
      rgba(255, 255, 255, 0.25) 50%,
      transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow:
    0 14px 44px rgba(255, 61, 168, 0.5),
    0 0 0 6px rgba(139, 92, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover::before {
  left: 120%;
}
.btn-primary:active {
  transform: translate3d(var(--btn-tx, 0), var(--btn-ty, 0), 0) scale(0.97);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      200px circle at var(--bmx, 50%) var(--bmy, 50%),
      rgba(255, 255, 255, 0.3),
      transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}
.btn-primary:hover::after {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary {
    background-position: 50% 50%;
  }
  .btn-primary::before {
    display: none;
  }
  .btn-primary:hover {
    transform: none;
  }
}
.btn-primary.loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-primary.success {
  background:
    linear-gradient(
      135deg,
      #2ecc71,
      #27ae60);
  animation: none;
}
.error-msg {
  background: rgba(255, 71, 87, 0.08);
  border: 1px solid rgba(255, 71, 87, 0.3);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  text-align: center;
}
.login-footer {
  margin-top: 28px;
  text-align: center;
}
.login-footer p {
  font-size: 13px;
  color: var(--text-sub);
}
.server-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 16px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-sub);
}
.server-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: glowPulse 2s infinite;
}
.server-ip {
  font-family: "JetBrains Mono", monospace;
  color: var(--text);
  font-size: 12px;
}
.auth-tabs {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 18px;
}
.auth-tab {
  flex: 1;
  padding: 9px 12px;
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s;
}
.auth-tab:hover {
  color: var(--text);
}
.auth-tab.active {
  background:
    linear-gradient(
      135deg,
      var(--orange) 0%,
      var(--orange-light) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.28);
}
.auth-hint {
  margin-top: -4px;
  margin-bottom: 4px;
  background: var(--orange-dim);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.45;
}
.auth-hint.hidden {
  display: none;
}
@media (max-width: 480px) {
  .login-card {
    padding: 30px 22px;
    border-radius: 14px;
  }
  .logo-wordmark {
    font-size: 24px;
  }
}
.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 18px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-sub, #8492b0);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border-radius: 6px;
  font-family: inherit;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.auth-tab.active {
  color: #fff;
  background:
    linear-gradient(
      135deg,
      rgba(255, 107, 0, 0.7),
      rgba(255, 61, 168, 0.6));
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.form-group {
  transition: opacity 0.2s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.form-group.hidden {
  display: none;
}
.success-msg {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  text-align: center;
  animation: fadeUp 0.3s ease;
}
.success-msg.hidden {
  display: none;
}
.login-form {
  transition: opacity 0.25s ease;
}
.login-form.hidden {
  display: none;
}
