@layer components {

  html, body {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    background: var(--whitest);
  }

  .login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    margin: 1rem;
  }

  .login-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    background: var(--white);
    padding: 1rem 2rem 1rem 2rem;
  }

  .login-form a {
    max-width: 100%;
  }
  .login-form a img {
    max-width: 100%;
  }

  .login-form form {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--grey-lightest);
    padding-top: 1rem;
    margin-top: 3rem;
  }

  .login-form input {
    margin-bottom: 1rem;
    min-height: 1.5rem;
    border: 1px solid var(--black-lightest);
    border-radius: 5px;
    padding: 0.1rem 0.75rem;
  }

  .login-form button {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    min-height: 2rem;
    background: var(--main-blue);
    color: var(--whitest);
    font-family: var(--font-default);
    font-size: 18px;
    font-weight: 500;
    border: 1px solid var(--black-lightest);
    border-radius: 5px;
    cursor: pointer;
  }

  /* Breakpoint at 640px: constrain form width */
  @media (min-width: 640px) {
    .login-form {
      max-width: 400px;
    }
  }
}
