
:root {
  --freedom-black: #010102;
  --freedom-surface: #18191e;
  --freedom-surface-raised: #222329;
  --freedom-green: #50ff6c;
  --freedom-text: #f7f8fa;
  --freedom-muted: #a8abb5;
}

.dark,
html.freedom-deerflow-auth {
  --background: #010102;
  --foreground: #f7f8fa;
  --card: #18191e;
  --card-foreground: #f7f8fa;
  --popover: #18191e;
  --popover-foreground: #f7f8fa;
  --primary: #50ff6c;
  --primary-foreground: #010102;
  --secondary: #222329;
  --secondary-foreground: #f7f8fa;
  --muted: #222329;
  --muted-foreground: #a8abb5;
  --accent: #2a2b31;
  --accent-foreground: #f7f8fa;
  --border: rgb(255 255 255 / 12%);
  --input: rgb(255 255 255 / 15%);
  --ring: #50ff6c;
  --sidebar: #18191e;
  --sidebar-foreground: #f7f8fa;
  --sidebar-primary: #50ff6c;
  --sidebar-primary-foreground: #010102;
  --sidebar-accent: #222329;
  --sidebar-accent-foreground: #f7f8fa;
  --sidebar-border: rgb(255 255 255 / 10%);
  --sidebar-ring: #50ff6c;
}

::selection {
  color: var(--freedom-black);
  background: var(--freedom-green);
}

:focus-visible {
  outline-color: var(--freedom-green) !important;
}

button[data-freedom-deepseek-mode='true'] {
  font-size: 0 !important;
  cursor: default !important;
  opacity: 1 !important;
}

button[data-freedom-deepseek-mode='true']::after {
  color: currentcolor;
  content: 'Reasoning on';
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

html.freedom-deerflow-auth {
  color-scheme: dark;
}

html.freedom-deerflow-auth body {
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--freedom-text);
  background: var(--freedom-black);
}

html.freedom-deerflow-auth body::before,
html.freedom-deerflow-auth body::after {
  position: fixed;
  z-index: 0;
  width: 54vw;
  height: 54vw;
  min-width: 520px;
  min-height: 520px;
  content: '';
  pointer-events: none;
  opacity: 0.34;
}

html.freedom-deerflow-auth body::before {
  top: -40vw;
  left: 2vw;
  background: radial-gradient(circle, rgb(80 255 108 / 48%), transparent 68%);
}

html.freedom-deerflow-auth body::after {
  right: -34vw;
  bottom: -42vw;
  background: radial-gradient(circle, rgb(99 216 255 / 30%), transparent 70%);
}

html.freedom-deerflow-auth [class*='mask-'] {
  display: none !important;
}

html.freedom-deerflow-auth body > div.min-h-screen,
html.freedom-deerflow-auth body > div > div.min-h-screen {
  position: relative;
  z-index: 1;
  justify-content: flex-end !important;
  min-height: 100svh;
  padding: 36px clamp(28px, 7vw, 112px) 36px max(52vw, 32px);
  background: transparent !important;
}

html.freedom-deerflow-auth div.max-w-md.rounded-3xl {
  width: min(100%, 440px);
  color: var(--freedom-text);
  background: rgb(24 25 30 / 88%) !important;
  border: 1px solid rgb(255 255 255 / 13%) !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 80px rgb(0 0 0 / 46%);
  backdrop-filter: blur(24px);
}

html.freedom-deerflow-auth div.max-w-md.rounded-3xl input {
  min-height: 48px;
  color: var(--freedom-text) !important;
  background: rgb(1 1 2 / 62%) !important;
  border-color: rgb(255 255 255 / 14%) !important;
}

html.freedom-deerflow-auth div.max-w-md.rounded-3xl input:focus {
  border-color: var(--freedom-green) !important;
  box-shadow: 0 0 0 3px rgb(80 255 108 / 12%);
}

html.freedom-deerflow-auth div.max-w-md.rounded-3xl button[type='submit'] {
  min-height: 48px;
  color: var(--freedom-black) !important;
  font-weight: 650;
  background: var(--freedom-green) !important;
  box-shadow: 0 10px 30px rgb(80 255 108 / 14%);
}

html.freedom-deerflow-auth div.max-w-md.rounded-3xl button[type='submit']:hover {
  background: #73ff88 !important;
}

#freedom-deerflow-hero {
  position: fixed;
  top: 50%;
  left: clamp(28px, 7vw, 120px);
  z-index: 2;
  width: min(40vw, 520px);
  pointer-events: none;
  transform: translateY(-50%);
}

#freedom-deerflow-hero > img {
  width: 174px;
  height: 52px;
  margin-bottom: 38px;
}

#freedom-deerflow-hero .freedom-product-name {
  margin: 0;
  color: var(--freedom-text);
  font-family: Museo, Inter, 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(2.4rem, 3.6vw, 3.8rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.045em;
}

#freedom-deerflow-hero .freedom-access-note {
  margin: 14px 0 0;
  color: var(--freedom-muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

@media (max-width: 820px) {
  html.freedom-deerflow-auth body > div.min-h-screen,
  html.freedom-deerflow-auth body > div > div.min-h-screen {
    justify-content: center !important;
    padding: 176px 16px 28px;
  }

  #freedom-deerflow-hero {
    position: absolute;
    top: 28px;
    left: 24px;
    width: calc(100% - 48px);
    transform: none;
  }

  #freedom-deerflow-hero > img {
    width: 147px;
    height: 44px;
    margin-bottom: 20px;
  }

  #freedom-deerflow-hero .freedom-product-name {
    font-size: 2rem;
  }

  html.freedom-deerflow-auth div.max-w-md.rounded-3xl {
    padding: 28px 24px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}