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

body {
    font-family: Arial, sans-serif;
    overflow: hidden;
    background: #1a1a1a;
}

/* ===== OVERLAY DE LOGIN ===== */
#customLogin {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

/* ===== BOÎTE DE LOGIN ===== */
#customBox {
    background: #ffffff;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ===== URL DE VÉRIFICATION ===== */
#customBox p:first-child {
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 6px;
    word-break: break-all;
}

#customBox p:first-child b {
    color: #e53935;
}

/* ===== BOUTON GOOGLE ===== */
/* #googleBtn {
    background: #4285f4;
    color: white;
    padding: 14px;
    border: none;
    width: 100%;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
} */

#googleBtn:hover {
    background: #3367d6;
}

/* ===== SÉPARATEUR ===== */
#customBox p:not(:first-child) {
    color: #888;
    margin: 15px 0;
    font-size: 14px;
}

/* ===== CHAMPS DE SAISIE ===== */
#customBox input {
    width: 100%;
    padding: 14px 16px;
    margin-top: 12px;
    border-radius: 30px;
    border: 1px solid #ddd;
    font-size: 15px;
    transition: border-color 0.3s ease;
    outline: none;
    background: #fafafa;
}

#customBox input:focus {
    border-color: #e53935;
    background: #ffffff;
}

/* ===== BOUTON LOGIN ===== */
#loginBtn {
    background: #e53935;
    color: white;
    padding: 15px;
    border: none;
    width: 100%;
    margin-top: 18px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
}

#loginBtn:hover {
    background: #c62828;
}

#loginBtn:active {
    transform: scale(0.97);
}

/* ===== BOUTON REGISTER ===== */
#registerBtn {
    background: #1f2a3c;
    color: white;
    padding: 15px;
    border: none;
    width: 100%;
    margin-top: 10px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
}

#registerBtn:hover {
    background: #0f1828;
}

#registerBtn:active {
    transform: scale(0.97);
}

/* ===== MESSAGE DE CHARGEMENT ===== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    #customBox {
        padding: 20px 16px;
    }

    #customBox input {
        padding: 12px 14px;
        font-size: 14px;
    }

    #loginBtn,
    #registerBtn,
    #googleBtn {
        padding: 13px;
        font-size: 14px;
    }
}