
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #2c2f33;
    color: #ffffff;
}
header {
    background-color: #4b0082;
    color: white;
    padding: 1em;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    justify-content: center;
}
.tile {
    position: relative;
    background-color: #6a0dad;
    border: 1px solid #800080;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 15px;
    width: calc(33% - 20px);
    min-width: 220px;
    text-align: center;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}
.tile a {
    text-decoration: none;
    color: #fdfd96;
    font-weight: bold;
}
.controls {
    margin: 20px;
    padding: 15px;
    background-color: #3c3f44;
    border: 1px solid #444;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.controls button, .controls input {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}
.controls button {
    background-color: #800080;
    color: white;
    font-weight: bold;
    transition: background-color 0.3s;
}
.controls button:hover {
    background-color: #6a0dad;
}
.controls input[type="text"] {
    background-color: #2c2f33;
    color: white;
    border: 1px solid #444;
}
.controls input[type="text"]:focus {
    outline: none;
    border-color: #800080;
    box-shadow: 0 0 5px rgba(128, 0, 128, 0.5);
}
.remove-button {
    position: absolute;
    top: 10px;
    right: 10px;
    display: none;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
}
.remove-button:hover {
    background-color: #ff1a1a;
    transform: scale(1.1);
}
.tile.removable .remove-button {
    display: block;
}
.login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh; /* Assure que l'écran entier est utilisé pour centrer */
    background-color: #4b0082;
    margin: 0;
}

.login form {
    background-color: #3c3f44;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 90%; /* Réduit légèrement la largeur pour les petits écrans */
    max-width: 400px; /* Limite maximale de largeur pour un bon rendu */
}

.login input {
    margin: 10px 0;
    padding: 10px;
    border: none;
    border-radius: 8px;
    width: calc(100% - 20px); /* Réduit légèrement pour éviter que les bords touchent */
    box-sizing: border-box; /* Inclut le padding et la bordure dans la largeur totale */
    background-color: #2c2f33;
    color: white;
}

.login input:focus {
    outline: none;
    border: 1px solid #800080;
    box-shadow: 0 0 5px rgba(128, 0, 128, 0.5);
}

.login button {
    background-color: #800080;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
}

.login button:hover {
    background-color: #6a0dad;
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay-content {
    background-color: #4b0082;
    padding: 30px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.overlay-content h2 {
    margin-top: 0;
}

.overlay-content label {
    display: block;
    margin-top: 15px;
}

.overlay-content input[type="email"],
.overlay-content input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    box-sizing: border-box;
}

.overlay-content input[type="submit"] {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    border: none;
    color: rgb(0, 0, 0);
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}

.note {
    font-size: 12px;
    color: #555;
    margin-top: 10px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #000000;
}

.close-btn:hover {
    color: #000;
}
.password-checklist {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    font-size: 14px;
}

.password-checklist li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 5px;
}

.password-checklist li::before {
    content: '❌';
    position: absolute;
    left: 0;
    color: red;
}

.password-checklist li.valid {
    color: green;
}

.password-checklist li.valid::before {
    content: '✅';
    color: green;
}

input:invalid {
    border: 2px solid red;
}

input.valid {
    border: 2px solid green;
}
