/* login */
@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
  --Neutrals-MaastrichtBlue: #173548;
  --primaryBleu: #0084C5
}

html:has(.user-login-form) {
  height: 100vh;
  width: 100vw;
  overflow: hidden;

  & .region.region-highlighted {
    display: none !important;
  }

  & input[name="form_id"]+a {
    display: none !important;
  }

  & * {
    font-family: "Mulish", serif;
    font-optical-sizing: auto;
    font-style: normal;
  }

  & .region-sticky,
  & .gin-secondary-toolbar,
  & .sticky-shadow {
    display: none;
  }

  & .page-wrapper {
    background: url("../assets/images/loginImage.jpg") no-repeat;
    background-size: cover;
    background-position: bottom;

    display: inline-block;
    height: 100vh;
    width: 100%;

    & form {
      max-width: 285px;
    }

    & .content-header.clearfix {
      display: none
    }

    & .layout-container {
      height: 100%;
    }

    /* backdrop */

    /* &:before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      background-color: rgba(0, 0, 0, 0.25);
      width: 100vw;
      height: 100vh;
    } */

    & main {
      min-height: 90vh;
      width: 100%;
      height: 100%;
      margin: 0;
      background-color: transparent;
      margin-bottom: 0 !important;

      display: flex;
      justify-content: center;

      & .region-content {
        display: flex;
        width: 80vw;
        position: relative;
        justify-content: space-between;
        align-items: flex-start;
      }

      & .region.region-content {
        margin: auto 0 !important;
        max-width: 65vw;

        position: relative;
      }

      & .panagora_logo {
        width: 280px;
        height: 155px;

        background: url("../assets/images/workflow_logo_w_text.svg");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;

        /* margin-top: 40px; */

      }

      & .email-signIn {
        margin: 20px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        cursor: pointer;

        &::after {
          content: "";
          background: url("../assets/images/circle-chevron.svg") no-repeat;
          width: 24px;
          height: 24px;
          display: inline;
          transition: all 1000ms;
        }

        &:hover {
          &::after {
            scale: 1.05;
          }
        }

        & p {
          margin: 0;
        }

        &.email-active {
          &::after {
            rotate: 540deg;
          }
        }
      }

      & div:has(> form) {
        display: flex;
        align-items: center;
        color: var(--Neutrals-MaastrichtBlue);

        & form {
          background-color: white;
          max-height: 485px;
          margin: auto 0;
          padding: 50px;
          border-radius: 12px;
          position: relative;
          right: -16%;
        }

        & label {
          position: relative;

          &:after {
            content: "*";
            background-image: unset;
            position: absolute;
            right: -12px;
            top: 0;
          }
        }

        & #formContent+a {
          display: grid;
          place-items: center;
          width: 100%;
          text-decoration: none;
          border: unset;

          height: 40px;
          border-radius: 8px;
          background-color: var(--primaryBleu) !important;
          background-image: unset;
          color: white;
          font-size: 16px;
          font-weight: 700;

          &:hover {
            background-color: #173548 !important;
          }
        }

        & input {
          height: 40px;
          border-radius: 8px;
        }
      }

      & #edit-actions {
        padding: 0 !important;
        position: static !important;
        clip: unset !important;
        height: 40px !important;
        width: 100% !important;
        display: none !important;

        & input {
          width: 100%;
          height: 40px;
          border-radius: 8px;
          background-color: var(--primaryBleu) !important;
          background-image: unset;
          color: white;
          font-size: 16px;
          font-weight: 700;

          &:hover {
            background-color: #173548 !important;
          }
        }
      }

      & .js-form-item {
        display: none;
      }

      & h3 {
        font-size: 32px;
        font-weight: 700;
        font-weight: 700;
        margin-top: 0;
      }

      & .panagora_logo {
        width: 280px;
        height: 155px;

        background: url("../assets/images/logo_couleur_taglineDark.svg");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;

        /* margin-top: 32px; */

      }

      & .logoWtext {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 8rem;
        align-items: center;
        margin-left: -80px;

        @media screen and (min-width: 1150px) {
          margin: auto 0;
          position: relative;
          top: -95px;
          left: -85px;
        }

        /* position: absolute;
      left: 18%; */
        & p {
          background-color: #0084c5;
          padding: 0 10px;
        }
      }

      &:has(.email-active) {

        & .js-form-item,
        & #edit-actions {
          display: block !important;
        }

        & .email-signIn {
          :after {
            rotate: 180deg;

          }
        }


      }

      & .panagora_quote {
        font-size: 24px;
        letter-spacing: -1.2%;
        font-weight: 700;
        color: white;
        display: none !important;

        & p {
          background-color: #0084c5;
          padding: 0 10px;
          font-size: 20px;
          margin: 0;
        }
      }
    }

    @media screen and (max-width: 1150px) {
      & .panagora_quote.desktop {
        display: none;
      }

      & #main-wrapper {
        width: unset;

      }

      main {
        & div.region-content {
          flex-direction: column;
          align-items: center;
          gap: 2rem;
          max-width: 81vw !important;
        }

        & form {
          padding: 50px 30px !important;
          right: unset !important;
        }

        & .logoWtext {
          position: static;
          margin-left: unset;
        }

        & .panagora_logo {
          margin-top: 20px;
          height: 50px;
        }
      }
    }

    @media screen and (min-width: 1151px) {
      & .panagora_quote.mobile {
        display: none;
      }

      & .panagora_quote.desktop {
        display: block;
        margin-top: -1rem;
      }
    }
  }
}