/* =========================================================
   AUTH PAGES
   Connexion / Inscription / Mot de passe oublié
========================================================= */

.ro-auth{
  width: 100%;
  padding-bottom: var(--ro-space-48);
}

.ro-auth__container{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ro-space-24);
  width: 100%;
}

.ro-auth__header{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ro-space-12);
  text-align: center;
  width: 100%;
}

.ro-auth__title{
  margin: 0;
  padding: 0;
  font-size: var(--ro-size-54);
  font-weight: var(--ro-font-weight-bold);
  line-height: var(--ro-line-height-sm);
  color: var(--ro-dolphing-600);
}

.ro-auth__intro{
  max-width: 60ch;
  margin: 0;
  font-size: var(--ro-font-size-l);
  line-height: var(--ro-line-height-base);
  color: var(--ro-neutral-800);
  text-align: center;
}

.ro-auth__shell{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ro-space-24);
}

.ro-auth__form{
  width: 100%;
  max-width: 38rem;
  display: flex;
  flex-direction: column;
  gap: var(--ro-space-16);
}

.ro-auth__field{
  display: flex;
  flex-direction: column;
  gap: var(--ro-space-6);
}

.ro-auth__label{
  font-size: var(--ro-font-size-l);
  font-weight: var(--ro-font-weight-medium);
  line-height: var(--ro-line-height-base);
  color: var(--ro-neutral-900);
}

.ro-auth__hint{
  font-size: var(--ro-font-size-xs);
  line-height: var(--ro-line-height-base);
  color: var(--ro-neutral-700);
}

/* Inputs */

.ro-auth__input{
  width: 100%;
  min-height: var(--ro-size-44);
  padding: 0 var(--ro-space-12);
  border-radius: var(--ro-radius-6);
}

.ro-auth__input-wrap{
  position: relative;
  display: flex;
  align-items: center;
}

.ro-auth__input-wrap .ro-auth__input{
  padding-right: var(--ro-space-40);
}

.ro-auth .ro-auth__input{
  border: 1px solid var(--ro-dolphing-400);
  color: var(--ro-dolphing-700);
  background: var(--ro-bg-0);
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background-color .18s ease;
}

.ro-auth .ro-auth__input::placeholder{
  color: var(--ro-dolphing-500);
}

.ro-auth .ro-auth__input:hover:not(:focus){
  border-color: var(--ro-dolphing-600);
  background: var(--ro-dolphing-50);
  box-shadow: 0 0 0 1px var(--ro-dolphing-200);
}

.ro-auth .ro-auth__input:focus{
  border-color: var(--ro-dolphing-600);
  background: var(--ro-bg-0);
  box-shadow: var(--ro-focus-ring);
  outline: none;
}

.ro-auth__toggle{
  position: absolute;
  top: 50%;
  right: var(--ro-space-12);
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ro-size-24);
  height: var(--ro-size-24);
  color: var(--ro-neutral-800);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.ro-auth__toggle:hover{
  color: var(--ro-dolphing-700);
}

.ro-auth__requirements{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--ro-space-4);
  text-align: left;
  padding-left: 0;
}

.ro-auth__requirement{
  display: flex;
  align-items: center;
  gap: var(--ro-space-8);
  font-size: var(--ro-font-size-xs);
  line-height: var(--ro-line-height-base);
  color: var(--ro-neutral-700);
}

.ro-auth__requirement::before{
  content: "";
  width: var(--ro-size-8);
  height: var(--ro-size-8);
  border-radius: 999px;
  background: var(--ro-neutral-300);
  flex: 0 0 auto;
}

.ro-auth__requirement.is-valid{
  color: var(--ro-succ-700);
}

.ro-auth__requirement.is-valid::before{
  background: var(--ro-succ-600);
}

.ro-auth__checkbox{
  display: flex;
  align-items: flex-start;
  gap: var(--ro-space-8);
}

.ro-auth__checkbox input{
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.ro-auth__checkbox-label{
  font-size: var(--ro-font-size-s);
  line-height: var(--ro-line-height-base);
  color: var(--ro-neutral-800);
}

.ro-auth__actions{
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.ro-auth__links{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ro-space-8);
}

.ro-auth__link-inline{
  display: inline-flex;
  align-items: center;
  gap: var(--ro-space-6);
  font-size: var(--ro-font-size-s);
  line-height: var(--ro-line-height-base);
}

.ro-auth__legal{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ro-space-4);
  text-align: center;
}

.ro-auth__legal-text{
  font-size: var(--ro-font-size-xs);
  line-height: var(--ro-line-height-base);
  color: var(--ro-neutral-700);
}

.ro-auth__errors{
  width: 100%;
  max-width: 38rem;
  padding: var(--ro-space-12);
  border: 1px solid var(--ro-err-300);
  border-radius: var(--ro-radius-8);
  background: var(--ro-err-50);
  color: var(--ro-err-800);
}

.ro-auth__errors ul{
  margin: 0;
  padding-left: var(--ro-space-16);
  list-style: disc;
}

.ro-auth__errors li + li{
  margin-top: var(--ro-space-4);
}

.ro-u-visually-hidden{
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================
   LOGIN FORM WORDPRESS
========================= */
#loginform{
  width: 100%;
  max-width: 38rem;
  display: flex;
  flex-direction: column;
  gap: var(--ro-space-16);
}

#loginform p{
  display: flex;
  flex-direction: column;
  gap: var(--ro-space-6);
}

#loginform label{
  font-size: var(--ro-font-size-l);
  font-weight: var(--ro-font-weight-medium);
  line-height: var(--ro-line-height-base);
  color: var(--ro-neutral-900);
}

#loginform input[type="text"],
#loginform input[type="password"]{
  width: 100%;
  min-height: var(--ro-size-44);
  padding: 0 var(--ro-space-12);
  border: 1px solid var(--ro-dolphing-400);
  border-radius: var(--ro-radius-6);
  color: var(--ro-dolphing-700);
  background: var(--ro-bg-0);
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background-color .18s ease;
}

#loginform input[type="text"]::placeholder,
#loginform input[type="password"]::placeholder{
  color: var(--ro-dolphing-500);
  opacity: 1;
}

#loginform input[type="text"]:hover:not(:focus),
#loginform input[type="password"]:hover:not(:focus){
  border-color: var(--ro-dolphing-600);
  background: var(--ro-dolphing-50);
  box-shadow: 0 0 0 1px var(--ro-dolphing-200);
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus{
  border-color: var(--ro-dolphing-600);
  background: var(--ro-bg-0);
  box-shadow: var(--ro-focus-ring);
  outline: none;
}




/* Button submit */
#loginform .submit{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#loginform #wp-submit{
  min-height: var(--ro-btn-height-m);
  padding: var(--ro-btn-padding-d);
  border-radius: var(--ro-btn-radius);
}

.ro-auth .ro-btn--primary{
  color: var(--ro-dolphing-950);
  background: var(--ro-dolphing-200);
  transition:
    background-color .18s ease,
    color .18s ease,
    box-shadow .18s ease;
}

.ro-auth .ro-btn--primary:hover{
  color: var(--ro-dolphing-950);
  background: var(--ro-dolphing-300);
}

.ro-auth .ro-btn--primary:visited,
.ro-auth .ro-btn--primary:focus,
.ro-auth .ro-btn--primary:active{
  color: var(--ro-dolphing-950);
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px){
  .ro-auth__title{
    font-size: var(--ro-size-44);
  }

  .ro-auth__intro{
    font-size: var(--ro-font-size-md);
  }
}

@media (max-width: 680px){
  .ro-auth__container{
    gap: var(--ro-space-16);
  }

  .ro-auth__title{
    font-size: var(--ro-size-36);
  }

  .ro-auth__intro{
    font-size: var(--ro-font-size-m);
    max-width: 34ch;
  }

  .ro-auth__form,
  #loginform{
    max-width: 100%;
    padding: 0 var(--ro-space-16);
  }

  .ro-auth__label,
  #loginform label{
    font-size: var(--ro-font-size-m);
  }

  .ro-auth__actions{
    justify-content: center;
  }
}

/* =========================
   LOGIN : remember me
========================= */

#loginform .forgetmenot{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--ro-space-8);
}

#loginform .forgetmenot label{
  margin: 0;
  font-size: var(--ro-font-size-s);
  font-weight: var(--ro-font-weight-regular);
  line-height: var(--ro-line-height-base);
  color: var(--ro-neutral-800);
}

#loginform .forgetmenot input[type="checkbox"]{
  margin: 0;
  flex: 0 0 auto;
}

/* =========================
   ACCOUNT PAGE
========================= */

.ro-auth--account .ro-auth__shell{
  gap: var(--ro-space-32);
}

.ro-auth__section{
  width: 100%;
  max-width: 35rem;
  display: flex;
  flex-direction: column;
  gap: var(--ro-space-16);
}

.ro-auth__section-head{
  display: flex;
  flex-direction: column;
  gap: var(--ro-space-6);
}

.ro-auth__section-title{
  margin: 0;
  padding: 0;
  font-size: var(--ro-size-32);
  font-weight: var(--ro-font-weight-bold);
  line-height: var(--ro-line-height-sm);
  color: var(--ro-dolphing-600);
}

.ro-auth__section-text{
  margin: 0;
  font-size: var(--ro-font-size-s);
  line-height: var(--ro-line-height-base);
  color: var(--ro-neutral-800);
}

.ro-auth__notice{
  width: 100%;
  max-width: 35rem;
  padding: var(--ro-space-12);
  border-radius: var(--ro-radius-8);
  font-size: var(--ro-font-size-s);
  line-height: var(--ro-line-height-base);
}

.ro-auth__notice--success{
  background: var(--ro-succ-50);
  border: 1px solid var(--ro-succ-300);
  color: var(--ro-succ-800);
}

.ro-auth__notice--error{
  background: var(--ro-err-50);
  border: 1px solid var(--ro-err-300);
  color: var(--ro-err-800);
}

.ro-auth__notice--info{
  background: var(--ro-dolphing-50);
  border: 1px solid var(--ro-dolphing-200);
  color: var(--ro-dolphing-800);
}

.ro-auth__section--danger .ro-auth__section-title{
  color: var(--ro-err-700);
}

.ro-auth__section--danger .ro-auth__section-text{
  color: var(--ro-neutral-800);
}

.ro-auth--account .ro-auth__actions{
  justify-content: flex-start;
}

.ro-auth--account .ro-btn-error{
  width: fit-content;
}

@media (max-width: 680px){
  .ro-auth__section,
  .ro-auth__notice{
    max-width: 100%;
    padding-left: var(--ro-space-16);
    padding-right: var(--ro-space-16);
  }

  .ro-auth__section-title{
    font-size: var(--ro-size-26);
  }

  .ro-auth--account .ro-auth__actions{
    justify-content: center;
  }
}

/* Section danger (suppression du compte */
.ro-auth__section--danger{
  position: relative;
  margin-top: var(--ro-space-16);
  padding-top: var(--ro-space-24);
}

.ro-auth__section--danger::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ro-dolphing-200);
}