/* reset minimaliste */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  body {
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }
  
/* wrapper en deux panneaux, fond blanc */
  .main-wrapper {
    display: flex;
    max-width: 800px;
    width: 70%;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
    overflow: hidden;
  }
  
  .left-panel {
    flex: 0.7;                       
    display: flex;
    align-items: center;
    justify-content: flex-end;      
    padding: 0 0.5rem;            
    background: transparent;
  }
  
  .left-panel .logo {
    max-width: 280px; 
    width: auto;
    height: auto;
    margin: 0;
    margin-right: -20px;
  }  
  
  .right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
  }
  
  .login-container {
    width: 100%;
    max-width: 360px;
    padding: 2rem;
  }
   
  .input-group {
    margin-bottom: 1rem;
    text-align: left;
  }
  
  .input-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: #333333;
  }
  
  .input-group input {
    width: 100%;
    padding: 0.75rem;      
    font-size: 1rem;
    border: 1px solid #bbbbbb;
    border-radius: 4px;
    transition: border-color 0.2s;
  }
  
  .input-group input::placeholder {
    color: #999;
    opacity: 1; 
  }
  
  .input-group input:focus {
    outline: none;
    border-color: #0d3b66;
  }
  
  /* bouton */
  .btn-login {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
    background: #0d3b66;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
  }
  
  .btn-login:hover {
    opacity: 0.85;
  }
  
  .error-msg {
    color: red;
    margin-bottom: 1rem;
  }

  /* ===== Responsive téléphone ===== */
@media (max-width:640px){
  /* La carte passe en colonne et occupe 90 % de la largeur */
  .main-wrapper{
    flex-direction:column;
    width:90%;
  }

  /* Zone logo centrée et plus compacte */
  .left-panel{
    flex:none;                 /* stoppe le ratio 0.7 */
    justify-content:center;
    padding:1rem 0;
  }
  .left-panel .logo{
    max-width:180px;           /* rétrécit le logo */
    margin-right:0;            /* supprime le décalage négatif */
  }

  /* Zone formulaire prend toute la largeur */
  .right-panel{
    flex:none;
    width:100%;
  }
  .login-container{
    max-width:100%;
    padding:1.5rem;
  }
}

/* --------- Fanion Rotary centré en fond ---------- */
body::before{
  content:"";
  position:fixed;
  inset:0;                           /* top:0; right:0; bottom:0; left:0 */
  background:url("../images/Fanion Final blanc.jpg")
             center center           /* centré horizontalement + verticalement */
             /  auto 100%            /* hauteur = 100 vh, largeur auto => ratio respecté */
             no-repeat;
  pointer-events:none;               /* clics traversants */
  opacity:0.6;                       /* léger voile */
  z-index:-1;                        /* derrière tout le contenu */
}
