nav {
  display: flex;
  gap: 0.5rem;

  .user-info {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
  }
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem;
  box-sizing: border-box;
}

.auth-container {
  width: 100%;
  max-width: 20rem;
  text-align: center;
}

.auth-title {
  margin: 0 0 1.5rem 0;
  font-size: 2rem;
  font-weight: normal;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 0.5rem;
  box-sizing: border-box;
}

.auth-form input[type="submit"] {
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.auth-links {
  margin-top: 1rem;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 1px solid #ccc;
}

th {
  font-weight: bold;
}

.status-processing {
  color: gray;
}

.status-extracting_metadata {
  color: orange;
}

.status-creating_document {
  color: blue;
}

.status-completed {
  color: green;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }

  a {
    color: #66b3ff;
  }

  a:visited {
    color: #b399ff;
  }

  th, td {
    border-bottom-color: #444;
  }

  input[type="email"],
  input[type="password"],
  input[type="text"] {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #444;
  }

  input[type="submit"] {
    background-color: #333;
    color: #e0e0e0;
    border: 1px solid #555;
  }

  .status-processing {
    color: #999;
  }

  .status-extracting_metadata {
    color: #ffa500;
  }

  .status-creating_document {
    color: #6699ff;
  }

  .status-completed {
    color: #66cc66;
  }
}
