@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600&family=Inter:wght@300;400;500&display=swap');

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--steel-200);
  background: var(--bg-deep);
  line-height: 1.7;
  height: 100%;
  overflow: hidden;
  letter-spacing: 0.01em;
  cursor: default;
}

#app {
  height: 100%;
  overflow: hidden;
  position: relative;
}

#auth-root {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100%;
}

body *:not(input):not(textarea):not(select):not([contenteditable="true"]) {
  cursor: inherit;
}

a, button, .btn, .nav-item, label[for] {
  cursor: pointer !important;
}

input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]),
textarea, select, [contenteditable="true"], .form-input {
  cursor: text !important;
}

::selection {
  background: rgba(139, 156, 198, 0.25);
  color: var(--steel-100);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 300;
  letter-spacing: -0.02em;
}

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

a:hover {
  color: var(--text-primary);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: 14px;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

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

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-content {
  animation: page-enter var(--transition-page) ease-out;
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .page-content { animation: none; }
  html { scroll-behavior: auto; }
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 900px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    max-width: 100vw;
    overscroll-behavior-x: none;
  }
}
