/* Pływający widget dopasowany do Nedds24.pl */
#registerdiv {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: #1a1a1a; /* Ciemne tło zgodne z motywem forum */
    border: 1px solid #333333; /* Subtelna ramka w stylu tborder */
    border-radius: 4px; /* Standardowe, delikatne zaokrąglenie MyBB */
    padding: 16px;
    width: 310px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    font-family: Tahoma, Verdana, Arial, sans-serif; /* Czcionki systemowe MyBB */
    box-sizing: border-box;
    animation: slideInRight 0.3s ease-out;
}

/* Animacja wysunięcia z prawej strony */
@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Przycisk zamknięcia X */
#close-registerdiv {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    color: #888888;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

#close-registerdiv:hover {
    color: #ffffff;
}

/* Układ zawartości */
.register-box-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

/* Tytuł */
.register-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    padding-right: 15px;
    text-transform: uppercase; /* W stylu nagłówków sekcji forum */
    letter-spacing: 0.5px;
}

/* Tekst informacyjny */
.register-text {
    color: #cccccc;
    font-size: 11px;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

/* Kontener przycisków akcji */
.register-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

/* Wspólny styl przycisków */
.btn-auth {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 11px;
    text-decoration: none !important;
    transition: background 0.2s ease-in-out, transform 0.1s ease-in-out;
}

.btn-auth:active {
    transform: scale(0.98);
}

/* Przycisk Zaloguj się - dopasowany do jasnoniebieskich akcentów forum */
.btn-login {
    background-color: #1d4ed8;
    color: #ffffff !important;
    border: 1px solid #1e40af;
}

.btn-login:hover {
    background-color: #1e40af;
}

/* Przycisk Zarejestruj się - dopasowany do zielonego paska zbiórki celi */
.btn-register {
    background-color: #10b981;
    color: #ffffff !important;
    border: 1px solid #059669;
}

.btn-register:hover {
    background-color: #059669;
}

/* Ikony wewnątrz przycisków */
.btn-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

/* Zachowanie na urządzeniach mobilnych (smartfony) */
@media (max-width: 480px) {
    #registerdiv {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 8px 8px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
    }
}

/* Pomocnicza klasa MyBB */
.upper-welcome-wrapper {
    display: inline-block;
}