/* ----------------------
   Reset
---------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ----------------------
   Fond général
---------------------- */
body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /*background: linear-gradient(to top, #0f0f0f, #1a1a1a);*/
    color: #eee;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #232741;
}

/* ----------------------
   Conteneur 2 panneaux
---------------------- */
.container {
    display: flex;
    width: 900px;
    height: 520px;
    background: transparent;
}

/* ----------------------
   Panel gauche
---------------------- */
.left-panel {
    flex: 1;
    background: #151515;
    border-radius: 20px 0 0 20px;
    padding: 50px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.left-logo {
    width: 130px;
    margin: 0 auto 30px auto;
}

.left-panel h2 {
    font-size: 25px;
    color: #fff;
    margin-bottom: 10px;
}

.left-panel p {
    color: #bfbfbf;
    font-size: 14px;
}

/* ----------------------
   Panel droit (formulaire)
---------------------- */
.login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #1e1e1e;
    padding: 50px 40px;
    border-radius: 0 20px 20px 0;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    text-align: center;
}

.login-container h1 {
    margin-bottom: 30px;
    font-size: 24px;
    color: #fff;
}

.login-container > p:first-of-type {
    margin-top: 30px;
}

.login-container p {
    margin-top: 10px;
    color: #bfbfbf;
    font-size: 14px;
}

.login-container a, .login-container a:visited, .login-container a:hover, .login-container a:active {
    text-decoration: none;
    color: #4287f5;
}

/* ----------------------
   Formulaire
---------------------- */
form {
    display: flex;
    flex-direction: column;
}

input[type="text"], input[type="password"] {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: none;
    outline: none;
    background: #2a2a2a;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="password"]:focus {
    background: #333;
    box-shadow: 0 0 5px #00bfff;
}

input[type="submit"] {
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #232741;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="submit"]:hover {
    background: #191d37;
}

/* ----------------------
   Messages flash
---------------------- */
.flash {
    margin-bottom: 20px;
    padding: 12px;
    background: #ff4c4c;
    border-radius: 10px;
    font-size: 14px;
    color: #fff;
}

/* ---------------------------------------------------
   RESPONSIVE DESIGN
--------------------------------------------------- */

/* --- Écrans moyens (tablettes) --- */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        width: 100%;
        max-width: 480px;
        height: auto;
        margin: auto;
        gap: 25px;
    }

    .left-panel,
    .login-container {
        width: 100%;
        height: auto;
        padding: 35px 25px;
        border-radius: 20px;
    }
}

/* --- Petits écrans (smartphones) --- */
@media (max-width: 600px) {
    .container {
        max-width: 380px;
        gap: 20px;
    }

    .left-panel h2 {
        font-size: 18px;
    }

    .left-panel p {
        font-size: 13px;
    }

    .left-logo {
        width: 90px;
        margin-bottom: 20px;
    }

    .login-container h1 {
        font-size: 20px;
        margin-bottom: 20px;
    }
}
