@use './_colors.scss' as *;
@use './_uprofiler.scss' as *;

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: $cool-grey-9;
  color: $cool-grey-0;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  font-size: 62.5%;
  font-size: 1rem;
  line-height: 1.4;
}

.container {
  margin: 0 auto;
  width: 960px;
}

.nav {
  background: $white;
  border-bottom: 1px solid $cool-grey-8;

  &__items {
    display: flex;
    list-style-type: none;
  }

  &__item {
    a {
      display: block;
      padding: 12px 16px 12px 0;
    }
  }
}

.button {
  background: $cool-grey-3;
  border: 1px solid $cool-grey-3;
  border-radius: 4px;
  color: $white;
  cursor: pointer;
  display: block;
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 8px;
  padding: 12px;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s;
  width: 100%;

  &:last-child {
    margin: 0;
  }

  &:hover {
    background: $cool-grey-2;
    border-color: $cool-grey-3;
  }

  &--primary {
    background: $vivid-purple-3;
    border-color: $vivid-purple-3;

    &:hover {
      background: $vivid-purple-0;
      border-color: $vivid-purple-0;
    }
  }

  &--secondary {
    background: transparent;
    border-color: $vivid-purple-5;
    color: $vivid-purple-3;

    &:hover {
      background: transparent;
      border-color: $vivid-purple-2;
      color: $vivid-purple-1;
    }
  }
}

.flash {
  list-style-type: none;
  margin: 12px 0;

  &__item {
    background: $cool-grey-3;
    border-radius: 4px;
    color: $white;
    padding: 12px;
  }
}

.form {
  &--login,
  &--signup,
  &--password-reset {
    background: $white;
    border: 1px solid $cool-grey-8;
    border-radius: 4px;
    box-shadow:
      0 3px 30px 2px rgba($cool-grey-3, 0.1),
      0 2px 2px  0 rgba($cool-grey-5, 0.1);
    margin: 48px auto;
    padding: 32px;
    width: 420px;
  }

  &__errors {
    background: $cool-grey-3;
    border-radius: 4px;
    color: $white;
    font-size: 0.8rem;
    font-weight: 500;
    list-style-type: none;
    margin: -8px 0 16px;
    padding: 12px;
  }

  &__group {
    label {
      display: block;
      font-size: 1rem;
      margin: 0 0 16px;

      input {
        display: block;
        margin: 4px 0 0;
      }
    }

    input {
      border: 1px solid $cool-grey-7;
      border-radius: 4px;
      color: $cool-grey-1;
      font-size: 1rem;
      font-weight: 400;
      padding: 9px;
      width: 100%;

      &:focus {
        border-color: $cool-grey-6;
        box-shadow: 0 0 0 2px $cool-grey-8;
      }
    }
  }
}
