* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: 0;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  position: fixed;
  inset: 0;
  overscroll-behavior: none;
}

h1, h2, h3 {
  font-weight: 500;
}

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

input {
  font-family: inherit;
}

input,
select,
textarea {
  font-size: 16px;
}

#app {
  position: fixed;
  inset: 0;
  height: 100%;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}

.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  z-index: 1;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.page.active {
  transform: translateX(0);
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
}

.hidden {
  display: none !important;
}

@media (min-width: 900px) {
  html {
    font-size: 100%;
  }

  body {
    background: #eef2f6;
  }

  #app {
    background: #eef2f6;
  }

  .page {
    background: #eef2f6;
    padding-left: 240px;
  }

  #login-page {
    padding-left: var(--spacing-6);
  }
}
