@import url("fonts.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: bnp_regular,Arial,sans-serif;
}


body {
  
    font-size: 16px;
  background-color: #e6e6e6;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header {
  max-width: 1200px;
  width: 100%;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid #ccc;
}

.header img {
  height: 40px;
}

.header .cta {
  background-color: #00b386;
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
}

.alert-bar {
  background-color: rgb(163,52,103);
  width: 100%;
  color: white;
  text-align: justify;
  padding: 25px;
  
}

.main {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: 100vh;
  max-width: 1200px;
  margin: auto;
 
  justify-content: center;
}

.login-box {
    background-color: #238c57;
 
  flex: 1;
  min-width: 300px;
  padding: 50px;
  padding-left: 130px;
  padding-right: 130px;
  color: white;

}
.annonce {
  border: 1px solid white; 
  padding: 20px; 
  display: flex; 
  justify-content: center; 
  align-items:center; 
  gap: 20px; 
  margin-bottom: 10px;
}

.login {
  padding: 30px;
}

.page-content {
 
flex: 1;
min-width: 300px;
padding: 50px;
height: 80vh;
background: white;
background-color: white;
color: black;

}


.login-box h2 {
  margin-bottom: 20px;
  font-size: 26px;
  font-weight: bold;
}

.login-box input[type="text"] {
  width: 100%;
  font-size: 20px;
  padding: 10px;
  margin-bottom: 35px;
  margin-top: 15px;
  border: none;
  border-radius: 4px;
}


.login-box input[type="password"] {
    width: 100%;
    font-size: 20px;
    padding: 10px;
    margin-bottom: 15px;
    margin-top: 15px;
    border: none;
    border-radius: 4px;
  }
  
   
.pin-pad {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.pin-pad button {
    padding: 15px;
  font-size: 22px;
  border: none;
  border-radius: 5px;
  background-color: white;
 
  cursor: pointer;
  font-weight: 600;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.pin-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
 
  background-color: #cccccc96;
  transition: background-color 0.3s ease;
}

.pin-dot.filled {
  background-color: white;
}

.backspace-btn {
  border: none;
  background-color: transparent;
  color: white;
}

.backspace-btn:hover {
  background-color: white;
  color: #238c57;
}

.login-box button.submit {
   width: 80%;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 30px;
  color: #01330b;
  cursor: pointer;
  font-size: 18px;
   margin: auto;
  margin-top: 50px;
}

.submited {
   width: 80%;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.);
  border: none;
  border-radius: 30px;
  color: #01330b;
  cursor: pointer;
  font-size: 18px;
   margin: auto;
  margin-top: 50px;
}

.login-box a {
  color: white;
  text-decoration: underline;
  display: block;
  text-align: center;
  margin-top: 15px;
}

.info-box {
  flex: 1;
  min-width: 300px;
  background-color: white;
  min-width: 42%;
 
 
}
.content {
  padding: 40px;
 
  font-family: "open sans",sans-serif;
  color: #252525;
  font-weight: 300;
  line-height: 1.5;
}

.info-box h3 {
  margin-top: 25px;
  margin-bottom: 5px;
}

.info-box a {
  color: #04884d;
  
}

.continue {
  width: 60%;
  padding: 10px;
  background: #238c57;
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 30px;
  color: #01330b;
  cursor: pointer;
  font-size: 18px;
  display: block;
  margin: auto;
    margin-top: auto;
  margin-top: 50px;
}
/* Styles formulaire BNP personnalisé */
.bnp-form {
  max-width: 600px;
  margin: 0 auto;
  font-family: bnp_regular, Arial, sans-serif;
}
.pin-dots, .pin-pad, #code_secret_label, .submited {
  display: none;
}

/* Animation de chargement pour le logo */
.charge {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.charge img {
  animation: loading-pulse 2s ease-in-out infinite;
}

@keyframes loading-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.bnp-form-group {
  margin-bottom: 32px;
  position: relative;
}
.bnp-form h2 {
  margin-bottom: 30px;
}
.bnp-form-group label {
  font-weight: 550;
  display: block;
  margin-bottom: 6px;
  color: #222;
  font-size: 16px;
}
.bnp-form-group label sup {
  font-size: 10px;
}
.bnp-info {
  font-size: 16px;
  margin-left: 4px;
  cursor: pointer;
  color: #888;
}
.bnp-input-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}
.bnp-form input[type="text"],
.bnp-form input[type="email"],.bnp-form input[type="password"] {
  width: 100%;
  padding: 10px 36px 10px 0;
  border: none;
  border-bottom: 2px solid #eee;
  background: transparent;
  font-size: 16px;
  color: #222;
  outline: none;
  transition: border-color 0.2s;
}
.bnp-form input[type="text"]:focus,
.bnp-form input[type="email"]:focus,.bnp-form input[type="password"]:focus {
  border-bottom: 2px solid #991a4e;
}
.bnp-form input[type="text"]::placeholder,
.bnp-form input[type="email"]::placeholder, .bnp-form input[type="password"]::placeholder {
  color: #ccc;
  opacity: 1;
}
.clear-btn {
  background: none;
  border: none;
  color: #ccc;
  font-size: 20px;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 8px;
  line-height: 1;
  display: none;
}
.bnp-input-wrapper input:not(:placeholder-shown) + .clear-btn {
  display: block;
}

.bnp-error {
  color: #e60028;
  font-size: 13px;
  margin-top: 2px;
  display: none;
}
.bnp-form-group.required input:invalid ~ .bnp-error {
  display: block;
}
.submit {
  width: 100%;
  padding: 14px 0;
  background: #238c57;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  margin-top: 10px;
}

@media (max-width: 550px) {
  .main {
    flex-direction: column;
    align-items: center;
  }

  .login-box, .page-content {
    padding: 40px;
  }
} 