.bg-main {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    background-image: url('../img/inscription.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.color-side {
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background-color: var(--bg-base);
    z-index: 1;
}

.form-container {
    position: absolute;
    top: 50%;
    left: 65%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mb-4{
  color: var(--text-gris);
  text-decoration: none;

}

.card-login,
.card-register {
    width: 100%;
    border-radius: 20px;
    border: none;
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.card-register {
  max-width:520px;
}

.input-field {
    background-color: #fafafa;
    border-radius: 8px;
    padding: 10px;
}

.btn-login,
.btn-register {
    background-color: var(--bg-base);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
    color: var(--noir-blanc);
}

a.text-dark:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
  .bg-image {
    width: 100%;
    background-position: center;
  }

  .color-side {
    display: none;
  }

  .form-container {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../img/inscription.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .card-login,
  .card-register {
    width: 90%;
    max-width: 380px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  }

  .input-field {
    padding: 12px;
    font-size: 0.95rem;
  }

  .card-login h2, 
  .card-register h2 {
    font-size: 1.5rem;
  }

  .btn-login,
  .btn-register {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
  }
}
