body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-section {
    background: var(--papier);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 400px;
    border: 1px solid #ccc;
}

h2 {
    text-align: center;
    color: var(--marron-foncé);
    margin-top: 0;
}

form {
    width: 100%;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input[type="email"], input[type="password"], input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.login-section button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: var(--or);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button[type="submit"]:hover {
    background-color: var(--or-foncé);
}

p {
    text-align: center;
    margin-bottom: 0;
}

p a {
    color: #007BFF;
    text-decoration: none;
}

p a:hover {
    text-decoration: underline;
}

.password-wrapper {
  position: relative;
  display: inline-block;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  padding-right: 2.5em; /* espace pour l’icône */
  width: 100%;
  box-sizing: border-box;
}

.toggle-password {
  position: absolute;
  right: 0.5em;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  font-size: 1.2em;
  color: #666;
}

.toggle-password:hover {
  color: #000;
}

.message {
    max-width: 400px;
    margin: 20px auto;
    padding: 15px;
    border-radius: 8px;
    font-family: sans-serif;
    border: 1px solid transparent;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.message.success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.message.warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.message.error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.code-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

.code-input {
    width: 50px;
    height: 60px;
    font-size: 2rem;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.code-input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 5px rgba(0, 102, 204, 0.5);
}

