html,
body {
  height: 100%;
}

body {
  font-family: Inter, sans-serif;
  background: var(--color-dark);
}

a {
  color: var(--color-secondary);
}

.login-wrapper {
  margin: 3rem auto;
  max-width: 20rem;
  background-color: #fff;
  border-radius: 0.5rem;
  color: #000;
  padding: 2rem;

  .logo {
    display: block;
    margin: 0 auto 1.5rem;

    img {
      margin: 0 auto;
      display: block;
      width: 4rem;
      height: auto;
    }
  }

  h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
  }

  h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
  }

  > p {
    margin-bottom: 1.5rem;
    line-height: 150%;
    text-align: center;
    color: var(--color-muted);
  }

  hr {
    border: 0;
    margin: 1rem 0;
  }
}

form {
  label {
    display: block;
    color: var(--color-neutral);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }

  label[for='id_remember'] {
    display: inline;
  }

  p {
    &:not(:last-child) {
      margin-bottom: 1rem;
    }
  }

  select,
  textarea,
  input[type='text'],
  input[type='date'],
  input[type='datetime'],
  input[type='datetime-local'],
  input[type='time'],
  input[type='email'],
  input[type='password'] {
    width: 100%;
    padding: 0.7rem;
    background: rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    border: 0;
    border-radius: 0.5rem;
  }

  ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    li {
      font-size: 0.9rem;
      line-height: 130%;
      color: var(--color-muted);
    }
  }

  .errorlist {
    margin-bottom: 1.5rem;
    li {
      color: var(--color-red);
    }
  }

  select {
    padding-right: 2.5rem;
    appearance: none;
    cursor: pointer;

    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
      linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position:
      calc(100% - 1rem) 50%,
      calc(100% - 0.7rem) 50%;
    background-size: 0.3rem 0.3rem;
    background-repeat: no-repeat;
  }

  button {
    background: var(--color-primary);
    color: var(--color-dark);
    border: 0;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0.25rem;
  }

  .helptext {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-neutral);
  }
}

.social-button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 10px;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  background: #fff;
  color: #171717;
  font: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition:
    background 150ms,
    border-color 150ms;
}

.social-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.social-google {
  background: #fff;
  color: #202124;
  border-color: #dadce0;
}

.social-google:hover {
  background: #f8f9fa;
}

.social-microsoft {
  /* background: #2563eb; */
  /* border-color: #2563eb; */
  /* color: #fff; */
  background: #fff;
  color: #202124;
  border-color: #dadce0;
}

.social-microsoft:hover {
  /* background: #1d4ed8; */
  background: #f8f9fa;
}

.social-button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

.social-providers {
  display: grid;
  gap: 0.5rem;
}
