$color-background: #f2f4f7;
$color-black-light: #111111;
$color-blue-background: #0095f6;
$color-blue-hover: #166fe5;
$color-blue: #304cb2;
$color-gray-light: #cccccc;
$color-gray: #999999;
$color-shadow: rgba(0, 0, 0, 0.1);
$color-white: #ffffff;

body {
  align-items: center;
  background-color: $color-background;
  color: $color-black-light;
  display: flex;
  flex-direction: column;
  font-family: sans-serif;
  font-size: 14px;
  height: 100vh;
  justify-content: center;
  margin: 0;
  padding: 0;
}

header {
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: center;

  svg {
    &:last-of-type {
      align-self: flex-end;
    }
  }
}

main {
  background-color: $color-white;
  border-radius: 0.5rem;
  padding: 1rem;
  width: 320px;
  box-shadow:
    0px 2px 4px $color-shadow,
    0px 8px 16px $color-shadow;
  width: 400px;

  @media (max-width: 768px) {
    box-sizing: border-box;
    box-shadow: none;
    height: 100%;
    width: 100%;
  }

  > section {
    h2 {
      text-align: center;
      font-weight: 600;
      margin: 1rem 0;
    }

    form {
      margin-top: 1rem;

      input {
        border-radius: 4px;
        border: 1px solid $color-gray-light;
        box-sizing: border-box;
        font-size: 1rem;
        margin-bottom: 1rem;
        padding: 0.65rem;
        width: 100%;

        &:hover {
          cursor: text;
        }
      }

      button {
        background: $color-blue-background;
        border-radius: 0.5rem;
        border: none;
        color: $color-white;
        cursor: pointer;
        font-size: 1rem;
        font-weight: 600;
        padding: 0.75rem 1rem;
        width: 100%;

        &:hover {
          background: $color-blue-hover;
        }
      }

      a {
        display: block;
        color: $color-blue;
        text-decoration: none;
        margin: 1rem auto;
        font-size: 0.75rem;
        text-align: center;
      }
    }
  }
}

footer {
  bottom: 0;
  color: $color-black-light;
  font-size: 0.75rem;
  padding: 0.5rem 0;
  position: absolute;
  text-align: center;
  width: 100%;

  p {
    margin: 0;
  }
}
