.input-icon.aesthetic {
  background: #ffffff;
  border-radius: 24px;
  border: 2px solid #0047ab;
  padding: 0 16px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}
.input-icon.aesthetic:focus-within {
  border-color: #0055d4;
  box-shadow: 0 0 0 1px #0047ab20;
}
.input-icon.aesthetic .icon-user,
.input-icon.aesthetic .icon-lock,
.input-icon.aesthetic .icon-role {
  margin-right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
}
.input-icon.aesthetic input,
.input-icon.aesthetic select {
  border: none;
  background: transparent;
  padding: 14px 0;
  font-size: 1.1rem;
  width: 100%;
  outline: none;
  text-align: left;
  color: #2c3e50;
  cursor: pointer;
}
.input-icon.aesthetic select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%230047ab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 30px;
}
.input-icon.aesthetic select:focus {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 7L6 2L11 7' stroke='%230055d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.input-icon.aesthetic select option {
  background: #fff;
  color: #2c3e50;
  padding: 10px;
}
.input-icon.aesthetic input::placeholder {
  color: #516174;
  opacity: 0.9;
}

.options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 20px;
}

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
  position: relative;
  top: -4px;
}

.remember-me label {
  color: #516174;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 16px;
  padding-top: 1px;
}

.forgot-link.aesthetic {
  text-align: right;
}

.forgot-link.aesthetic a {
  font-size: 0.95rem;
}
.forgot-link.aesthetic a {
  color: #0047ab;
  text-decoration: underline;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.forgot-link.aesthetic a:hover {
  color: #0055d4;
}

.error-messages {
  min-height: 16px;
  margin: 4px 0;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #e74c3c;
  text-align: center;
  transition: all 0.3s ease;
}

.error-messages.show {
  background-color: #fff5f5;
  border: 1px solid #ffe3e3;
}

.error-messages.valid {
  color: #28a745;
  background-color: #f0fff4;
  border: 1px solid #dcffe4;
}

.btn-pill.aesthetic {
  background: linear-gradient(90deg, #0047ab 0%, #0055d4 100%);
  box-shadow: 0 4px 16px #0047ab33;
  border-radius: 32px;
  font-size: 1.12rem;
  font-weight: bold;
  padding: 14px;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background 0.2s, box-shadow 0.2s;
  border: none;
  color: #fff;
  cursor: pointer;
  width: 100%;
  display: block;
  text-align: center;
  text-decoration: none;
}
.btn-pill.aesthetic:hover {
  background: linear-gradient(90deg, #0055d4 0%, #0047ab 100%);
  box-shadow: 0 6px 24px #0047ab55;
}
.btn-pill.aesthetic:active {
  transform: translateY(1px);
}

.register.aesthetic {
  text-align: center;
  margin-top: 14px;
  font-size: 1rem;
  color: #333;
}
.register.aesthetic a {
  color: #0047ab;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s;
}
.register.aesthetic a:hover {
  color: #0055d4;
}
.input-icon {
  display: flex;
  align-items: center;
  background: #f6f8ff;
  border-radius: 6px;
  margin-bottom: 14px;
  padding: 0 8px;
}
.input-icon .icon-user,
.input-icon .icon-lock {
  display: flex;
  align-items: center;
  margin-right: 8px;
}
.input-icon input {
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 1rem;
  width: 100%;
  outline: none;
}

.forgot-link {
  text-align: right;
  margin-bottom: 10px;
}
.forgot-link a {
  color: #0047ab;
  text-decoration: underline;
  font-size: 0.97rem;
}
/* Style simple pour le formulaire de connexion */
body {
  font-family: Arial, sans-serif;
  background: #f0f4ff;
  margin: 0;
  padding: 0;
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px #0047ab22;
  padding: 32px 24px;
  max-width: 350px;
  width: 90%;
  margin: 20px;
}

.login-form h1 {
  text-align: center;
  color: #0047ab;
  margin-bottom: 8px;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.login-subtitle {
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 24px;
  margin-top: 0;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
}

.login-form label {
  font-size: 0.98rem;
  color: #333;
  display: block;
  margin-bottom: 12px;
}

.btn-pill {
  width: 100%;
  padding: 12px;
  background: #0047ab;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 1.05rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 8px;
}
.btn-pill:hover {
  background: #0055d4;
}

.register {
  text-align: center;
  margin-top: 10px;
  font-size: 0.98rem;
}
.register a {
  color: #0047ab;
  text-decoration: underline;
}

/* Responsive Design */
@media screen and (max-width: 480px) {
  .login-container {
    padding: 24px 16px;
    margin: 10px;
  }

  .login-form h1 {
    font-size: 1.75rem;
    margin-bottom: 20px;
  }

  .input-icon.aesthetic {
    padding: 0 12px;
    margin-bottom: 16px;
  }

  .input-icon.aesthetic input {
    font-size: 1rem;
    padding: 12px 0;
  }

  .btn-pill.aesthetic {
    font-size: 1rem;
    padding: 12px;
  }

  .forgot-link.aesthetic,
  .register.aesthetic {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 320px) {
  .login-container {
    padding: 20px 14px;
  }

  .login-form h1 {
    font-size: 1.5rem;
  }

  .input-icon.aesthetic {
    padding: 0 10px;
  }

  .input-icon.aesthetic input {
    font-size: 0.95rem;
  }

  .error-messages {
    font-size: 0.85rem;
  }
}

@media screen and (min-width: 1200px) {
  .login-container {
    max-width: 400px;
    padding: 40px 32px;
  }

  .login-form h1 {
    font-size: 2.2rem;
  }

  .input-icon.aesthetic {
    margin-bottom: 22px;
  }
}

/* Ajustements pour les appareils en mode paysage */
@media screen and (max-height: 600px) and (orientation: landscape) {
  .login-wrapper {
    padding: 20px 0;
  }

  .login-container {
    margin: 0 auto;
  }

  .login-form h1 {
    margin-bottom: 16px;
  }

  .input-icon.aesthetic {
    margin-bottom: 12px;
  }
}
