/*Apply soft gradient background across app layout*/
body {
  background: linear-gradient(135deg, #E9ECFF 0%, #F6E8FF 50%, #FFE5DA 100%) !important;
  background-attachment: fixed !important;
  background-size: cover !important;
}

.navbar {
  background-color: transparent;
}

.container-scroller, .content-wrapper{
  background-color: transparent !important;  
}


/* hauteur de la navbar fixe (padding-top déjà appliqué) */
:root {
  --nav-offset: 200px;        /* 60 px si tu l’as réduite */
}

/* desktop ≥ 992 px : on calcule la hauteur restante */
@media (min-width: 992px) {
  .container-fluid.d-flex {
    min-height: calc(100vh - var(--nav-offset) - 80px);  /* 80 px = “remontée” désirée */
    align-items: flex-start;         /* le bloc démarre plus haut */
    padding-top: 80px;               /* même valeur que la remontée */
  }
}

/* tablette landscape (≥ 768 px) mais < 992 px  : un peu moins de remontée */
@media (min-width: 768px) and (max-width: 991px) {
  .container-fluid.d-flex {
    min-height: calc(100vh - var(--nav-offset) - 40px);
    align-items: flex-start;
    padding-top: 40px;
  }
}



/*Sign In Form*/
.col-lg-4 {
  position: relative;
  padding: 0% !important;
  height: 830px;
  width: 500px;
  margin: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  margin-top: 70px;
  margin-bottom: 70px;
  background-color: #fff;
}

@media(max-width: 640px) {
  .col-lg-4 {
    width: 90%; /* Adjust width for small screens */
    height: auto; /* Adjust height for content */
    margin: 20px auto; /* Adjust margins for small screens */
    box-shadow: none; /* Remove box-shadow for small screens */
    padding: 20px; /* Add padding for small screens */
  }
}

/*Background Img*/
.back-img {
  position: relative;
  width: 100%;
  height: 250px;
  background: url('/images/signin_altirya.png')no-repeat center center;
  background-size: cover;
}

.layer {
  background-color: rgb(35 184 252 / 74%);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.active {
  padding-left: 25px;
  color: #fff;
  font-size: 36px;
  font-weight: bold;
}

.nonactive {
  color: rgba(255, 255, 255, 0.6);
}

.sign-in-text {
  top: 50%;
  position: relative;
  z-index: 1;
  text-align: center; /* Center text */
}

h2 {
  padding-left: 15px;
  font-size: 25px;
  text-transform: uppercase;
  display: inline-block;
  font-weight: 300;
}

/*form-section*/
.form-section {
  padding: 70px 90px;
  text-align: center;
}

@media(max-width: 640px) {
  .form-section {
    margin-top: 30px;
    padding: 20px; /* Adjust padding for small screens */
  }
}

.form-floating {
  font-size: 15px;

}

.form-control {
  margin-bottom: 20px;
}

.form-floating>label {
  line-height: 15px;
}

.keep-text {
  font-size: 15px;
  color: #BDBDBD;
}

.forgot-text {
  font-size: 14px;
  color: #BDBDBD;
  text-align: center;
}

/*sign-in-btn*/
.sign-in-btn {
  width: 100%;
  height: 75px;
  position: absolute;
  bottom: 0;
  border-radius: 0px;
  background-color: rgba(63, 78, 191, 1);
}

/* déclencheur d’animation pour Chrome autofill */
@keyframes autofillFix { from { opacity: 1; } to { opacity: 1; } }

input:-webkit-autofill {
  animation-name: autofillFix;
  animation-duration: 0s;
}

/* look désactivé initial */
button.force-disabled {
  pointer-events: none;
  opacity: 0.5;
}
 


@media(max-width: 640px) {
  .sign-in-btn {
    height: 50px; /* Adjust height for small screens */
  }
}

/* Styling for the OAuth buttons */
.btn-oauth {
  width: 200px;
  text-align: center;
  font-weight: bold;
  padding: 10px 15px;
  transition: all 0.3s ease; /* Smooth transition */
  border-radius: 5px; /* Rounded corners */
}

.btn-oauth-google {
  color: white;
  background-color: #db4437; /* Google Red */
  border: none;
}

.btn-oauth-microsoft {
  color: white;
  background-color: #0078d4; /* Microsoft Blue */
  border: none;
}

/* Hover effect for the OAuth buttons */
.btn-oauth:hover {
  transform: translateY(-3px); /* Slight lift on hover */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Soft shadow */
}

.btn-oauth-google:hover {
  background-color: #c23321; /* Slightly darker Google Red */
}

.btn-oauth-microsoft:hover {
  background-color: #005a9e; /* Slightly darker Microsoft Blue */
}

@media(max-width: 640px) {
.btn-oauth {
  font-size: 12px;
}

}


.hr-text {
  border: none; /* Supprime la bordure par défaut */
  border-top: 3px solid #ccc; /* Définit la couleur et l'épaisseur */
  text-align: center;
  height: 0;
  line-height: 1.5em;
  margin: 20px 0;
  color: #888; /* Couleur du texte "OR" */
  position: relative;
}

.hr-text::before {
  content: "OR";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #f8f9fa; /* Couleur de fond pour masquer le trait derrière le texte */
  padding: 0 10px;
  font-weight: bold;
  color: #555; /* Couleur du texte */
}