@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap");

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

body {
  background-color: #ffbb00;
  width: 100%;
}

.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  width: 914px;
  height: 519px;
  border-radius: 30px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  background-color: #ffffff;
  display: flex;
  overflow: hidden;
  position: relative;
  animation: myAnim 2s ease 0s 1 normal forwards;
}

@keyframes myAnim {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.gauche {
  width: 500.98px;
  background: rgba(35, 27, 43, 1);
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0% 100%);
  position: relative;
}

.droite {
  width: 914px;
  height: 519px;
  background-color: #ffffff;
  position: relative;
}

.txt_gauche {
  position: absolute;
  top: 31px;
  left: 20px;
  width: 291px;
  height: 462px;
}

.txt_gauche p {
  margin: 0;
  padding: 0;
  margin-bottom: 20px;
  font-family: Roboto Mono;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0em;
  text-align: left;
  color: rgba(255, 255, 255, 0.5);
}

.logo {
  position: absolute;
  width: 148.65px;
  height: 135.34px;
  top: 150px;
  left: 325px;
  border-radius: 8px;
}

.login_mail {
  position: absolute;
  width: 289px;
  height: 30px;
  top: 230px;
  left: 560px;
  border: none;
  border-bottom: 1px solid rgba(35, 27, 43, 0.5);
}

.login_mail::placeholder {
  font-family: Rajdhani;
  font-size: 20px;
  line-height: 26px;
  letter-spacing: 0em;
  text-align: left;
}

.login_mdp {
  position: absolute;
  width: 289px;
  height: 30px;
  top: 295px;
  left: 560px;
  border: none;
  border-bottom: 1px solid rgba(35, 27, 43, 0.5);
}

.login_mdp::placeholder {
  font-family: Rajdhani;
  font-size: 20px;
  font-style: normal;
  font-weight: 300;
  line-height: 26px;
  letter-spacing: 0em;
  text-align: left;
}

.connexion_txt {
  position: absolute;
  width: 459px;
  height: 61px;
  left: 455px;
  top: 85px;

  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 700;
  font-size: 48px;
  line-height: 61px;
  text-align: center;

  color: #231b2b;
}

.connexion button {
  position: absolute;
  width: 263px;
  height: 50px;
  top: 404px;
  left: 489px;
  border-radius: 10px;
  background: rgba(35, 27, 43, 1);
  font-family: "Rajdhani", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 46px;
  color: #ffbb00;

  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer !important;
  transition: all 0.3s ease-in-out;
}

.connexion button:hover {
  background: rgba(35, 27, 43, 0.5);
  color: #ffbb00;
}

.forgot_password {
  width: 217px;
  height: 31px;
  top: 335px;
  left: 560px;
  position: absolute;
  font-family: Rajdhani;
  font-size: 15px;
  font-weight: 400;
  line-height: 19px;
  letter-spacing: 0em;
  text-align: left;
}

.forgot_password a {
  text-decoration: none;
  color: #ffbb00;
}

.error {
  position: absolute;
  width: 289px;
  height: 30px;
  top: 360px;
  left: 560px;
  font-family: Rajdhani;
  font-size: 15px;
  font-weight: 400;
  line-height: 19px;
  letter-spacing: 0em;
  text-align: left;
  color: red;
}

.message {
  position: absolute;
  width: 289px;
  height: 30px;
  top: 360px;
  left: 560px;
  font-family: Rajdhani;
  font-size: 15px;
  font-weight: 400;
  line-height: 19px;
  letter-spacing: 0em;
  text-align: left;
  color: green;
}

.container_mob,
.logo_mob,
.login_mail_mob,
.login_mdp_mob,
.connexion_mob,
.forgot_password_mob,
.error_mob,
.message_mob {
  display: none;
}

@media (max-width: 919px) {
  body {
    background: linear-gradient(135deg, #231b2b 50%, #ffbb00 50%);
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    padding: 0.5rem;
    height: 100%;
  }

  .wrapper {
    overflow: visible;
  }

  .container {
    width: 375px;
    height: 500px;
    overflow: visible;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .gauche,
  .logo,
  .login_mail,
  .login_mdp,
  .txt_gauche,
  .connexion_txt,
  .connexion button,
  .forgot_password,
  .error,
  .message {
    display: none;
  }

  .container_mob {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .form_mob {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .logo_mob {
    display: block;
    position: absolute;
    top: -4.6rem;
    left: 50%- (6rem/2);
    z-index: 1000;
  }

  .logo_mob img {
    width: 180px;
  }

  .login_mail_mob {
    display: block;

    margin-bottom: 2rem;
    width: 100%;
    height: 2rem;
    border: none;
    border-bottom: 1px solid rgba(35, 27, 43, 0.5);
    font-family: Rajdhani;
    font-size: 1.5rem;
    text-align: left;
  }

  .login_mdp_mob {
    display: block;
    margin-bottom: 1rem;
    width: 100%;
    height: 2rem;
    border: none;
    border-bottom: 1px solid rgba(35, 27, 43, 0.5);
    font-family: Rajdhani;
    font-size: 1.5rem;
    text-align: left;
  }

  .connexion_mob {
    display: block;
    position: absolute;
    bottom: 5rem;
  }

  .connexion_mob button {
    width: 263px;
    height: 50px;
    border-radius: 10px;
    background: rgba(35, 27, 43, 1);
    font-family: "Rajdhani", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 46px;
    color: #ffbb00;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer !important;
    transition: all 0.3s ease-in-out;
  }

  .connexion_mob:hover {
    background: rgba(35, 27, 43, 0.5);
    color: #ffbb00;
  }

  .forgot_password_mob {
    display: block;
    margin-bottom: 0.4rem;
    font-family: Rajdhani;
    font-size: 1rem;
    font-weight: 400;
    line-height: 19px;
    letter-spacing: 0em;
    text-align: left;
    color: #ffbb00;
  }

  .forgot_password_mob a {
    text-decoration: none;
    color: #ffbb00;
  }

  .error_mob {
    display: block;
    margin: 0 auto;
    font-family: Rajdhani;
    font-size: 1rem;
    font-weight: 400;
    line-height: 19px;
    letter-spacing: 0em;
    text-align: left;
    color: red;
  }

  .message_mob {
    display: block;
    margin: 0 auto;
    font-family: Rajdhani;
    font-size: 1rem;
    font-weight: 400;
    line-height: 19px;
    letter-spacing: 0em;
    text-align: left;
    color: green;
  }
}
