/* Style principal pour PokeList - moderne et élégant */
:root {
    --primary: #e3350d;
    --bg-start: #141e30;
    --bg-end: #243b55;
    --card-bg: #fefefe;
    --text: #222;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1rem;
}

.wrapper {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
    padding: 2.5rem 3rem;
}

h1 {
    color: #fff;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

h2 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-weight: 500;
}

ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

li {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

li:hover {
    transform: translateX(4px);
}

label {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--primary);
    flex-shrink: 0;
    cursor: pointer;
}

input[type="checkbox"]:checked+span {
    text-decoration: line-through;
    opacity: 0.55;
}

span {
    flex: 1;
    font-size: 1rem;
    line-height: 1.4;
}

/* Ajout d'effets pour rendre le site plus vivant */
.wrapper {
    animation: fadeIn 1.2s cubic-bezier(.39, .575, .56, 1) both;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

/* Styles pour les formulaires d'authentification */
.auth-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 2rem;
    max-width: 400px;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form h2 {
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.auth-form label {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"] {
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    font-size: 0.95rem;
}

.auth-form button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.7rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-form button:hover {
    background-color: #0056b3;
}

.auth-link {
    text-align: center;
    font-size: 0.85rem;
    color: #007bff;
}

.auth-link a {
    color: #007bff;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Style pour les messages d'erreur */
.error-message {
    background-color: #ffebee;
    color: #d32f2f;
    padding: 0.8rem;
    border-radius: 6px;
    border-left: 4px solid #d32f2f;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease-in-out;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.greeting {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 500;
}

.logout-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(227, 53, 13, 0.12);
    transition: background 0.2s, transform 0.2s;
    position: relative;
    z-index: 2;
}

.logout-btn:hover,
.logout-btn:focus {
    background: #b72808;
    transform: translateY(-2px) scale(1.04);
}

.welcome-message {
    color: #fff;
    background: rgba(20, 30, 48, 0.7);
    border-radius: 12px;
    padding: 0.7rem 1.2rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(20, 30, 48, 0.07);
}