.login {
    background: #343a40;
    padding: 0.5rem;
    text-align: center;
}

.login details {
    display: inline-block;
}

.login summary {
    cursor: pointer;
    color: #fff;
    list-style: none;
    display: inline-block;
}

.login summary::-webkit-details-marker {
    display: none;
}

.login form {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.login input {
    padding: 0.4rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login button {
    background: #495057;
    color: #fff;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
}

.login button:hover {
    background: #1a3a1f;
}

/* états */

.login-ok {
    color: #28a745;
    font-weight: bold;
    margin: 0;
}

.logout-link {
    display: inline-block;
    margin-top: 0.3rem;
    color: #dc3545;
    font-size: 0.85rem;
    text-decoration: none;
}

.logout-link:hover {
    text-decoration: underline;
}

.login-reset {
    margin-top: 0.4rem;
    font-size: 0.8rem;
}

.login-reset a {
    color: #adb5bd;
    text-decoration: none;
}

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

/* Toggle password visibility */
.input-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.input-wrapper input {
    padding-right: 30px;
}

.password-toggle {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 1rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.password-toggle:hover {
    opacity: 1;
}

.password-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}