html,
body {
  height: 100%;
}

body {
  display: flex;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  background: #F2F4F7;
}
.form-signin {
  max-width: 380px;
  padding: 15px;
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}
.imglogin{
  max-width: 100%;
  height: auto;
}

.reverse-main-bg-color {
  background-color: #F7E332;
  color: #222222;
}

/* Optional fade animation */
#rapide-banner {
  width: 800px;
  height: 450px;
  object-fit: fill;
  object-position: center;
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  transition: opacity 0.5s ease-in-out;
  display: block;
}
#rapide-banner.fade-out {
  opacity: 0;
}

.login-container {
  width: 500px;
  align-items: center;
  border-radius: 10px;
  padding: 20px;
  margin: 0 -15% 30%;
  background-color: white;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  margin-top: 5%;
  border-style: outset;
}

.btnLogin {
    --bs-btn-bg: #222222;
    --bs-btn-color: #F7E332;
    --bs-btn-border-color: #222222;
    --bs-btn-hover-bg: #424242;
    --bs-btn-hover-border-color: #424242;
    --bs-btn-hover-color: #F7E332;
    --bs-btn-active-bg: #424242;
    --bs-btn-active-border-color: #424242;
    --bs-btn-active-color: var(--bs-btn-hover-color);
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  text-align: center;
}

@media (min-width: 768px) {
  .gradient-form {
    height: 100vh !important;
  }
}
@media (min-width: 769px) {
  .gradient-custom-2 {
    border-top-right-radius: 0.3rem;
    border-bottom-right-radius: 0.3rem;
  }
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}

@media only screen and (min-width: 325px) and (max-width: 599px) {
  body {
    background: #434EA0;
  }

  img.crimsbg {
    display: none;
  }

  img.imglogin {
    display: none;
  }

  img.logoicon {
    display: block !important;
    width: 100%;
    margin-top: -5%;
  }

  .login-container {
    max-width: 130%;
    width: 300px;
    align-items: center;
    border-radius: 10px;
    padding: 20px;
    margin: 0 7%;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    border-style: outset;
  }

  .form-signin {
    z-index: 999;
  }

  html, body {
    margin: 0;
    height: 100%;
    overflow: hidden
  }
}