.register-link {
    width: 100%;
    display: flex;
    justify-content: center; /* centre horizontalement */
    margin-top: 10px;
    text-decoration:underline;
}

.register-link a {
    color: #00ff00;
    text-decoration: none;
    font-size: 0.9rem;
}

.register-link a:hover {
    text-decoration: underline;
}


/* ------------------------------ */
/* RESET                          */
/* ------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ------------------------------ */
/* GLOBAL                         */
/* ------------------------------ */


/* Effet scanlines */
.scanlines {
    pointer-events: none;
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0,255,0,0.05),
        rgba(0,255,0,0.05) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.25;
    z-index: 50;
}

/* Effet bruit */


/* ------------------------------ */
/* HEADER                         */
/* ------------------------------ */
.header {
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.logo-bracket {
    color: #008800;
}

.logo-highlight {
    color: #00ff00;
}

.status {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

/* ------------------------------ */
/* MAIN                           */
/* ------------------------------ */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 3rem 3rem;
    z-index: 100;
}

/* ------------------------------ */
/* TERMINAL BOX                   */
/* ------------------------------ */


.terminal-header {
    padding: 0.6rem 1rem;
    background: rgba(0, 40, 0, 0.6);
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #00ff00;
    font-size: 0.85rem;
}

.terminal-buttons {
    display: flex;
    gap: 0.4rem;
}

.terminal-buttons .btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red { background: #ff4444; }
.yellow { background: #ffee55; }
.green { background: #44ff44; }

.terminal-body {
    padding: 1.2rem 1.4rem;
}




.line {
    margin-bottom: 0.3rem;
}

.line.success {
    color: #00ff00;
}

.line.dim {
    color: #009900;
}

/* Prompt */
/* PROMPT */
.prompt {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.prompt input {
    background: transparent;
    border: none;
    outline: none;
    color: #00ff00;
    font-family: "Space Mono", monospace;
    font-size: 1rem;
    width: 100%;
}

.prompt .path {
    color: #00ff00;
}

.cursor {
    width: 10px;
    height: 18px;
    background: #00ff00;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

/* ------------------------------ */
/* LOGIN BOX                      */
/* ------------------------------ */

.footer {
    padding: 1rem 3rem 1.5rem;
    font-size: 0.8rem;
    color: #009900;
    text-align: center;
    letter-spacing: 0.15em;
}


.login-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}


.login-box input {
    background: #000;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 10px 15px;
    font-family: "Space Mono", monospace;
    font-size: 1.1rem;
    width: 220px;
    text-align: center;
}

.login-box button {
    background: transparent;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 10px 20px;
    font-family: "Space Mono", monospace;
    cursor: pointer;
    transition: 0.2s;
}

.login-box button:hover {
    background: #00ff00;
    color: #000;
}

.login-wrapper {
    flex: 0; /* au lieu de flex: 1 */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 40px 0;
}



/* ------------------------------ */
/* FOOTER                         */
/* ------------------------------ */
.footer {
    padding: 1rem 3rem 1.5rem;
    font-size: 0.8rem;
    color: #009900;
    text-align: center;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ------------------------------ */
/* RESPONSIVE                     */
/* ------------------------------ */
@media (max-width: 768px) {
    .header {
        padding: 1rem 1.5rem;
    }

    .main {
        padding: 1rem 1.5rem 2.5rem;
    }

    .terminal {
        font-size: 0.9rem;
    }
}
