/* style.css — Thème violet CrazyBet */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #f1f1f1;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

h1, h2, h3 {
    color: #8a2be2;
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
}

a {
    color: #a45be2;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #c77dff;
}

/* Conteneurs généraux */
.container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
    width: 100%;
}

.auth-container {
    max-width: 400px;
    width: 100%;
    padding: 30px;
    background-color: #1e1e1e;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Bouton Retour */
.back-button {
    position: absolute;
    left: 20px;
    top: 20px;
    background-color: #8a2be2;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.back-button:hover {
    background-color: #a45be2;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* Formulaires */
form {
    width: 100%;
    background-color: transparent;
    padding: 0;
    margin: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

input, button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 25px;
}

input {
    background-color: #2a2a2a;
    color: #f1f1f1;
    border: 1px solid #333;
    padding: 12px 20px;
}

input::placeholder {
    color: #888;
}

input:focus {
    outline: none;
    border-color: #8a2be2;
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.3);
}

button {
    background-color: #8a2be2;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: #a45be2;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-register {
    width: 100%;
    padding: 12px;
    background-color: #8a2be2;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 15px;
    display: block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-register:hover {
    background-color: #a45be2;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* Messages */
.message {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #2d2d2d;
    border-left: 4px solid #8a2be2;
    color: #ccc;
    width: 100%;
    border-radius: 8px;
}

.error {
    color: #ff6b6b;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #2d2d2d;
    border-left: 4px solid #ff6b6b;
    width: 100%;
    border-radius: 8px;
}

.success {
    color: #76ff7a;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #2d2d2d;
    border-left: 4px solid #76ff7a;
    width: 100%;
    border-radius: 8px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #1e1e1e;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
}

th, td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    background-color: #8a2be2;
    color: white;
    font-weight: bold;
}

tr:hover {
    background-color: #2c2c2c;
}

tr:last-child td {
    border-bottom: none;
}

/* Style spécifique pour les pages d'authentification */
.auth-container > * {
    width: 100%;
    text-align: center;
}

.auth-container h2 {
    margin-bottom: 25px;
    display: block;
    width: 100%;
    color: #a45be2;
}

/* Cartes statistiques */
.stat-card {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #3a3a3a;
}

.stat-card h3 {
    color: #c77dff;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Animation des boutons */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

button:active, .btn-register:active {
    animation: pulse 0.3s ease;
}

/* Correction de centrage */
.auth-container form,
.auth-container .btn-register {
    max-width: 100%;
}

/* Header avec bouton retour */
.header-container {
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.header-container h1 {
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .auth-container {
        padding: 20px;
    }

    .back-button {
        left: 10px;
        top: 10px;
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    input, button {
        padding: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    .menu {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 5px;
    }

    .auth-container {
        padding: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1rem;
    }

    input, button {
        padding: 8px;
    }

    .stat-card {
        padding: 10px;
    }
}
