@use '../components/mixins' as mixins;

* {
  box-sizing: border-box;
}

.login {
  display: flex;
  align-items: center;
  height: 100vh;

  &__img {
    width: 100%;
    height: 100vh;
    object-fit: cover;

    &__wrapper {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;

      &::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.3);
      }
    }
  }

  &__container {
    @include mixins.container-wide();
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 2;

    @include media-md {
      justify-content: center;
      flex-direction: row;
      gap: 40px;
    }
  }

  &__content {
    h1,
    p {
      color: white;
    }

    p {
      font-size: 18px;
      line-height: 1.5;
    }
  }

  &__card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: white;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    padding: 30px;
    max-width: 600px;
    width: 100%;

    @include media-md {
      padding: 60px;
    }

    &__title {
      text-align: center;
    }
  }

  &__logo {
    width: 250px;
    height: auto;
    margin: 0 auto;

    svg,
    img {
      height: 100%;
      width: 100%;
      display: block;
    }
  }

  &__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: none;

    &__group {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
  }

  &__error {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #ffe5e5;
    color: #d60000;
    border-radius: 6px;
    font-size: 0.9rem;
  }

  &__forgot {
    margin-top: 1rem;
    background: none;
    border: none;
    color: #333399;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;

    &:hover {
      text-decoration: underline;
    }
  }

  &__welcome {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
}
