body {
    background: 
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../img/minecraft-grass.jpg");
    background-size: cover;
    color: #ffffff;
    font-family: 'Press Start 2P', monospace;
    text-align: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}
.container {
    background-color: rgba(0, 0, 0, 0.85);
    padding: 40px 30px 30px 30px;
    border: 5px solid #00ff00;
    /* border-image: url(../img/blocks/grass_block.jpg) 50 round; */
    /* border: solid 40px transparent; */
    border-radius: 12px;
    max-width: 400px;
    margin: 80px auto 0 auto;
    box-shadow: 0 0 24px #00ff00;
}
h2 {
    color: #00ff00;
    font-size: 28px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 0 #000;
}
label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    letter-spacing: 1px;
    text-align: left;
    color: #baffba;
}
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 12px 38px 12px 12px;
    border: 2px solid #00ff00;
    border-radius: 6px;
    /* background-image: url("../img/blocks/stone.png"); */
    background-color: #1e221c;
    font-family: 'Press Start 2P', monospace;
    font-size: 13px;
    box-sizing: border-box;
    outline: none;
    transition: border 0.2s;
    color: #ffffff;
}
input[type="text"]:focus, input[type="password"]:focus {
    border: 2px solid #00ff00;
    background-color: #1e221c;
}
.password-container, .username-container {
    position: relative;
    display: block;
    margin-bottom: 18px;
}
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.toggle-password:hover {
    opacity: 1;
}
button[type="submit"] {
    background-color: #1d4412 ;
    color: #fff;
    border: 3px solid #00ff00;
    padding: 14px 0;
    width: 100%;
    font-size: 15px;
    border-radius: 6px;
    /* box-shadow: 0 5px #1d4412; */
    cursor: pointer;
    font-family: 'Press Start 2P', monospace;
    margin-top: 10px;
    transition: background 0.1s, box-shadow 0.1s, transform 0.1s;
}
button[type="submit"]:hover {
    /* background-image: url("../img/gifs/Hitler_speech.gif"); */
    text-decoration: underline;
}
button[type="submit"]:active {
    transform: translateY(4px);
    box-shadow: none;
}
.error-message {
    color: #ff5555;
    background: rgba(0,0,0,0.7);
    border: 2px solid #ff5555;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    text-shadow: 1px 1px 0 #000;
}
.minecraft-logo {
    width: 180px;
    height: 180px;  /* Fixe la hauteur */
    margin-bottom: 18px;
    transition: all 0.3s ease;
    object-fit: contain;  /* Garde les proportions de l'image */
    display: block;  /* Évite les espaces blancs en dessous */
    margin-left: auto;  /* Centre horizontalement */
    margin-right: auto;
}
.logo-container {
    width: 180px;
    height: 180px;  /* Même dimensions que le logo */
    margin: 0 auto 18px auto;  /* Centre et garde la marge du bas */
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer {
    margin-top: 40px;
    color: #baffba;
    font-size: 11px;
    opacity: 0.7;
    text-shadow: 1px 1px 0 #000;
}
.help-link {
    color: #00ff00;
    text-decoration: underline;
    font-size: 12px;
    display: inline-block;
    margin-top: 12px;
}
.help-link:hover {
    color: #baffba;
}
.top-right-buttons {
    position: fixed;
    top: 50%;
    right: 20px;
    display: flex;
    flex-direction: column;  /* Change en colonne */
    gap: 10px;
    z-index: 10;
    transform: translateY(-50%);  /* Centre verticalement */
}

.icon-button {
    width: 45px;  /* Légèrement plus grand */
    height: 45px;
    /* background: url("../img/blocks/water.png") center/cover; */
    background-color: #000;
    border: 5px solid #00ff00;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 24px #00ff00;
}

.icon-button:hover {
    transform: translateX(-5px);  /* Déplacement horizontal au lieu de vertical */
    box-shadow: 4px 0 8px rgba(0,0,0,0.4);
    filter: brightness(1.2);
}

.icon-img {
    width: 28px;  /* Légèrement plus grand */
    height: 28px;
    filter: brightness(0.9);
}

/* Ajuste la position sur mobile */
@media (max-width: 768px) {
    .top-right-buttons {
        right: 10px;
    }
    
    .icon-button {
        width: 40px;
        height: 40px;
    }
    
    .icon-img {
        width: 24px;
        height: 24px;
    }
}

.login-bottom-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 32px; /* Augmente l'espace avec le bouton de connexion */
    margin-bottom: 0;
}

.minecraft-link.oak-btn,
.minecraft-link.redstone-btn {
    min-width: 140px;
    min-height: 48px;
    padding: 7px 10px 6px 10px;
    font-size: 13px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    letter-spacing: 0.5px;
    box-sizing: border-box;
    font-family: 'Press Start 2P', monospace;
    font-weight: bold;
    /* text-shadow: 2px 2px 0 #000; */
    text-decoration: none;
    transition: transform 0.1s, box-shadow 0.1s, filter 0.2s;
}

.minecraft-link.oak-btn {
    background: linear-gradient(180deg, #3bb2f7 0%, #1e6fa7 100%);
    border: 2px solid #1976b2;
    border-bottom-width: 5px;
    color: #fff;
    box-shadow: 0 2px #1976b2;
    font-family: 'Press Start 2P', monospace;
    font-weight: bold;
    /* text-shadow: 2px 2px 0 #000; */
    border-radius: 12px;
    min-width: 140px;
    min-height: 48px;
    padding: 7px 10px 6px 10px;
    font-size: 13px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    letter-spacing: 0.5px;
    box-sizing: border-box;
    text-decoration: none;
    transition: transform 0.1s, box-shadow 0.1s, filter 0.2s;
}

.minecraft-link.oak-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px #1976b2;
}

.minecraft-link.redstone-btn {
    background: url("../img/blocks/redstone_block.png") center/cover repeat;
    border: 2px solid #a00;
    border-bottom-width: 5px;
    color: #fff;
    box-shadow: 0 2px #800;
    cursor: none;
}

.minecraft-link.redstone-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px #800;
}

/* Responsive: sur mobile, les boutons passent l'un sous l'autre */
@media (max-width: 480px) {
    html, body {
        font-size: 18px; /* Augmente la taille de base du texte */
    }
    /* .container {
        padding: 18px 4vw 18px 4vw;
        max-width: 90vw;
        margin: 20px auto 0 auto;
    } */
    h2 {
        font-size: 22px;
        margin-bottom: 18px;
    }
    label {
        font-size: 15px;
    }
    input[type="text"], input[type="password"] {
        font-size: 16px;
        padding: 16px 38px 16px 14px;
    }
    .minecraft-logo, .logo-container {
        width: 120px;
        height: 120px;
        min-width: 120px;
        min-height: 120px;
    }
    button[type="submit"] {
        font-size: 17px;
        padding: 16px 0;
    }
    .minecraft-link.oak-btn,
    .minecraft-link.redstone-btn {
        /* font-size: 15px; */
        min-width: 0;
        width: 100%;
        padding: 14px 0 13px 0;
    }
    .login-bottom-buttons {
        flex-direction: column;
        gap: 14px;
        margin-top: 28px;
    }
    .toggle-password {
        width: 28px;
        height: 28px;
        right: 12px;
    }
    .icon-button {
        width: 38px;
        height: 38px;
    }
    .icon-img {
        width: 22px;
        height: 22px;
    }
    .footer {
        font-size: 13px;
    }
    .top-right-buttons {
        position: fixed;
        top: 100px;           /* Place les boutons près du haut de la page */
        right: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        z-index: 10;
        transform: none;     /* Supprime le centrage vertical */
    }
}
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 512px; /* ou selon la taille de ton image */
    height: 512px;
    pointer-events: none; /* 👈 Pour que l’image ne bloque pas les clics */
    display: none;
    z-index: 10000;
}

#curseur-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 64px;
    height: 64px;
    pointer-events: none;
    display: none;
    z-index: 9999;
}