@charset "UTF-8";
body { 
    display: flex; 
    justify-content: center; 
    align-items: center;
    min-height: 100vh;
    background: #eaf6ff; 
    font-family: 'Open Sans', Arial, sans-serif;
}
h1, h2, h3 {
    font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
    text-align: center ;
}
.btn-retour {
  display: inline-block;
  margin: 18px 0 12px 18px;
  padding: 8px 18px;
  background: #1abc9c;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-retour:hover {
  background: #159c85;
}
.register-container {
    background: #fff;
    padding: 48px 38px;
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(39,71,97,0.18);
    width: 100%;
    max-width: 480px;
    min-width: 320px;
    min-height: 480px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.7s cubic-bezier(.4,2,.6,1) 0.1s forwards;
}
.register-container h2 {
    margin-bottom: 28px;
    color: #274761;
    font-size: 2.3rem;
    font-weight: 700;
}
.register-container input {
    width: 96%;
    padding: 16px;
    margin-bottom: 22px;
    border: 1.5px solid #b0c4d6;
    border-radius: 10px;
    font-size: 1.08rem;
    outline: none;
    transition: border 0.2s;
}
.register-container input:focus, .register-container input:active {
  border: 2px solid #1abc9c;
  box-shadow: 0 0 0 3px #1abc9c33;
  background: #f8fcfa;
  transition: box-shadow 0.2s, border 0.2s, background 0.2s;
}
.register-container button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #2980b9 60%, #274761 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.08rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s;
}
.register-container button:hover {
    background: linear-gradient(90deg, #274761 60%, #2980b9 100%);
}
.register-container .login-link {
    display: block;
    margin-top: 14px;
    font-size: 0.98rem;
}
.register-container .login-link a {
    color: #2980b9;
    text-decoration: underline;
}
.password-field {
    position: relative;
    display: flex;
    align-items: center;
    width: 96%;
    margin: 0 auto 22px auto;
}
.password-field input {
    width: 100%;
    margin-bottom: 0;
    padding-right: 32px;
}
.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 100%;
}
.toggle-password svg {
    width: 18px;
    height: 18px;
    stroke: #555;
}
.logo-register {
    margin-bottom: 4px;
    display: flex;
    justify-content: center;
}
.logo-register img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(39,71,97,0.10);
    background: #f4f7fa;
    object-fit: contain;
}
.register-container form.shake {
  animation: shake 0.35s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-8px); }
  40%, 60% { transform: translateX(8px); }
  100% { transform: none; }
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}
.register-error {
  opacity: 0;
  transition: opacity 0.4s;
}
/* === LOGO RESPONSIVE === */
.logo-register-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 18px auto;
}

@media (max-width: 700px) {
  .register-container {
    width: 98vw;
    min-width: unset;
    padding: 18px 2vw 24px 2vw;
    border-radius: 16px;
  }
  .logo-register-img {
    width: 90px;
    height: 90px;
  }
  h2 {
    font-size: 1.3rem;
  }
  form input,
  form button {
    font-size: 1rem;
    padding: 10px;
  }
  .login-link {
    font-size: 0.98rem;
  }
}

@media (max-width: 450px) {
  .register-container {
    padding: 10px 1vw 16px 1vw;
  }
  .logo-register-img {
    width: 60px;
    height: 60px;
  }
  h2 {
    font-size: 1.1rem;
  }
}
@media (max-width: 350px) {
  .register-container {
    padding: 4px 0 8px 0;
    min-width: 0;
  }
  .logo-register-img {
    width: 40px;
    height: 40px;
  }
  h2 {
    font-size: 1rem;
  }
}