/* =====================================
   PLATOON ZERO — AUTHENTIFICATION
===================================== */

#auth-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    background:
        radial-gradient(circle at center, rgba(70, 85, 55, 0.22), transparent 55%),
        #10130f;
}

#auth-screen.hidden {
    display: none;
}


/* =====================================
   FENÊTRE
===================================== */

.auth-window {
    width: min(420px, 100%);
    padding: 32px;

    display: flex;
    flex-direction: column;
    gap: 18px;

    background: rgba(20, 24, 18, 0.96);

    border: 1px solid rgba(190, 205, 160, 0.35);
    border-radius: 6px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.55),
        inset 0 0 30px rgba(255, 255, 255, 0.015);
}


/* =====================================
   LOGO
===================================== */

.auth-logo {
    display: block;

    width: min(310px, 90%);
    height: auto;

    margin: 0 auto 12px;
}


/* =====================================
   FORMULAIRES
===================================== */

#login-form,
#register-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#login-form.hidden,
#register-form.hidden {
    display: none;
}

.auth-window h2 {
    margin: 0 0 10px;

    text-align: center;
    letter-spacing: 3px;
    font-size: 1.15rem;
}


/* =====================================
   INPUTS
===================================== */

.auth-window input {
    width: 100%;
    box-sizing: border-box;

    padding: 14px 15px;

    color: #f2f2ed;
    background: #0c0f0b;

    border: 1px solid rgba(190, 205, 160, 0.3);
    border-radius: 4px;

    outline: none;

    font: inherit;
}

.auth-window input:focus {
    border-color: rgba(210, 225, 175, 0.8);
}

.auth-window input::placeholder {
    color: #777d70;
}


/* =====================================
   BOUTONS
===================================== */

.auth-window button {
    min-height: 46px;

    padding: 11px 16px;

    color: #eeeeea;
    background: #272d22;

    border: 1px solid rgba(190, 205, 160, 0.35);
    border-radius: 4px;

    font: inherit;
    font-weight: 700;
    letter-spacing: 1px;

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.auth-window button:hover {
    background: #343d2d;
}

.auth-window button:active {
    transform: scale(0.98);
}


/* =====================================
   MESSAGE
===================================== */

#auth-message {
    min-height: 20px;

    text-align: center;
    font-size: 0.85rem;
    line-height: 1.4;
}

#auth-message.error {
    color: #e47a70;
}

#auth-message.success {
    color: #9ec784;
}


/* =====================================
   MOBILE
===================================== */

@media (max-width: 500px) {

    .auth-window {
        padding: 24px 18px;
    }

    .auth-logo {
        width: min(260px, 90%);
    }

}