.background-photo2 {
  height: 150px;
  background-image: url('background2.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 10px 10px 0 0;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: radial-gradient(ellipse at 20% 50%, #0a0e2a 0%, #020510 50%, #000308 100%);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.profil {
  background: white;
  max-width: 500px;
  width: 90%;
  margin: 100px auto 60px;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(26, 74, 138, 0.5), 0 0 8px rgba(26, 74, 138, 0.3);
}

.profile-info {
  padding: 20px 40px 15px;
  text-align: center;
}

.profile-info h1 {
  margin-bottom: 25px;
}

.profile-info form {
  text-align: left;
  max-width: 100%;
  margin: 0 auto;
}

.profile-info label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  font-size: 15px;
}

.profile-info input[type="text"],
.profile-info input[type="password"] {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* ==============================
   MASQUER L'ICÔNE NATIVE DU NAVIGATEUR
   ============================== */
/* Masquer l'icône native du navigateur pour les champs password */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
}

/* ============================== */

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px;
}

.password-wrapper button {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
}

.profile-info button[type="submit"] {
  width: 100%;
  margin-top: 30px;
  padding: 14px;
  font-size: 16px;
  background-color: #1a4a8a;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.profile-info button[type="submit"]:hover {
  background-color: #0d2b5e;
}

.error {
  color: red;
  font-size: 0.9em;
  margin-top: 15px;
  text-align: center;
  display: none;
}

.success {
  color: green;
  font-size: 1em;
  margin-top: 15px;
  text-align: center;
  display: none;
}

.link-login {
  margin-top: 25px;
  margin-bottom: 12px;
  font-size: 0.9em;
  text-align: center;
}

.link-login p {
  margin: 0;
  padding: 0;
}

.link-login a {
  color: #1a4a8a;
  text-decoration: none;
}

.link-login a:hover {
  text-decoration: underline;
}