/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(208, 92%, 54%);
  --first-color-alt: hsl(208, 88%, 50%);
  --title-color: hsl(220, 68%, 4%);
  --white-color: hsl(0, 0%, 100%);
  --text-color: hsl(220, 15%, 66%);
  --body-color: hsl(0, 0%, 100%);
  --container-color: hsl(220, 50%, 97%);


  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", system-ui;
  --big-font-size: 1.5rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --tiny-font-size: .688rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --big-font-size: 3rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --tiny-font-size: .75rem;
  }
}

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

body,
input,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);

}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}
#login__switch1{
 color: black;
}
#login__switch{
  color: black;
}
#login__switch_id {
  margin-top: -4rem !important;
}

input,
button {
  border: none;
  outline: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

/*=============== LOGIN  ===============*/
.login {
  position: relative;
  height: 100vh;
  align-items: center;
  overflow: hidden;
}

.login__blob {
  display: none;
}

.login__title {
  font-size: var(--big-font-size);
  color: var(--title-color);
  text-align: center;
  margin-bottom: 2rem;
}

.login__box {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--container-color);
  border-radius: 1rem;
}

.login__input {
  background: none;
  box-sizing: border-box;
  width: 100%;
  padding: 1.25rem 3rem 0.75rem 1.2rem;
  font-weight: var(--font-semi-bold);
  border: 3px solid #00000061;
  border-radius: 1rem;
  
  z-index: 1;
  transition: border-color .4s;
  height: 5rem;   
}

#addressCreate{
  width: 100%;
}

#address_label{
  height: 6rem;  
  padding: 2.4rem 2.5rem 1.5rem 1.5rem;
}

#email_login{
  height: 4rem !important;
}

#password_login{
  height: 4rem !important;
}


.login__input:autofill {
  transition: background-color 6000s, color 6000s;

}

.login__label {
  position: absolute;
  left: 1.25rem;
  font-weight: var(--font-semi-bold);
  transition: transform .4s, font-size .4s, color .4s;
  
}

.login__icon {
  position: absolute;
  right: 1.2rem;
  bottom: 0.85rem; /* ✅ aligné avec l’écriture et pas centré verticalement */
  font-size: 1.1rem;
  transition: color .4s;
  pointer-events: auto;
}

.login__password {
  cursor: pointer;
  z-index: 10;
}

.login__forgot {
  display: block;
  width: max-content;
  margin: 1rem 0 0 auto;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--text-color);
  transition: color .4s;
}

.login__forgot:hover {
  color: var(--first-color);
}

.login__button {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  background-color: #0037ff;
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  padding-block: 1.3rem;
  border-radius: 4rem;
  margin-block: 2rem;
  cursor: pointer;
  transition: background-color .4s, box-shadow .4s;
}

#create_account{
  width: 100%;
  margin-left: auto;
  margin-right: 0;
}

.login__button:hover {
  background-color: var(--first-color-alt);
  box-shadow: 0 8px 24px hsla(208, 92%, 32%, .3);
}

.login__social {
  margin-bottom: 5rem;
}

.login__social-title {
  text-align: center;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-bottom: 1rem;
}

.login__social-img {
  width: 1rem;
}

.login__social-links {
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
}

.login__social-link {
  width: 32px;
  height: 32px;
  background-color: var(--body-color);
  box-shadow: 0 4px 8px hsla(0, 0%, 0%, .1);
  border-radius: .5rem;
  display: grid;
  place-items: center;
  transition: transform .4s;
}

.login__social-link:hover {
  transform: translateY(-.25rem);
}

.login__switch {
  text-align: center;
  font-size: var(--small-font-size);
  margin-top: -1.5rem;
  font-size: 1.2rem;
}


#loginButtonAccess {
  font-size: 1.2rem;
  
}


.login__switch button {
  background: none;
  color: var(--first-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  cursor: pointer;
  transition: color .4s;
  size-adjust:0.60 ;
}

.login__switch button:hover {
  color: var(--first-color-alt);
}

.login__access, 
.login__register {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  transition: transform .4s, opacity .4s .1s;
  
}

.login__register {
  transform: translateX(15rem);
  opacity: 0;
  pointer-events: none;
}

/* Input focus move up label */
.login__input:focus ~ .login__label {
  transform: translateY(-12px);
  font-size: var(--tiny-font-size);
}

.login__input:focus {
  padding-block: 2rem 1rem;
}

/* Input focus sticky top label */
.login__input:not(:placeholder-shown).login__input:not(:focus) ~ .login__label {
  transform: translateY(-12px);
  font-size: var(--tiny-font-size);
}

.login__input:not(:placeholder-shown).login__input:not(:focus) {
  padding-block: 2rem 1rem;
}

/* Input focus color */
.login__input:focus {
  border-color: var(--first-color);
}

.login__input:focus ~ .login__label,
.login__input:focus ~ .login__icon {
  color: var(--first-color);
}

/* Show hide login & create account */
.active .login__access {
  transform: translateX(15rem);
  opacity: 0;
  pointer-events: none;
}

.active .login__register {
  transform: translateX(0) translateY(0rem) scale(0.8);
  opacity: 1;
  pointer-events: initial;
}

/*=============== BREAKPOINTS ===============*/
/* registration responsivity */
/* For small devices */
@media screen and (max-width: 768px) {
  #login__content,#login_button{
    margin-left: 0;
    margin-right: auto;
    width: 90%; /* adapte la largeur selon tes besoins */
  }
  #login_forgout{
    margin-right: 3rem;
  }
  #login__switch_id {
    margin-left: -1rem !important;
    text-align: left !important;
  }
  #login__social {
     /* décale à droite */
    /* ou */
    margin-right: 3rem; /* décale à gauche */
  }
  .login__title{
    margin-right: 3rem;
  }

  #register{
    height: 46rem;
  }
  #register__box{
    width: 100% !important;
    margin-left: -1rem;
  }

  #names,#surnames,#companyCreate 
  ,#phoneCreate,#emailCreate,#passwordCreate
  ,#password_confirmation,#addressCreate{
    height: 2rem;
  }
  #create_account{
    width: 100% !important;
    margin-left: -1rem;
  }
  #register__switch{
    margin-left: -1rem !important;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }
  

  .login__area {
    width: 480px;
    margin: initial;
  }
  .login__access, 
  .login__register {
    width: 600px;
    transform: scale(0.9);
  }
  .login__title {
    text-align: initial;
    margin-bottom: 2rem;
  }
  .login__button {
    margin-bottom: 3rem;
  }
  .login__group {
    grid-template-columns: repeat(2, 1fr);
  }
  .login__blob {
    display: block;
    height: 100vh;
    position: absolute;
    top: 0;
    right: 0;
  }
  .login__img {
    width: 900px;
    transform: translateX(-15rem);
    height: auto;
    opacity: 85%;
  }

  /*=========== ALERT CUSTOM STYLE ===========*/
  .alert {
    position: relative; /* nécessaire pour positionner btn-close */
    border-radius: 0.75rem;
    font-weight: 500;
    padding: 1rem 3rem 1rem 1.5rem; /* padding-right ajusté */
    font-size: 1rem;
    backdrop-filter: blur(4px);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
  
  .alert ul {
    margin: 0;
    padding-left: 1.2rem;
  }
  
  .alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    border-left: 4px solid #198754;
  }
  
  .alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 4px solid #dc3545;
    width: 78%;
    max-width: 750px;
  }
  
  .alert-dismissible .btn-close {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    font-size: 1rem;
    padding: 0.25rem;
    line-height: 1;
  }
  #back_login{
    margin-top: -2rem !important;
}
/*=========== END ALERT CUSTOM STYLE ===========*/
/*=========== FORGOUT PASSWORD STYLE  ===========*/


#forgout_container{
  position: static !important;
}

}

/* Élargir uniquement le formulaire register */
#register .login__area {
  width: 700px !important;  /* ajuste comme tu veux */
  max-width: 100%;
  margin-inline: auto;
}

