body {
    background-color: #FFE0FA;
    font-family: "League Spartan";
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

.form-container {
    width: 400px;
    height: 400px;
    padding: 20px;
    border-radius: 25px;
    background-color: white;
    border: 3px solid black;
    box-shadow: 4px 4px 0px #000000;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
}
.form-container label {
    display: block;
    margin-bottom: 5px;
}

.form-container input[type="text"],
.form-container input[type="password"] {
    width: 100%;
    padding: 10px; /* Augmente l'espace intérieur */
    margin-bottom: 10px; /* Augmente l'espace entre les champs */
    border-radius: 6px; /* Coins arrondis */
    box-sizing: border-box;
    font-family: "League Spartan", sans-serif; /* Même police que le reste */
    font-size: 18px; /* Taille de police plus grande */
    background-color: rgba(255, 224, 250, 0.4); /* Fond rose pâle */
    outline: none; /* Retire l'outline grise */
    border: none;
}

.form-container .buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px;
}

.form-container .buttons input[type="submit"] {
    flex: 2;
    padding: 10px;
    border-radius: 6px;
    background-color: #ffe0fa;
    border: 3px solid black;
    box-shadow: 4px 4px 0px #000000;
    cursor: pointer;
    color: black;
    margin-left: auto;

    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
    font-size: 20px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.1; /* Contrôle l'espacement vertical */
}



#password {
    background-color: rgba(255, 224, 250, 0.4);
    outline: none; /* Retire l'outline grise */
}

#username {
    background-color: rgba(255, 224, 250, 0.4);
    outline: none; /* Retire l'outline grise */
}

.label {
    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
    font-size: 20px;
    text-align: left;
    margin-top: 0;
    margin-bottom: 22px;
}


h1 {
    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 60px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 22px;
    line-height: 1.1; /* Contrôle l'espacement vertical */
}

.buttons input[type="submit"] {
    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
    font-size: 20px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 22px;
    line-height: 1.1; /* Contrôle l'espacement vertical */
}

/* Remplacer ces définitions par des définitions fonctionnelles */
.compte {
    margin-right: auto; /* Pousse le bouton à gauche */
    flex: 0; /* Empêche l'étirement du bouton */
}

.connection {
    margin-left: auto; /* Pousse le bouton à droite */
    flex: 0; /* Empêche l'étirement du bouton */
}

.connection:hover {
    transform: scale(1.05);
}

.connection:active {
    transform: scale(0.95);
}


.compte:hover {
    transform: scale(1.05);
}

.compte:active {
    transform: scale(0.95);
}

/* Styles pour le bouton Discord */
.discord-button-container {
    position: absolute;
    top: 1%;
    right: 1%;
    width: 70px;
    height: 70px;
    z-index: 1000;
}
  
.discord-button {
    background: #ffffff;
    color: black;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;
}

.discord-button:hover {
    background: #ffffff;
    transform: scale(1.05);
}

.discord-button:active {
    transform: scale(0.95);
}

.discord-img {
    width: 100%;
    height: 100%;
}

.patch-notes-button-container {
    position: absolute;
    top: 1%;
    left: 1%;
    z-index: 1000;
}

.patch-notes-button {
    background: #ffffff;
    color: black;
    border: none;
    padding: 14px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;

    font-family: "Noto Emoji", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-size: 30px;
    font-style: normal;
    color: rgb(0, 0, 0);
    user-select: none
}

.patch-notes-button:hover {
    background: #ffffff;
    transform: scale(1.05);
}

.patch-notes-button:active {
    transform: scale(0.95);
}


.email-button-container {
    position: absolute;
    bottom: 2%;
    left: 1%;
    z-index: 1000;
}

.email-button {
    background: #ffffff;
    color: black;
    border: none;
    padding: 14px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;

    font-family: "Noto Emoji", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-size: 30px;
    font-style: normal;
    color: rgb(0, 0, 0);
    user-select: none
}

.email-button:hover {
    background: #ffffff;
    transform: scale(1.05);
}

.email-button:active {
    transform: scale(0.95);
}

/* Credits */
.credits-container {
    position: absolute;
    bottom: 2%;
    right: 1%;
    width: auto;
    max-width: 100%;
    height: 62px;
    overflow: visible;
    border: 3px solid black;
    border-radius: 12px;
    background-color: white;
    box-shadow: 4px 4px 0px #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.credits-line {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 0 15px;
    white-space: nowrap;
    align-items: center;
}

.credit-item {
    font-family: "League Spartan", sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: black;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

.credit-item:hover {
    transform: scale(1.05);
}

.credit-name {
    cursor: pointer;
}

.credit-tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 300%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    color: black;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    border: 3px solid black;
    box-shadow: 4px 4px 0px black;
    width: 200px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;

    /* Empêcher le débordement horizontal */
    max-width: calc(100vw - 20px);
}

/* Tooltip centré par défaut */
.credit-item:first-child .credit-tooltip {
    /* Premier élément - aligner à gauche avec le composant */
    left: -15px;
    transform: none;
}

.credit-item:last-child .credit-tooltip {
    /* Dernier élément - aligner à droite avec le composant */
    left: auto;
    right: -15px;
    transform: none;
}

.credit-item:nth-child(2) .credit-tooltip {
    /* Élément du milieu - rester centré */
    left: 50%;
    transform: translateX(-50%);
}

.credit-item:hover .credit-tooltip {
    visibility: visible;
    opacity: 1;
}

.credit-tooltip-title {
    font-family: "League Spartan", sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.credit-tooltip-desc {
    font-family: "League Spartan", sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.4;
}

.continue-sans-compte {
    display: block;
    text-align: center;
    margin-top: 12px;
    margin-bottom: 15px;
    font-family: "League Spartan", sans-serif;
    font-style: italic;
    font-size: 14px;
    color: black;
    text-decoration: none;
    cursor: pointer;;
}

.continue-sans-compte:hover {
    transform: scale(1.05);
    text-decoration: underline;
}

.continue-sans-compte:active {
    transform: scale(0.95);
}