* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: background 0.5s ease;
}

.login-container {
    perspective: 1000px;
    width: 100%;
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
}

.tabs {
    display: flex;
    margin-bottom: 25px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: #ccc;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active {
    background: #4a90e2;
    color: white;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 24px;
}

p {
    font-weight: 300;
    font-size: 14px;
    margin-bottom: 25px;
    color: #ccc;
}

.input-group {
    text-align: left;
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #ddd;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 16px;
    outline: none;
    transition: box-shadow 0.3s ease;
}

.input-group select {
    cursor: pointer;
}

.input-group input:focus, .input-group select:focus {
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.5);
}

.submit-btn, .logout-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #4a90e2;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover { background: #357abd; }

.logout-btn { background: #ff4757; }
.logout-btn:hover { background: #ff6b81; }

.error-message {
    color: #ff4757;
    font-size: 14px;
    margin-bottom: 15px;
    display: none;
}

.success-message {
    display: none;
    padding: 15px;
    background: rgba(46, 213, 115, 0.2);
    border: 1px solid #2ed573;
    border-radius: 8px;
    color: #2ed573;
    font-size: 14px;
}

.dashboard {
    text-align: center;
    padding: 20px 0;
}

.dashboard h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-card h3 {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card p {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

/* Thèmes */
.theme-default { background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); }
.theme-gouv { background: linear-gradient(135deg, #2c3e50, #3498db); }
.theme-lspd { background: linear-gradient(135deg, #141e30, #243b55); }
