/* =========================================================
   LOGIN – IDENTIQUE AU REGISTER + ALIGN TITRES + GAUCHE CENTRÉ
========================================================= */

/* 1) Neutralise wrappers WP */
body:has(.funky-login-page),
body:has(.funky-login-page) #page,
body:has(.funky-login-page) .site,
body:has(.funky-login-page) .site-content,
body:has(.funky-login-page) .content-area,
body:has(.funky-login-page) .site-main,
body:has(.funky-login-page) article,
body:has(.funky-login-page) .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
body:has(.funky-login-page) .entry-content > * { margin: 0 !important; }

html, body { height: 100%; }

/* 2) Background full screen */
body:has(.funky-login-page) { overflow: hidden; }

body:has(.funky-login-page)::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(140, 20, 78, 0.40), rgba(140, 20, 78, 0.40)),
    url("../images/photo.jpeg"); /* <-- adapte si besoin */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.funky-login-page .background-image-wrapper { display: none !important; }

/* 3) Reset local */
.funky-login-page, .funky-login-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 4) Wrapper centré */
.funky-login-page{
  font-family: "Lato", sans-serif;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px; /* voir le bord haut */
}

/* =========================================================
    CONTAINER : hauteur fixe + panneaux pleine hauteur
========================================================= */
.login-container{
  position: relative;
  z-index: 2;

  display: flex;
  align-items: stretch;

  width: min(1100px, calc(100% - 40px));

  /* hauteur réelle => enfants 100% */
  height: min(640px, calc(100vh - 80px));

  background: #E6E4E4;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.40);
}

/* 50/50 */
.form-section{ flex: 1; }
.welcome-section{ flex: 1; }

/* colonnes pleine hauteur */
.form-section,
.welcome-section{ height: 100%; }

/* =========================================================
   GAUCHE – FORM 
========================================================= */
.form-section{
  background: #E6E4E4;

  /*  même top padding que la droite => titres alignés */
  padding: 86px 40px 45px;

  /* centre verticalement le contenu */
  display: flex;
  flex-direction: column;
  justify-content: center;

  /* si écran petit, scroll interne */
  overflow-y: auto;

  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
}

.form-title{
  font-family: "Fredoka One", cursive;
  font-size: 36px;
  color: #333;
  margin-bottom: 22px;
  text-align: center;
}

.login-error{
  color: #8C144E;
  text-align: center;
  margin-bottom: 18px;
  font-weight: 700;
  background: rgba(140, 20, 78, 0.10);
  padding: 10px;
  border-radius: 10px;
}

.form-group{ margin-bottom: 20px; }

.form-label{
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: #333;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-input{
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: #fff;
  font-family: "Lato", sans-serif;
}

.submit-button{
  width: 100%;
  background: linear-gradient(to right, #2c2c2c, #8C144E);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  transition: 0.3s;
}
.submit-button:hover{ transform: scale(1.02); }

/* =========================================================
   DROITE – WELCOME (mauve pleine hauteur)
========================================================= */
.welcome-section{
  background: linear-gradient(135deg, #8C144E 0%, #E75CB4 100%);
  padding: 60px 40px; /* ✅ référence pour aligner la gauche */

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  color: #fff;

  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
}

.welcome-title{
  font-family: "Fredoka One", cursive;
  font-size: 48px;
  margin-bottom: 18px;
}

.register-button{
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding: 14px 40px;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
  margin-bottom: 18px;
}
.register-button:hover{ background: #fff; color: #8C144E; }

.home-link{
  color: #00A3FF;
  text-decoration: none;
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 968px){
  body:has(.funky-login-page){ overflow: auto; }
  .funky-login-page{ padding: 20px; }

  .login-container{
    flex-direction: column-reverse;
    height: auto;
  }

  .form-section{
    padding: 30px 20px;
    overflow: visible;
    border-radius: 0;
    height: auto;
    display: block; 
  }

  .welcome-section{
    padding: 40px;
    border-radius: 0;
    height: auto;
  }
}
