/* --- Variables de couleurs --- */
:root {
    --primary: #ffb700;         /* Jaune d'or CS */
    --primary-hover: #ffa200;
    --steam-blue: #2a475e;
    --bg-dark: #0b0b0e;         
    --card-bg: rgba(26, 26, 32, 0.85); /* Plus de transparence pour le verre */
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-logo: 'Orbitron', sans-serif;
    --error: #ff4b4b;
    --success: #00e676;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), 
                url('https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=2070&auto=format&fit=crop'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

/* --- Header --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 183, 0, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-logo);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(255, 183, 0, 0.5);
    letter-spacing: 2px;
}

/* --- Login Container & Form --- */
.login-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 40px; /* Padding top pour compenser le header fixe */
}

.login-form {
    background: var(--card-bg);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.8s ease-out;
}

.login-form h2 {
    font-family: var(--font-logo);
    font-size: 28px;
    text-align: center;
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.subtitle {
    color: var(--text-muted);
    text-align: center;
    font-size: 14px;
    margin-bottom: 30px;
}

/* --- Champs de saisie --- */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 183, 0, 0.2);
}

/* --- Checkbox & Lien oublié --- */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 25px;
}

.options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-muted);
}

.options input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--primary);
}

.options a {
    color: var(--primary);
    text-decoration: none;
    transition: 0.2s;
}

.options a:hover {
    text-decoration: underline;
}

/* --- Boutons --- */
button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.btn-submit {
    background: var(--primary);
    color: #000;
    margin-bottom: 15px;
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 183, 0, 0.3);
}

.btn-steam {
    background: var(--steam-blue);
    color: #fff;
    font-size: 14px;
}

.btn-steam:hover {
    background: #3a5d78;
    transform: translateY(-2px);
}

/* --- Séparateur --- */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 12px;
}

.separator::before, .separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.separator:not(:empty)::before { margin-right: 15px; }
.separator:not(:empty)::after { margin-left: 15px; }

/* --- Footer du formulaire --- */
.footer-text {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* --- Statuts PHP --- */
.status {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    text-align: center;
    border: 1px solid transparent;
}

.status.success {
    background: rgba(0, 230, 118, 0.1);
    color: var(--success);
    border-color: var(--success);
}

.status.error {
    background: rgba(255, 75, 75, 0.1);
    color: var(--error);
    border-color: var(--error);
}

/* --- Background Spécifique Accueil --- */
.home-page {
    /* Image de Counter-Strike 2 */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(11, 11, 14, 0.9)), 
                url('https://images.alphacoders.com/133/1331776.jpeg');
    background-size: cover;
    background-position: center;
    overflow-x: hidden;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    z-index: 10;
    animation: fadeIn 1.2s ease-out;
}

.status-badge {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(255, 183, 0, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-title {
    font-family: var(--font-logo);
    font-size: clamp(2rem, 8vw, 4.5rem);
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 183, 0, 0.3);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Barre de progression style CS --- */
.construction-container {
    width: 300px;
    margin: 0 auto;
}

.loader-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 60%; /* Progression */
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: pulseWidth 2s infinite ease-in-out;
}

.loading-text {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--primary);
    font-weight: 700;
}

/* --- Bouton Header --- */
.btn-link {
    text-decoration: none;
}

.btn-connect {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    font-size: 14px;
    width: auto; /* Annule le 100% du CSS précédent */
}

.btn-connect:hover {
    background: var(--primary);
    color: #000;
}

/* --- Animations --- */
@keyframes pulseWidth {
    0% { width: 30%; opacity: 0.5; }
    50% { width: 70%; opacity: 1; }
    100% { width: 30%; opacity: 0.5; }
}

/* --- Mobile --- */
@media (max-width: 480px) {
    .login-form {
        padding: 30px 20px;
    }
}